Answer the question
In order to leave comments, you need to log in
How to make NAT for openvpn?
There is a machine on which the openvpn server was raised on port 1194. Everything is as usual.
Now another openvpn machine is up. How to properly forward to the new server on the old one?
On the old machine, the service was extinguished and the rules were introduced:
iptables -t nat -A PREROUTING -p udp --dport 1194 -j DNAT --to-destination 10.204.11.200:1194
iptables -t nat -A POSTROUTING -j MASQUERADE
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