diff options
author | robiscool <robrob2626@yahoo.com> | 2009-09-27 22:41:32 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-09-27 22:42:51 -0700 |
commit | 2b7e84819d7ff6af65ecf52f81ec02924c40ef8e (patch) | |
tree | 43eb582626861db8ba96ba857fff92aebd495124 /config/snort-dev/snort_dynamic_ip_reload.php | |
parent | c08db1d0285bb5dfcd5a2665af8d228f4d9d0d05 (diff) | |
download | pfsense-packages-2b7e84819d7ff6af65ecf52f81ec02924c40ef8e.tar.gz pfsense-packages-2b7e84819d7ff6af65ecf52f81ec02924c40ef8e.tar.bz2 pfsense-packages-2b7e84819d7ff6af65ecf52f81ec02924c40ef8e.zip |
snort-dev, update to RC5, update snort_download to restart if snort is running, update snort.inc code for failers, dynamic ip reload update
Diffstat (limited to 'config/snort-dev/snort_dynamic_ip_reload.php')
-rw-r--r-- | config/snort-dev/snort_dynamic_ip_reload.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/snort-dev/snort_dynamic_ip_reload.php b/config/snort-dev/snort_dynamic_ip_reload.php index dbd6d015..7933ba16 100644 --- a/config/snort-dev/snort_dynamic_ip_reload.php +++ b/config/snort-dev/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 |