From aa1bcc027d9173552297dcd4b72b2647f501e4d2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 8 May 2007 23:23:35 +0000 Subject: Reload snort on IP change but do it with a HUP. --- packages/snort/snort_dynamic_ip_reload.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'packages') 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 -- cgit v1.2.3