aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-30 23:18:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-30 23:18:15 +0000
commit38add829d9748421cf660fc6c53dae1db531650f (patch)
treea55ec1c86c1b062a3064cc13bbb6ddad7cc7284b /packages
parentf2d420bb96d14d2b1e2d45d8ca3fa81afa13f871 (diff)
downloadpfsense-packages-38add829d9748421cf660fc6c53dae1db531650f.tar.gz
pfsense-packages-38add829d9748421cf660fc6c53dae1db531650f.tar.bz2
pfsense-packages-38add829d9748421cf660fc6c53dae1db531650f.zip
Note script start and stop
Diffstat (limited to 'packages')
-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.");
+