diff options
-rw-r--r-- | etc/inc/filter.inc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 1abfb11..670dbf2 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1641,7 +1641,7 @@ EOD; if ($pptpdcfg['mode'] && ($pptpdcfg['mode'] != "off")) { if ($pptpdcfg['mode'] == "server") - $pptpdtarget = "127.0.0.1"; + $pptpdtarget = $curwanip; else $pptpdtarget = $pptpdcfg['redir']; @@ -1649,12 +1649,8 @@ EOD; # PPTPd rules anchor "pptp" -#pass quick proto gre from any to {$pptpdtarget} keep state label "allow gre pptpd" -#pass quick proto tcp from any to {$pptpdtarget} port = 1723 keep state label "allow pptpd {$pptpdtarget}" -# XXX: fix me! -pass quick proto gre from any to any keep state label "allow gre pptpd" -pass quick proto tcp from any to any port = 1723 keep state label "allow pptpd {$pptpdtarget}" - +pass in quick proto gre from any to $pptpdtarget keep state label "allow gre pptpd" +pass in quick proto tcp from any to $pptpdtarget port = 1723 keep state label "allow pptpd {$pptpdtarget}" EOD; |