Hi,
I want to run a few applications on my server with the ip of a commercial vpn service.
I connect to the vpn service with openvpn client within a docker container.
My problem is that the applications have no internet connection.
Here is my routing table before openvpn (all works fine within the docker -- I can reach internet):
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.17.0.1 0.0.0.0 UG 0 0 0 eth0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
Now I start openvpn and it all becomes this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.8.0.5 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 172.17.0.1 0.0.0.0 UG 0 0 0 eth0
10.8.0.1 10.8.0.5 255.255.255.255 UGH 0 0 0 tun0
10.8.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
107.191.50.176 172.17.0.1 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 10.8.0.5 128.0.0.0 UG 0 0 0 tun0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
I can connect to 107.191.50.176 and 10.8.0.1 but not to the internet:
>lynx
www.google.com
>Looking up '
www.google.com' first
>(stalls)
My client config is
client
dev tun
proto tcp
remote 107.191.50.176 443
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca /root/ca.crt
auth-user-pass /root/credentials
comp-lzo
verb 3
Anybody knows whats up? I think I have to bridge tun0 and eth0 or maybe remove one of the 0.0.0.0 destination routes. But have no real clue.