aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-27 20:21:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-27 20:21:12 +0000
commitbe1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c (patch)
tree227b03a203ed19905d5f5094aaa225213084da3f /packages/snort
parent0fe495045a5196735154952798b1cd320f7fe3ff (diff)
downloadpfsense-packages-be1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c.tar.gz
pfsense-packages-be1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c.tar.bz2
pfsense-packages-be1001dbd07ebc6e68e4dd6bf0fb08ce49f11c4c.zip
Resolve pppoe and dhcp ip addresses
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 */