I read back through my posts in this thread. And it looks like there needs to be a space between content= and "blocked". So content=<space>"blocked" it's hard to see. That was my issue when I first set this up as well it appears.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Cordial on April 13, 2021, 09:09:42 PM
Just checked it. No spaces. Maybe bug in version 21.1.4?
Quote from: Cordial on April 13, 2021, 11:26:56 AM
Hey,
I've done the following setting by here: https://docs.opnsense.org/manual/monit.html
If i change something on monit i get email, but i get no mails from suricata if package were "blocked". Dont know where the problem is.
Here my settings:
https://prnt.sc/11bsti8
https://prnt.sc/11bsuvw
https://prnt.sc/11bsw24
Someone any idea where the problem is? There are "blocked" alerts in the "eve.json" because i test it and see it in the logs. Ive restart both services.
Quote from: franco on March 23, 2021, 07:53:31 PM
Here https://github.com/opnsense/core/issues/new?assignees=&labels=&template=feature_request.md&title=
Make sure to fill out the extended information about use case, motivation and alternatives as they help speed up the triage process and request being picked up eventually.
Cheers,
Franco
Quote from: genesysguy on March 22, 2021, 04:50:19 PMQuote from: FullyBorked on March 22, 2021, 04:13:19 PMQuote from: genesysguy on March 22, 2021, 04:02:16 PM
I did a fresh install yesterday and ran into the same issue with my Cyberpower UPS.
When I looked into the ups.conf file located at /usr/local/etc/nut, I noticed that opnsense was adding several (3) configs for the ups in the file. I removed the configs that didn't pertain and was left with:
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
[CP1500PFCLCD]
driver=usbhid-ups
port=auto
After saving and rebooting, it worked. But since there isn't a widget for the UPS like in pfSense, I'm wondering why I wasted so much time mucking with it.
This might explain something too, my config file is pretty much blank.# Please don't modify this file as your changes might be overwritten with
# the next update.
#
MODE=standalone
~
~
You are looking at nut.conf, not ups.conf
root@OPNsense:/usr/local/etc/nut # vi nut.conf
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
MODE=standalone
Quote from: genesysguy on March 22, 2021, 04:02:16 PM
I did a fresh install yesterday and ran into the same issue with my Cyberpower UPS.
When I looked into the ups.conf file located at /usr/local/etc/nut, I noticed that opnsense was adding several (3) configs for the ups in the file. I removed the configs that didn't pertain and was left with:
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
[CP1500PFCLCD]
driver=usbhid-ups
port=auto
After saving and rebooting, it worked. But since there isn't a widget for the UPS like in pfSense, I'm wondering why I wasted so much time mucking with it.
# Please don't modify this file as your changes might be overwritten with
# the next update.
#
MODE=standalone
~
~
Quote from: pmhausen on March 21, 2021, 11:24:08 PMQuote from: FullyBorked on March 21, 2021, 07:32:40 PMThe current version on github seems to work fine, but without a release since 2016 it's almost impossible to update the FreeBSD package.
Dang, unfortunately my ups is USB only, surprised that's been broken so long.
2021-03-21T21:43:01 root[43795] /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
2021-03-21T21:43:00 upsmon[94899] upsmon parent: read
2021-03-21T21:42:58 upsmon[95263] UPS [CyberPowerUPS]: connect failed: Connection failure: Operation already in progress
2021-03-21T21:42:27 upsmon[95263] UPS [CyberPowerUPS]: connect failed: Connection failure: Operation timed out
2021-03-21T21:42:04 root[81548] /usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
Quote from: IsaacFL on March 21, 2021, 08:30:28 PMI did reboot. I'm getting errors in the system log as well. When I get back home I'll post up my syslog errors.
Did you reboot the opnsense? It seems to have to do a reboot with the UPS plugged in to detect it. Then it is using the USBHID as UPS type.
It works for me on my CyberPower CST135XLU which is about 3 years old, so don't know why it wouldn't work for you. The key is even on pfsense it requires a reboot.
Quote from: pmhausen on March 21, 2021, 07:24:42 PM
NUT and the USB HID driver are broken on FreeBSD because they are using an unsupported legacy API. According to information I got on their mailing list they have implemented the new API, but since they have not tagged a release since 2016, that code has not made it into any FreeBSD package, yet.
Your best bet (IMHO) is to get a network card for your UPS if available and use SNMP.
Quote from: marjohn56 on March 14, 2021, 02:05:03 PM
goto the shell and issue the following command:
opensense-patch 45199e3
Refresh your browser.
Fixed.
opnsense-patch 45199e3
Quote from: franco on February 24, 2021, 09:12:35 PM
That's always appreciated, thanks in advance! :)