User Tools

Site Tools


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 -o eth0 -j MASQUERADE
 /sbin/iptables-save > /etc/iptables/rules

where is your VPN network and eth0 your networkcard. Your have to change this if your settings defere. Any time you change your rules run /sbin/iptables-save > /etc/iptables/rules to update them.


Your ArtIT Team


openvpn_no_internet.txt · Last modified: 2020/08/14 15:27 by chris