IT, Digital & Leadership
If it’s ok, check your iptables rules.
# grep net.ipv4.ip_forward /etc/sysctl.conf net.ipv4.ip_forward=1 # cat /proc/sys/net/ipv4/ip_forward 1 # sysctl -a | grep "net.ipv4.ip_forward " net.ipv4.ip_forward = 1
I had no nat rule in my nat table, sad times! I added the following and all is well.
iptables -t nat -L -vn --line iptables -L FORWARD -vn --line
$IPis your public server IP:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to $IP