diff options
author | robiscool <robrob2626@yahoo.com> | 2010-04-05 16:38:51 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-04-05 16:38:51 -0700 |
commit | 26a2160f92664ed0679eea165d021793771504a8 (patch) | |
tree | 50c92a3ae55830b144ac1a2ddf82ebb153413696 /config/snort/snort_dynamic_ip_reload.php | |
parent | 3710433a3810588b81eba7d47d135ba03ffd0e83 (diff) | |
download | pfsense-packages-26a2160f92664ed0679eea165d021793771504a8.tar.gz pfsense-packages-26a2160f92664ed0679eea165d021793771504a8.tar.bz2 pfsense-packages-26a2160f92664ed0679eea165d021793771504a8.zip |
snort, add warning change code
Diffstat (limited to 'config/snort/snort_dynamic_ip_reload.php')
-rw-r--r-- | config/snort/snort_dynamic_ip_reload.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/config/snort/snort_dynamic_ip_reload.php b/config/snort/snort_dynamic_ip_reload.php index 98d9bcce..615302e8 100644 --- a/config/snort/snort_dynamic_ip_reload.php +++ b/config/snort/snort_dynamic_ip_reload.php @@ -33,18 +33,15 @@ require_once("/usr/local/pkg/snort/snort.inc"); -/* get the varibles from the command line */ -/* Note: snort.sh sould only be using this */ -//$id = $_SERVER["argv"][1]; -//$if_real = $_SERVER["argv"][2]; +if (file_exists('/var/run/snort_dynamic_ip_reload.dirty')) { + exit(); +} -//$test_iface = $config['installedpackages']['snortglobal']['rule'][$id]['interface']; +exec('/usr/bin/touch /var/run/snort_dynamic_ip_reload.dirty'); -//if ($id == "" || $if_real == "" || $test_iface == "") { -// exec("/usr/bin/logger -p daemon.info -i -t SnortDynIP \"ERORR starting snort_dynamic_ip_reload.php\""); -// exit; -// } +sync_snort_package_config(); +sync_snort_package(); -sync_snort_package_empty(); +exec('/bin/rm /var/run/snort_dynamic_ip_reload.dirty'); ?>
\ No newline at end of file |