diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 20:21:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 20:21:12 +0000 |
commit | be1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c (patch) | |
tree | 227b03a203ed19905d5f5094aaa225213084da3f | |
parent | 0fe495045a5196735154952798b1cd320f7fe3ff (diff) | |
download | pfsense-packages-be1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c.tar.gz pfsense-packages-be1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c.tar.bz2 pfsense-packages-be1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c.zip |
Resolve pppoe and dhcp ip addresses
-rw-r--r-- | packages/snort/snort.inc | 8 |
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 */ |