diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-08-24 18:45:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-08-24 18:45:59 +0000 |
commit | 71d20e639ece220f330a45242f0e170307f3361b (patch) | |
tree | 1c17d5f66d33441876baa8e9efd871e3c043a36b /packages | |
parent | 2d1dc97298f14244165efe1fde7555434351a8c4 (diff) | |
download | pfsense-packages-71d20e639ece220f330a45242f0e170307f3361b.tar.gz pfsense-packages-71d20e639ece220f330a45242f0e170307f3361b.tar.bz2 pfsense-packages-71d20e639ece220f330a45242f0e170307f3361b.zip |
Only launch snort2c if the option is enabled.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort_alerts.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/snort/snort_alerts.php b/packages/snort/snort_alerts.php index 4a52db93..70b53656 100644 --- a/packages/snort/snort_alerts.php +++ b/packages/snort/snort_alerts.php @@ -46,7 +46,8 @@ if ($_POST['clear']) { system_syslogd_start(); exec("/usr/bin/killall -HUP snort"); exec("/usr/bin/killall snort2c"); - exec("/usr/local/bin/snort2c -w /var/db/whitelist -a /var/log/snort/alert"); + if ($config['installedpackages']['snort']['config'][0]['blockoffenders'] == 'on') + exec("/usr/local/bin/snort2c -w /var/db/whitelist -a /var/log/snort/alert"); } $pgtitle = "Services: Snort: Snort Alerts"; |