OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: werner on December 13, 2016, 04:48:44 pm

Title: Suricata IDS modifications
Post by: werner on December 13, 2016, 04:48:44 pm

I'm in the middle of a kind of pilot project for implementing IDS in front of our SAAS network. I selected OPNsense as it is a firewall solution that's capable of HA and integrates Suricata.

Testing went well so far but I need to do some changes to the Suricata configuration.

I'd like to implement some more rulesets for example, I already found this issue: https://github.com/opnsense/core/issues/1219
Perfect for home made rules but not for fetching latest versions of ruleset files externally. I guess the url list of standard rulesets to update is configured somewhere, any chance it can be modified to add some extra urls ?

Apart from that I'd like to be able to make changes to suricata.yaml, is that possible without my config changes being overwritten during the next update ? I've seen the package lockdown functionality, that seems nice but I do want the software to be updated, without changing my specific config. Is there any mechanism for custom configuration ?

Everything else is impressive, very nice clean webinterface, however I do feel a bit of an alien coming from Vyatta/VyOS, some concepts really differ coming from there. Keep up the good work !
Title: Re: Suricata IDS modifications
Post by: werner on December 15, 2016, 08:53:02 am
Nobody knows if the suricata.yaml file is being overwritten during an update ??
Title: Re: Suricata IDS modifications
Post by: franco on December 15, 2016, 09:07:35 am
Hi Werner,

Sorry, this slipped through.

suricata.yaml is regenerated from the template:


The template is overwritten during firmware upgrades. If changes are required we should evaluate which ones and see if we can provide them via the GUI or via an optional include.

If you need other rules, you should look at how rules are defined as drop-in XML files which are not overwritten:


Title: Re: Suricata IDS modifications
Post by: werner on December 15, 2016, 04:53:57 pm
Hi Franco,

No problem, everyone's busy ;)

I'm not sure if Suricata allows for already in the template defined items to be overridden, else just a simple optional include to a file containing custom config would be sufficient.

What would be a usefull option is more filtering options in the rules tab and especially a filter to select enabled/disabled rules in a category. It's a lot of work now to find all enabled or all disabled rules. I was going through them to enable them all, just temporary for generating as much logging as possible for testing purposes.