From f5a62c4372f772be7432ef3cbe1b663739d34d0a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 Sep 2006 00:58:20 +0000 Subject: Hook snort whitelist in --- packages/snort/snort.inc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3