diff options
Diffstat (limited to 'packages/snort/snort_dynamic_ip_reload.php')
-rw-r--r-- | packages/snort/snort_dynamic_ip_reload.php | 7 |
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 |