I've several VPS in cloud (cloud has own virtual subnet 10.0.0.0/24).
One of the VPS is OpenVPN server running Debian Linux with 172.16.16.0/24 subnet. Server internal IP is 10.0.0.13
Everything works fine.
Config is pretty standard
Code: Select all
port 1194
proto udp
dev tun
server 172.16.16.0 255.255.255.0
iptables config
Code: Select all
-A INPUT -i eth0 -p udp -m state --state NEW -m udp --dport 1194 -j ACCEPT
-A POSTROUTING -s 172.16.16.0/24 -o eth0 -j MASQUERADE
Thanks!