]> git.ipfire.org Git - ipfire-2.x.git/commit
ids.cgi: Dynamically generate the HOME_NET details for suricata.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 9 Aug 2018 13:33:25 +0000 (15:33 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 9 Aug 2018 13:33:25 +0000 (15:33 +0200)
commit8d2f6b0b59c3448dfa0fcab683fafc9604873a57
tree4feb8710d6642d009a5c0bd15bbb6dd5b040fd8e
parente0bfd338ee5c847b16ea534acf84fba645974ec7
ids.cgi: Dynamically generate the HOME_NET details for suricata.

Introduce generate_home_net_file() which uses the current network
config to obtain the network address and subnetmask for each
available network zone, generate and write these HOME_NET information
into a yaml compatible file which can be included into the suricata
configuration file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi