Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
16.7 Legacy Series
»
[SOLVED] pptp redirect
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] pptp redirect (Read 7365 times)
gmiserk
Newbie
Posts: 6
Karma: 0
[SOLVED] pptp redirect
«
on:
November 29, 2016, 05:22:44 pm »
Hi all,
I have a pptp server inside my lan (192.168.1.99) and want to reach it by client pptp
i've found this info:
"The PPTP server redirection mode has been removed. It can be emulated by the two following NAT port forward rules: From incoming WAN interface, redirect all traffic to PPTP server IP target for protocol GRE. From incoming WAN interface redirect all traffic to PPTP server IP target for protocol TCP, port 1723. Note that due to the design of GRE, only one server can be reached by incoming clients at any given time."
with last last update pptp was removed
I suppose that for me, It'snt necessary to add this plugin because my server is inside the lan, and i want to redirect correctly the vpn connection to my pptp server
so, i have added two Nat redirection : GRE and tcp/1723 from WAN to LAN 192.168.1.99
But that doen't work !
What i have missed,
Thank for any help
config opnsense ip :192.168.1.1
«
Last Edit: November 30, 2016, 10:33:46 pm by franco
»
Logged
franco
Administrator
Hero Member
Posts: 17659
Karma: 1611
Re: pptp redirect
«
Reply #1 on:
November 30, 2016, 09:02:38 am »
Hi there,
The redir mode did the following:
$natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto gre from any to any -> {$pptpdtarget}\n";
$natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto tcp from any to any port 1723 -> {$pptpdtarget}\n";
Can you compare with your rules from the file /tmp/rules.debug ?
Cheers,
Franco
Logged
gmiserk
Newbie
Posts: 6
Karma: 0
Re: pptp redirect
«
Reply #2 on:
November 30, 2016, 10:21:54 am »
Hi thank you for your reply
in /tmp/rules.debug, i havn't any lines begin with : $natrules
here is lines with 1723
cat /tmp/rules.debug | grep 1723
rdr on bge0 inet proto tcp from any port 1723 to 192.168.100.1 -> 192.168.100.99 port 1723
no nat on re0 proto tcp from re0 to 192.168.100.99 port 1723
nat on re0 proto tcp from 192.168.100.0/22 to 192.168.100.99 port 1723 -> 192.168.100.1 port 1024:65535
pass in log on $WAN proto tcp from any to 8x.xxx.xx.xxx port = 1723 modulate state label "allow pptpd 8x.xxx.xx.xxx"
pass in quick on $WAN reply-to ( bge0 8x.xxx.xx.xxx ) inet proto tcp from any port 1723 to 192.168.100.99 port 1723 flags S/SA keep state label "USER_RULE: NAT "
pass in quick on $LAN inet proto tcp from 192.168.100.0/22 port 1723 to 8x.xxx.xx.xxx/29 flags S/SA keep state label "USER_RULE"
and here lines with gre :
cat /tmp/rules.debug | grep gre
rdr on bge0 inet proto gre from any to any -> 192.168.100.99
no nat on re0 proto gre from re0 to 192.168.100.99
nat on re0 proto gre from 192.168.100.0/22 to 192.168.100.99 -> 192.168.100.1 port 1024:65535
pass in log on $WAN proto gre from any to any keep state label "allow gre pptpd"
pass in quick on $WAN reply-to ( bge0 8x.xxx.xx.xxx ) inet proto gre from any to 192.168.100.99 keep state label "USER_RULE: NAT "
pass in quick on $LAN inet proto gre from any to any keep state label "USER_RULE"
pass in quick on $LAN inet6 proto gre from any to any keep state label "USER_RULE"
ps : jsute te be sure {$pptpdtarget} is my ip auth machine, is this correct ?
i hope this info can help
«
Last Edit: November 30, 2016, 10:27:44 am by gmiserk
»
Logged
franco
Administrator
Hero Member
Posts: 17659
Karma: 1611
Re: pptp redirect
«
Reply #3 on:
November 30, 2016, 11:31:53 am »
rdr on bge0 inet proto tcp from any port 1723 to 192.168.100.1 -> 192.168.100.99 port 1723
This seems wrong, assuming bge0 is your WAN. 1723 was set for source, but needs to be set to destination. You should lose the destination WAN address if you can, too. GRE looks ok.
There is more PPTP redirection going on than it should. Are there more PPTP workarounds? Please double-check you're not accidentally policing the traffic.
Logged
gmiserk
Newbie
Posts: 6
Karma: 0
Re: pptp redirect
«
Reply #4 on:
November 30, 2016, 12:36:16 pm »
you find it
thantks franco
Logged
echappatte
Newbie
Posts: 15
Karma: 3
Re: pptp redirect
«
Reply #5 on:
November 30, 2016, 01:38:29 pm »
Hello,
I follow your message but Franco is too fast
, nice to see your problem solved
Logged
franco
Administrator
Hero Member
Posts: 17659
Karma: 1611
Re: pptp redirect
«
Reply #6 on:
November 30, 2016, 10:33:37 pm »
Easy with the right help from you guys
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
16.7 Legacy Series
»
[SOLVED] pptp redirect