Answer the question
In order to leave comments, you need to log in
How to forward port to local machine connected to vpn?
Guys, the question is, is it possible to somehow make a connection to a remote machine that is connected to the VPN, but in the dnsmasq options I disabled the use of the default gateway so that all traffic is not driven through vpn
The line that disables the use of the default gateway in dnsmasq.conf Forwarded the
dhcp-option=tap_virt,3
ports like this
iptables -t nat -A PREROUTING --dst xxx.xxx.xxx.xxx -p tcp --dport 3389 -j DNAT --to-destination 10.10.10.10:3389
iptables -t nat -I POSTROUTING -o tap_virt -d 10.10.10.10 -p tcp --dport 3389 -j MASQUERADE
dhcp-option=tap_virt,3
Answer the question
In order to leave comments, you need to log in
I can guess like this:
iptables -t nat -A POSTROUTING -o tap_virt -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --dport 3389 -j DNAT --to 10.10.10.10:3389
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question