diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-11-26 21:12:36 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-11-26 21:12:36 +0000 |
commit | 73011fc8ecf0d72b792104bffed299ce26d6bbf5 (patch) | |
tree | 383e0a8bd0c536d19fd21fe7620a0d1678a7aafe /etc/inc | |
parent | 9f58e3b8312c6046108f5e0fd0b7759e48cb0c06 (diff) | |
download | pfsense-73011fc8ecf0d72b792104bffed299ce26d6bbf5.zip pfsense-73011fc8ecf0d72b792104bffed299ce26d6bbf5.tar.gz |
Handle the case where WAN might be disabled or renamed.
Diffstat (limited to 'etc/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 f4dbc08..53f2c27 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2022,12 +2022,12 @@ EOD; $pptpdtarget = get_interface_ip(); else $pptpdtarget = $pptpdcfg['redir']; - if($pptpdtarget) { + if(is_ipaddr($pptpdtarget) and is_array($FilterIflist['wan'])) { $ipfrules .= <<<EOD # PPTPd rules anchor "pptp" -pass in on \$WAN proto gre from any to $pptpdtarget keep state label "allow gre pptpd" -pass in on \$WAN proto tcp from any to $pptpdtarget port = 1723 modulate state label "allow pptpd {$pptpdtarget}" +pass in on \${$FilterIflist['wan']['descr']} proto gre from any to $pptpdtarget keep state label "allow gre pptpd" +pass in on \${$FilterIflist['wan']['descr']} proto tcp from any to $pptpdtarget port = 1723 modulate state label "allow pptpd {$pptpdtarget}" EOD; |