openvpn_no_internet
This is an old revision of the document!
No Internet on OpenVPN
When you first configured open VPN on Debian no blog or site tells you to do routing on you network to have connection to internet while working with VPN. To have internet and access to your network do:
apt-get iptables-persistent iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE /sbin/iptables-save > /etc/iptables/rules
where 10.8.0.0/24 is your VPN network and eth0 your networkcard. This you have to change if your settings defere. Any time you change your rules run /sbin/iptables-save > /etc/iptables/rules to update them.
Enjoy,
Your ArtIT Team
BACK
openvpn_no_internet.1597411602.txt.gz · Last modified: 2020/08/14 15:26 by chris