summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-19 00:15:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-19 00:15:20 +0000
commit61438a1e2cee7388de7a2fceb014fcedbfe2eeb6 (patch)
tree9fad17683785ecef1fcb1ac27986fca6ee58fef1 /etc
parent6f703733b679c23843d3d13c7616b0d0bf63ac33 (diff)
downloadpfsense-61438a1e2cee7388de7a2fceb014fcedbfe2eeb6.zip
pfsense-61438a1e2cee7388de7a2fceb014fcedbfe2eeb6.tar.gz
Fix XXX. Do not allow DHCP out WAN if interface is not selected for DHCP.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 4a8f9a8..f631135 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1520,15 +1520,16 @@ pass out quick on {$wancfg['if']} proto tcp from any to any port = 1723 flags S/
EOD;
}
- $ipfrules .= <<<EOD
+ if ($wancfg['ipaddr'] == "dhcp") {
+
+ $ipfrules .= <<<EOD
# allow our DHCP client out to the WAN
-# XXX - should be more restrictive
-# (not possible at the moment - need 'me' like in ipfw)
anchor "wandhcp"
pass out quick on $wanif proto udp from any port = 68 to any port = 67 label "allow dhcp client out wan"
EOD;
+ }
if($config['interfaces']['lan']['bridge'] <> "wan" and $config['interfaces']['wan']['bridge'] <> "lan")
$ipfrules .= "block in $log quick on $wanif proto udp from any port = 67 to {$lansa_sn_combo} port = 68 label \"allow dhcp client out wan\"\n";
OpenPOWER on IntegriCloud