aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/snort/snort_dynamic_ip_reload.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/snort/snort_dynamic_ip_reload.php b/packages/snort/snort_dynamic_ip_reload.php
index 70adf121..0403ea31 100644
--- a/packages/snort/snort_dynamic_ip_reload.php
+++ b/packages/snort/snort_dynamic_ip_reload.php
@@ -1,12 +1,16 @@
require("/usr/local/pkg/snort.inc");
+log_error("[SNORT] Snort_dynamic_ip_reload.php is starting.");
+
if($config['interfaces']['wan']['ipaddr'] == "pppoe" or
$config['interfaces']['wan']['ipaddr'] == "dhcp") {
- log_error("Snort has detected an IP address change. Reloading.");
+ log_error("Snort has detected a dynamic wan address. Reloading configuration.");
stop_service("snort");
create_snort_conf();
sleep(5);
start_service("snort");
}
+log_error("[SNORT] Snort_dynamic_ip_reload.php is ending.");
+