A
A
aratueio2017-06-07 03:56:37
SSH
aratueio, 2017-06-07 03:56:37

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

1 answer(s)
A
athacker, 2017-06-07
@athacker

The iptables configuration command must be run on a virtual server, not on a home computer :-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question