I have openvpn installed on my raspberry pi running debian. I can connect to the vpn and access the computers on my home network, but I can't get to the internet. I assume this is a route problem, but as far as I can tell, my routes seem correct.
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default myrouter.local 0.0.0.0 UG 0 0 0 wlan0
10.10.0.0 10.10.0.2 255.255.255.224 UG 0 0 0 tun0
10.10.0.2 * 255.255.255.255 UH 0 0 0 tun0
10.20.20.0 * 255.255.255.0 U 0 0 0 wlan0
10.10.0.0 255.255.255.224 is my vpn network. 10.20.20.0 255.255.255.0 is my home network.
I have internet on the vpn server (pi). So, if I ssh into the server, I can get to the internet, but not through the browser.
root@raspberrypi:/home/pi# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:14:4e:5a
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:553 errors:0 dropped:5 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33441 (32.6 KiB) TX bytes:300 (300.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1492 (1.4 KiB) TX bytes:1492 (1.4 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.10.0.1 P-t-P:10.10.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1274 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:79662 (77.7 KiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 80:1f:02:da:97:53
inet addr:10.20.20.250 Bcast:10.20.20.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4896 errors:0 dropped:146 overruns:0 frame:0
TX packets:4906 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:855935 (835.8 KiB) TX bytes:602345 (588.2 KiB)
any help is appreciated.
Bookmarks