Answer the question
In order to leave comments, you need to log in
What is preventing the 2nd client from connecting to openvpn via ubuntu server with port forwarding?
There are 2 servers on Ubuntu Server 16.04. 1st server - a router with a white ip, 2nd - as an openvpn server .
The router forwards the port for openvpn using iptables:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 4444 -j DNAT --to-destination 10.77.77.10
iptables -t nat -A POSTROUTING -o eth1 -p tcp --dport 4444 -d 10.77.77.10 -j SNAT --to-source 10.77.77.7:4444
iptables -A FORWARD -i eth0 -o eth1 -p tcp --syn --dport 4444 -m conntrack --ctstate NEW -j ACCEPT
Answer the question
In order to leave comments, you need to log in
What is this for?!
iptables -t nat -A POSTROUTING -o eth1 -p tcp --dport 4444 -d 10.77.77.10 -j SNAT --to-source 10.77.77.7:4444
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question