Answer the question
In order to leave comments, you need to log in
Openvpn connects to the server, but the ports are not forwarded, how to solve?
from the server I can access the telnet device at the address given by openvpn, but from a remote computer I can’t connect from the white ip and port, maybe I’m specifying iptables incorrectly, iptables -t nat -A PREROUTING -d server ip/32 -p tcp - m tcp --dport 554 -j DNAT --to-destination 10.8.0.16:554
Answer the question
In order to leave comments, you need to log in
enable the client-to-client option in the server configuration - allows openvpn clients to communicate (most likely, it will take off without it)
and tell Linux that packets can be transferred through itself:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -d mysite.ru -p tcp --dport 32901 -j DNAT --to-dest 12.0.1.29:8730
iptables -t nat -A POSTROUTING -d 12.0.1.29 -p tcp --dport 8730 -j SNAT --to-source 12.0.1.1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question