mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
ids.cgi: Pipe the oinkmaster output to the logger binary
This will allow anybody, to access the log of oinkmaster and get detailed information about any changes which have been done on the ruleset. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -659,7 +659,7 @@ sub downloadruleset {
|
||||
|
||||
sub oinkmaster () {
|
||||
# Call oinkmaster to generate ruleset.
|
||||
system("/usr/local/bin/oinkmaster.pl -v -s -u file:///var/tmp/snortrules.tar.gz -C /var/ipfire/snort/oinkmaster.conf -o /etc/snort/rules 2>&1 &");
|
||||
system("/usr/local/bin/oinkmaster.pl -v -s -u file://$rulestarball -C /var/ipfire/snort/oinkmaster.conf -o /etc/snort/rules 2>&1 |logger -t oinkmaster");
|
||||
}
|
||||
|
||||
sub readrulesfile ($) {
|
||||
|
||||
Reference in New Issue
Block a user