aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-08 23:23:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-08 23:23:35 +0000
commitaa1bcc027d9173552297dcd4b72b2647f501e4d2 (patch)
treeeb9b0a573cc94ef4588311235c9e145bde20ad96 /packages/snort
parentdda1f1a54816edcb2048cc340eb70b6e83083484 (diff)
downloadpfsense-packages-aa1bcc027d9173552297dcd4b72b2647f501e4d2.tar.gz
pfsense-packages-aa1bcc027d9173552297dcd4b72b2647f501e4d2.tar.bz2
pfsense-packages-aa1bcc027d9173552297dcd4b72b2647f501e4d2.zip
Reload snort on IP change but do it with a HUP.
Diffstat (limited to 'packages/snort')
-rw-r--r--packages/snort/snort_dynamic_ip_reload.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/snort/snort_dynamic_ip_reload.php b/packages/snort/snort_dynamic_ip_reload.php
index ddd76327..ff392c76 100644
--- a/packages/snort/snort_dynamic_ip_reload.php
+++ b/packages/snort/snort_dynamic_ip_reload.php
@@ -34,15 +34,14 @@ require_once("/usr/local/pkg/snort.inc");
require_once("service-utils.inc");
require_once("config.inc");
-/*
+
if($config['interfaces']['wan']['ipaddr'] == "pppoe" or
$config['interfaces']['wan']['ipaddr'] == "dhcp") {
log_error("Dynamic WAN interface present. Restarting snort due to filter changes.");
create_snort_conf();
- stop_service("snort");
mwexec("/sbin/pfctl -t snort2c -T flush");
- start_service("snort");
+ exec("killall -HUP snort");
}
-*/
+
?> \ No newline at end of file