diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-04 01:32:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-04 01:32:35 +0000 |
commit | d6c94101e692d93c69d9464ed02036f410290abc (patch) | |
tree | cd44f522db5c91926d75a73fb7aa6176052bcfb4 | |
parent | ee953edc9b2df75e41e1b0d0154264eeba9541f1 (diff) | |
download | pfsense-d6c94101e692d93c69d9464ed02036f410290abc.zip pfsense-d6c94101e692d93c69d9464ed02036f410290abc.tar.gz |
Import m0n0wall 1.21 PPTP Server
-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; |