From 0d91c1003ccc111ca159c1d23d9e4f6b2ec6daee Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 Sep 2006 20:35:28 +0000 Subject: Do not include pppoe or dhcp entries --- packages/snort/snort.inc | 3 ++- packages/snort/snort_download_rules.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/snort') diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index fb1c76e3..a206b19f 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -168,7 +168,8 @@ function generate_snort_conf() { /* iterate all interfaces and add to whitelist */ foreach($config['interfaces'] as $interface) - $home_net .= "{$interface['ipaddr']} "; + if($interface['ipaddr'] <> "pppoe" and $interface['ipaddr'] <> "dhcp") + $home_net .= "{$interface['ipaddr']} "; /* iterate all vips and add to whitelist */ if($config['virtualip']) diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php index d0309e18..e558706e 100644 --- a/packages/snort/snort_download_rules.php +++ b/packages/snort/snort_download_rules.php @@ -1,4 +1,5 @@