diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-24 20:33:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-24 20:33:32 +0000 |
commit | 7acb65169891da8d375d9915a4ebc784efb6a0d9 (patch) | |
tree | f0122b369b824bd1b684c03e7ae076a774fee1e0 /etc | |
parent | 387ce517bdccdd85b4162d7780c32526da4ffdd6 (diff) | |
download | pfsense-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.inc | 3 |
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; } |