aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index e6b2fa5c..892370e9 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -1749,8 +1749,14 @@ if ($snortunifiedlog_info_chk == on)
$spoink_info_chk = $config['installedpackages']['snortglobal']['rule'][$id]['blockoffenders7'];
if ($spoink_info_chk == on) {
- preg_match('/^([a-zA-z0-9]+)/', $config['installedpackages']['snortglobal']['rule'][$id]['whitelistname'], $wlist_name_file);
- $spoink_whitelist_name = $wlist_name_file[0];
+ preg_match('/^([a-zA-z0-9]+)/', $config['installedpackages']['snortglobal']['rule'][$id]['whitelistname'], $wlist_name_file);
+
+ if ($wlist_name_file[0] == 'default') {
+ $spoink_whitelist_name = 'defaultwlist';
+ }else{
+ $spoink_whitelist_name = $wlist_name_file[0];
+ }
+
$spoink_type = "output alert_pf: /usr/local/etc/snort/whitelist/$spoink_whitelist_name,snort2c";
}