aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-27 00:58:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-27 00:58:20 +0000
commitf5a62c4372f772be7432ef3cbe1b663739d34d0a (patch)
tree1daca361c289a6842f7cd5520d43c1fbda7f3623 /packages
parent879c619afc7a9112007455446651972a7bcc4a5d (diff)
downloadpfsense-packages-f5a62c4372f772be7432ef3cbe1b663739d34d0a.tar.gz
pfsense-packages-f5a62c4372f772be7432ef3cbe1b663739d34d0a.tar.bz2
pfsense-packages-f5a62c4372f772be7432ef3cbe1b663739d34d0a.zip
Hook snort whitelist in
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index bda4ea4b..50fbdf4d 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -156,6 +156,10 @@ function generate_snort_conf() {
foreach($config['virtualip']['vip'] as $vip)
$home_net .= $vip['subnet'] . " ";
+ if($config['installedpackages']['snortwhitelist'])
+ foreach($config['installedpackages']['snortwhitelist']['config'] as $snort)
+ $home_net .= $snort['ip'];
+
/* write out whitelist, convert spaces to carriage returns */
$whitelist_home_net = str_replace(" ", "\n", $home_net);