Community discussions

MikroTik App
 
madrian
just joined
Topic Author
Posts: 3
Joined: Fri Feb 11, 2011 3:26 am

ppptp VPN to LAN port

Thu Nov 24, 2011 6:28 pm

Hi all,

It is possible to make a pptp connection, and forward this connection to one LAN port -keeping current internet connection on it?

Details:

LAN2 = current internet port

LAN4 = connected device

pptp1 = VPN connection, if I connect to my provider, he give me an IP address, which is accessible from the internet. This is what I need.

I want to keep my internet connection (LAN2) on my device (LAN4), but I also want to route pptp1 connection to LAN4 port, to access it from the IP, which I given from the pptp provider. Huhh? Difficult but, it is possible? If yes, how? :)

LAN2<--primary connection-->LAN4 <---VPN also accessible-->pptp1
 
User avatar
sadeghrafie
Long time Member
Long time Member
Posts: 514
Joined: Sat Nov 14, 2009 11:28 am
Location: Bushehr, IRAN

Re: ppptp VPN to LAN port

Thu Nov 24, 2011 6:48 pm

If I didn't mistake, you need a Firewall rule which NAT all incoming traffic with dst address of PPTP to Router.
/ip firewall nat add chain=dstnat dst-address="PPTP IP" action=dst-nat to-addresses="Private IP of Device on LAN4"
 
madrian
just joined
Topic Author
Posts: 3
Joined: Fri Feb 11, 2011 3:26 am

Re: ppptp VPN to LAN port

Thu Nov 24, 2011 6:55 pm

Thank you very much, I will try that. I have another question too: it is possible to route outgoing traffic of specified application on the LAN4 port to VPN?
 
User avatar
sadeghrafie
Long time Member
Long time Member
Posts: 514
Joined: Sat Nov 14, 2009 11:28 am
Location: Bushehr, IRAN

Re: ppptp VPN to LAN port

Thu Nov 24, 2011 7:57 pm

Sure, if you know which ports that application used, just add src NAT rule

Who is online

Users browsing this forum: yhfung and 10 guests