diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 22:59:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 22:59:49 +0000 |
commit | 03aebc4c5075dfbb1537f9a78f8fe54c21e97082 (patch) | |
tree | 80f7a637e24e4a98b20e97980c7e3e4e45d1b3ff /etc/inc/filter.inc | |
parent | d5d00b834f97c9f8f38bcfc3589fcc4849e5718a (diff) | |
download | pfsense-03aebc4c5075dfbb1537f9a78f8fe54c21e97082.zip pfsense-03aebc4c5075dfbb1537f9a78f8fe54c21e97082.tar.gz |
Update for CarpDEV-DHCP support.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index d345043..16bb287 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2742,7 +2742,7 @@ EOD; } } - if ($wancfg['ipaddr'] == "dhcp") + if ($wancfg['ipaddr'] == "dhcp" or $wancfg['ipaddr'] == "carodev-dhcp") $ipfrules .= "anchor \"wandhcp\""; if($config['interfaces']['lan']) $ipfrules .= <<<EOD @@ -2762,7 +2762,7 @@ pass in on \$wan proto udp from any port = 67 to any port = 68 label "allow dhcp EOD; - if ($wancfg['ipaddr'] == "dhcp") { + if ($wancfg['ipaddr'] == "dhcp" or $wancfg['ipaddr'] == "carodev-dhcp") { $ipfrules .= <<<EOD # allow our DHCP client out to the WAN @@ -2773,7 +2773,7 @@ EOD; /* allow access to DHCP server on optional interfaces */ foreach ($optcfg as $on => $oc) { - if ($config[interfaces][$on][ipaddr] == "dhcp" ) { + if ($config[interfaces][$on][ipaddr] == "dhcp" or $config[interfaces][$on][ipaddr] == "carpdev-dhcp") { $friendly_on = filter_get_opt_interface_descr($on); $ipfrules .= <<<EOD |