Answer the question
In order to leave comments, you need to log in
How to make a VPN tunnel from the Internet home bypassing NAT?
I did everything according to the instructions
https://habrahabr.ru/post/216101/
Both machines ping 10.9.8.1 and 10.9.8.2, but I can't connect via ssh to my home computer using the command "ssh -p 666 [email protected]_virtual_server".
iptables -t nat -A PREROUTING -d ip_server_home
-p tcp --dport 666 -j DNAT --to-dest ip_home_server:22
iptables -t nat -A POSTROUTING -d ip_home_server -p tcp --dport 22 -j SNAT - -to-source 10.9.8.1
were made on a home computer. Do you need to do anything with iptables on the server?
What could be the problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question