From 38add829d9748421cf660fc6c53dae1db531650f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 30 Sep 2006 23:18:15 +0000 Subject: Note script start and stop --- packages/snort/snort_dynamic_ip_reload.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/snort') 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."); + -- cgit v1.2.3