diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 21:46:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 21:46:59 +0000 |
commit | a24dc83e0251ad950c9a1dfc196ddcbd06672f22 (patch) | |
tree | 47c2451d1dbb334de68ca024331ec2074de3c00a | |
parent | 1754da3e401af1071ea219b3142867837508da69 (diff) | |
download | pfsense-packages-a24dc83e0251ad950c9a1dfc196ddcbd06672f22.tar.gz pfsense-packages-a24dc83e0251ad950c9a1dfc196ddcbd06672f22.tar.bz2 pfsense-packages-a24dc83e0251ad950c9a1dfc196ddcbd06672f22.zip |
Log when we detect an ip address change so we can verify if this codepath is even being hit.
-rw-r--r-- | packages/snort/snort_dynamic_ip_reload.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/snort/snort_dynamic_ip_reload.php b/packages/snort/snort_dynamic_ip_reload.php index 74b643f0..00e96d2e 100644 --- a/packages/snort/snort_dynamic_ip_reload.php +++ b/packages/snort/snort_dynamic_ip_reload.php @@ -3,11 +3,10 @@ require("/usr/local/pkg/snort.inc"); if($config['interfaces']['wan']['ipaddr'] == "pppoe" or $config['interfaces']['wan']['ipaddr'] == "dhcp") { + log_error("Snort has detected an IP address change. Reloading."); stop_service("snort"); create_snort_conf(); - sleep(1); + sleep(3); start_service("snort"); - - } |