aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
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);