Community discussions

MikroTik App
 
Ixo
just joined
Topic Author
Posts: 22
Joined: Fri Dec 07, 2012 9:43 pm

VPN to Eth

Wed Apr 19, 2017 12:08 pm

Hi All, hope you can help me with my query.

Is there a possibility to connect PPTP client to the server and pass that connection to a specific Eth port? So if I connect something to this port I will get access to resources on that VPN however any other Eth port would simply connect to my local network.

If this is possible I would be grateful for any help in achieving this setup.
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: VPN to Eth

Sun Apr 23, 2017 7:08 pm

Something like this should work:
/interface pptp-client
add name=pptp-out1 <other parameters>
/ip route
add distance=1 gateway=pptp-out1 routing-mark=pptp
/ip firewall mangle
add action=mark-routing chain=prerouting in-interface=<PPTP LAN port> new-routing-mark=pptp passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pptp-out1