Community discussions

MikroTik App
 
jaxed8
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Tue Jul 27, 2021 8:25 pm

dstnat on a specific VPN

Tue Oct 12, 2021 3:49 am

Hello everyone
I got vpn (PPTP1) on the router that the whole traffic route thorough that, now I want to keep it the same way but only route all /ip firewall nat add action=dst-nat chain=dstnat dst-port=XXXX protocol=tcp to-addresses=192.168.XX.XX to-ports=XX thorough an other vpn (PPTP2).
So two active vpn one (PPTP1) for everything and another one (PPTP2) just for /ip firewall nat add action=dst-nat chain=dstnat addresses with the specified port.
This is my configuration:
export config.txt
You do not have the required permissions to view the files attached to this post.
 
jaxed8
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Tue Jul 27, 2021 8:25 pm

Re: dstnat on a specific VPN

Thu Oct 14, 2021 11:41 am

up up
 
jaxed8
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Tue Jul 27, 2021 8:25 pm

Re: dstnat on a specific VPN

Fri Oct 15, 2021 4:20 pm

up up
 
jaxed8
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Tue Jul 27, 2021 8:25 pm

Re: dstnat on a specific VPN

Fri Oct 15, 2021 9:35 pm

Is it even possible?
 
sindy
Forum Guru
Forum Guru
Posts: 7925
Joined: Mon Dec 04, 2017 9:19 pm

Re: dstnat on a specific VPN

Fri Oct 15, 2021 11:23 pm

Yes, read this post, starting from the last paragraph which relates it to your context. Think about your two VPN tunnels as WANs.

Loosely related - PPTP provides almost no security, its encryption is ridiculously week from nowaday's perspective. L2TP/IPsec is equally simple (or complex) to configure and much more secure.
Don't write novels, post /export hide-sensitive file=x. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.

Who is online

Users browsing this forum: Ahrefs [Bot], digitik, nichky, Semrush [Bot] and 53 guests