User Tools

Site Tools


openvpn_no_internet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
openvpn_no_internet [2020/08/14 14:36] chrisopenvpn_no_internet [2020/08/14 15:27] (current) chris
Line 3: Line 3:
 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: 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:
  
-iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE+   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. +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
 \\ \\
 \\       \\      
openvpn_no_internet.1597408573.txt.gz · Last modified: 2020/08/14 14:36 by chris