diff options
author | robiscool <robrob2626@yahoo.com> | 2010-04-23 02:19:53 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-04-23 02:19:53 -0700 |
commit | 6a53b819ac6742a4d5d2de28e17329282d67a1b2 (patch) | |
tree | 8ef5fdc793288f71cd09be9c790ad1e60f75f0c3 /config | |
parent | d3635ba6e576bac2d6d4fee57a0734d1db2903da (diff) | |
download | pfsense-packages-6a53b819ac6742a4d5d2de28e17329282d67a1b2.tar.gz pfsense-packages-6a53b819ac6742a4d5d2de28e17329282d67a1b2.tar.bz2 pfsense-packages-6a53b819ac6742a4d5d2de28e17329282d67a1b2.zip |
snort, add default whitelist filename
Diffstat (limited to 'config')
-rw-r--r-- | config/snort/snort.inc | 10 |
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"; } |