aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort
diff options
context:
space:
mode:
Diffstat (limited to 'packages/snort')
-rw-r--r--packages/snort/snort.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index 45781bc8..fb1c76e3 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -152,7 +152,13 @@ function generate_snort_conf() {
$ifcfg = &$config['interfaces'][$int];
$subnet = gen_subnet($ifcfg['ipaddr'], $ifcfg['subnet']);
$subnetmask = gen_subnet_mask($ifcfg['subnet']);
- $home_net .= "{$subnet}/{$ifcfg['subnet']} ";
+ if($subnet == "pppoe" or $subnet = "dhcp") {
+ $subnet = find_interface_ip("ng0");
+ if($subnet)
+ $home_net .= "{$subnet} ";
+ } else {
+ $home_net .= "{$subnet}/{$ifcfg['subnet']} ";
+ }
}
/* add all local ips to the whitelist */