Took the server with a pre-installed image of Ubuntu 16.04 immediately after you run iptables-save
, there is such a rule
-A POSTROUTING -s 10.8.0.0/24 ! -d 10.8.0.0/24-j SNAT --to-source XX.XX.XXX.XXX
If I understand correctly, it is added there by some script. Instead, the rules I need quite another
-A POSTROUTING -s 10.0.0.0/8 -o ens2 -j MASQUERADE
Otherwise my VPN refuses to give the Internet. How to do it correctly?