User Tools

Site Tools


openvpn_no_internet

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. 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.

Enjoy,

Your ArtIT Team

BACK

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