I'm currently deploying OPNsense in transparent bridge mode between a Mikrotik router (as trunk port) and a Palo Alto firewall (L3), with Suricata enabled for IDS/IPS. Everything works fine in IDS mode, but I encounter major issues when enabling IPS mode.
________________________________________System Configuration:
• OPNsense Version: [insert version]
• Suricata: Latest package from UI
• Mode: Transparent bridge (bridge0) inspecting trunked VLANs
• Interfaces: Only bridge0 selected for Suricata
• Pattern Matcher: Hyperscan (when supported)
• BPF Filters: [e.g., not vlan 30, if applied]
• Hardware: [e.g., 4 cores, 8GB RAM, Intel NICs]
• Filesystem: ZFS (ARC limited via vfs.zfs.arc_max loader tunable)
________________________________________ What Works:
• IDS mode runs normally, logs alerts, no packet loss
• Netmap bindings pass correctly
• Bridge is transparent and VLANs reach the firewall
________________________________________Problems in IPS Mode:
1. All outbound traffic is blocked when IPS is enabled
Even with all rules set to Alert, traffic fails to pass.
2. Netmap startup errors before ARC tuning
makefile
CopyEdit
netmap:bridge0/R failed: Cannot allocate memory
3. Flowbit dependency warnings
Example:
csharp
CopyEdit
flowbit 'ET.BunnyLoader.Checkin' is checked but not set
4. Suricata rule parsing errors
e.g.:
scss
CopyEdit
error parsing signature ... line 390 ... content:"|5C 5C 0A 5C 5C 0A ..."
5. Queue exhaustion runtime errors
csharp
CopyEdit
Just ran out of space in the queue. Please file a bug report on this
6. Suricata starts but silently drops traffic
With no rules set to drop, IPS mode still causes loss of connectivity to external sites.
________________________________________System Configuration:
• OPNsense Version: [insert version]
• Suricata: Latest package from UI
• Mode: Transparent bridge (bridge0) inspecting trunked VLANs
• Interfaces: Only bridge0 selected for Suricata
• Pattern Matcher: Hyperscan (when supported)
• BPF Filters: [e.g., not vlan 30, if applied]
• Hardware: [e.g., 4 cores, 8GB RAM, Intel NICs]
• Filesystem: ZFS (ARC limited via vfs.zfs.arc_max loader tunable)
________________________________________ What Works:
• IDS mode runs normally, logs alerts, no packet loss
• Netmap bindings pass correctly
• Bridge is transparent and VLANs reach the firewall
________________________________________Problems in IPS Mode:
1. All outbound traffic is blocked when IPS is enabled
Even with all rules set to Alert, traffic fails to pass.
2. Netmap startup errors before ARC tuning
makefile
CopyEdit
netmap:bridge0/R failed: Cannot allocate memory
3. Flowbit dependency warnings
Example:
csharp
CopyEdit
flowbit 'ET.BunnyLoader.Checkin' is checked but not set
4. Suricata rule parsing errors
e.g.:
scss
CopyEdit
error parsing signature ... line 390 ... content:"|5C 5C 0A 5C 5C 0A ..."
5. Queue exhaustion runtime errors
csharp
CopyEdit
Just ran out of space in the queue. Please file a bug report on this
6. Suricata starts but silently drops traffic
With no rules set to drop, IPS mode still causes loss of connectivity to external sites.