Really hope somebody can help me out here. Can’t seem to find the solution in this forum/anywhere. I’ve got a VPS on which I would like to run OpenVPN. I’ve got OpenVPN installed, Tunnelblick installed on my MBP, Tunnelblick is set to route all traffic through the VPN and that connecting to my VPS works like a charm! What doesn’t seem to work is the routing, I don’t have an internet connection. I know the VPS has a working internet connection (I can ping almighty google from the VPS command line) I’ve used the following guide:
https://community.openvpn.net/openvpn/w ... AndRouting
1. I’ve set net.ipv4.ip_forward = 1
2. Added all the iptables rules displayed in the guide
3. No succes…
All is down to me not having any experience with this…
Probably I don’t understand a thing of the interfaces present and routing rules…
Can somebody help me out here?
Recap; goal is to connect to the internet over the VPN. My ifconfig:
Iptables is currently empty.lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:208944 errors:0 dropped:0 overruns:0 frame:0
TX packets:208944 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24929507 (24.9 MB) TX bytes:24929507 (24.9 MB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5634 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:680407 (680.4 KB) TX bytes:1452 (1.4 KB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: 2001:41d0:52:a00::fe9/56 Scope:Global
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:2160515 errors:0 dropped:0 overruns:0 frame:0
TX packets:2256522 errors:0 dropped:5601 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:163075904 (163.0 MB) TX bytes:221121106 (221.1 MB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:x.xxx.xx.xxx P-t-P:x.xxx.xx.xxx Bcast:x.xxx.xx.xxx Mask:255.255.255.0
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
What rules should I put in to get this working?
Any help is much appreciated!!
Thanks.