summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-24 20:33:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-24 20:33:32 +0000
commit7acb65169891da8d375d9915a4ebc784efb6a0d9 (patch)
treef0122b369b824bd1b684c03e7ae076a774fee1e0 /etc
parent387ce517bdccdd85b4162d7780c32526da4ffdd6 (diff)
downloadpfsense-7acb65169891da8d375d9915a4ebc784efb6a0d9.zip
pfsense-7acb65169891da8d375d9915a4ebc784efb6a0d9.tar.gz
Do not create an outgoing rule if there is no ip on the interface.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 6ed4d44..9a303d3 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1588,7 +1588,8 @@ function create_firewall_outgoing_rules_to_itself() {
/* XXX - billm: temp fix for pppoe, needs better fix */
if ($config['interfaces'][$ifname]['ipaddr'] == "pppoe")
$int = "ng0";
- $rule .="pass out quick on {$int} inet from {$int} to any keep state\n";
+ if($config['interfaces'][$ifname]['ipaddr'] != "")
+ $rule .="pass out quick on {$int} inet from {$int} to any keep state\n";
}
return $rule;
}
OpenPOWER on IntegriCloud