aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort_alerts.php3
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";