Wanted to start with a thank you, the /usr/local/etc/suricata/conf.d/custom.yaml appears persistent and this allows us to further customize Suricata, thank you OPNSense!! We have had difficulty customizing and having it persist until now.
The issue found appears to be that BPF Filtering via netmap in the Suricata config does not appear to work, hosts/networks filtered still show up in the Suricata alerts. The netmap area of suricata.yaml from OPNSense 25.x to OPNSense 26.x appears to have gone through a lot of changes.
The new divert feature being one of the new elements I have not had a chance to explore, I'm using PCAP IPD mode for Suricata.
The documentation for BPF-Filtering within Suricata shows this as an example:
A most desired filter is between a subnet and one or more other subnets, and I've tried this in several methods, here's the most basic I have tried:
So far none of the BPF filters work with Suricata - does anyone use this and/or have experience?
Edit:
For a while I was only looking at the suricata.yaml file and didn't realize the level of control that went into the command line execution of arguments sent to suricata on service start. For a while I was trying to put netmap in IDS mode thinking that's how the traffic was going and wondering why the BPF filter for netmap wasn't working.
The issue found appears to be that BPF Filtering via netmap in the Suricata config does not appear to work, hosts/networks filtered still show up in the Suricata alerts. The netmap area of suricata.yaml from OPNSense 25.x to OPNSense 26.x appears to have gone through a lot of changes.
The new divert feature being one of the new elements I have not had a chance to explore, I'm using PCAP IPD mode for Suricata.
The documentation for BPF-Filtering within Suricata shows this as an example:
Code Select
not (host IP1 or IP2 or IP3 or net NET/24)A most desired filter is between a subnet and one or more other subnets, and I've tried this in several methods, here's the most basic I have tried:
Code Select
not ((net NET1/24 and NET2/24) or (net NET2/24 and NET3/24) or (net NET3/24 and NET1/24))So far none of the BPF filters work with Suricata - does anyone use this and/or have experience?
Edit:
For a while I was only looking at the suricata.yaml file and didn't realize the level of control that went into the command line execution of arguments sent to suricata on service start. For a while I was trying to put netmap in IDS mode thinking that's how the traffic was going and wondering why the BPF filter for netmap wasn't working.
"