Hello. I’m coming back to VyOS from running OPNsense for a few months (interesting experiment, but too many issues), and have a couple of question about suricata in VyOS.
I’ve been able to get suricata fully configured using the “native” ‘set service suricata’ commands, but was wondering if there was a way to do 2 additional things that were “nice to have” in OPNsense:
- Adding additional rule files. From what I can tell, even when running ‘update suricata’, VyOS seems to only use these rule files below. I’ve tried placing additional rule files in that same directory, with the thought they would be picked up and used, but there seems to be some hard-coding in the product to use only these rule files. Ideally I want to add even just the ET Open rule files.
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/app-layer-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/decoder-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/dhcp-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/dnp3-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/dns-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/files.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/http-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/ipsec-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/kerberos-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/modbus-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/nfs-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/ntp-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/smb-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/smtp-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/stream-events.rules
24/2/2025 – 16:19:21 - – Loading distribution rule file /etc/suricata/rules/tls-events.rules
- One of the easy/nice things in OPNsense was being able to create actions (policies) when a suricata alert was triggered, even as broad as “drop traffic when that alert is seen”. Is there anything that folks have done to add this capability, or is it coming in the future?
Related to these questions, I am aware of the concept of using a suricata container in VyOS, especially what’s talked about in this article (Vyos firewall artificial intelligence support) since it seems to be able to have the Container interact with the nftables approach to the firewall vs. the older version of this configuration that used iptables.
If going with a container provides more capabilities around adding rules and creating actions, I’ll definitely go down that route. Thanks!!