aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_dynamic_ip_reload.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-09-30 03:25:18 -0700
committerrobiscool <robrob2626@yahoo.com>2009-09-30 03:27:32 -0700
commit71a3b727a3121c2bd081fe1f657f9dbe563e7064 (patch)
tree1de60531e544e0abd7ea466500d65d8f7d39d4f4 /config/snort/snort_dynamic_ip_reload.php
parent7792770b047efb0e3c6c6d134658d1344c940831 (diff)
downloadpfsense-packages-71a3b727a3121c2bd081fe1f657f9dbe563e7064.tar.gz
pfsense-packages-71a3b727a3121c2bd081fe1f657f9dbe563e7064.tar.bz2
pfsense-packages-71a3b727a3121c2bd081fe1f657f9dbe563e7064.zip
Push snort 1.6 to stable, fix some startup issues
Diffstat (limited to 'config/snort/snort_dynamic_ip_reload.php')
-rw-r--r--config/snort/snort_dynamic_ip_reload.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/snort/snort_dynamic_ip_reload.php b/config/snort/snort_dynamic_ip_reload.php
index dbd6d015..7933ba16 100644
--- a/config/snort/snort_dynamic_ip_reload.php
+++ b/config/snort/snort_dynamic_ip_reload.php
@@ -40,7 +40,10 @@ if($config['interfaces']['wan']['ipaddr'] == "pppoe" or
create_snort_conf();
mwexec("/sbin/pfctl -t snort2c -T flush");
exec("killall -HUP snort");
- exec("/usr/bin/killall snort2c; snort2c -w /var/db/whitelist -a /var/log/snort/alert");
+ /* define snortbarnyardlog_chk */
+ $snortbarnyardlog_info_chk = $config['installedpackages']['snortadvanced']['config'][0]['snortbarnyardlog'];
+ if ($snortbarnyardlog_info_chk == on)
+ exec("/usr/bin/killall barnyard2; /usr/local/bin/barnyard2 -c /usr/local/etc/barnyard2.conf -d /var/log/snort -f snort.u2 -w /usr/local/etc/snort/barnyard2.waldo -D -q\n");
}
?> \ No newline at end of file