ppptp VPN to LAN port

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? :slight_smile:

LAN2<–primary connection–>LAN4 <—VPN also accessible–>pptp1

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"

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?

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