Hi,
I connect with ssh to my amazon aws server and am connecting via openvpn client to a vpn.sh vpn. Once I do, the ssh connection fails and the server gets unreachable via ssh.
Is there anything I could do to make it work?
My routing table does not contain the public internet address of the server but a gateway on the same subnet as eth0:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.78.132.193 0.0.0.0 UG 100 0 0 eth0
10.78.132.192 0.0.0.0 255.255.255.192 U 0 0 0 eth0
172.17.0.0 * 255.255.0.0 U 0 0 0 docker0
Tried to make it work in a docker container -- there i dont lose ssh connection but have no outgoing internet traffic at all (lynx
www.google.com times out etc.)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.8.0.9 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.9 255.255.255.255 UGH 0 0 0 tun0
10.8.0.9 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.9 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
For completeness here also my client conf:
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
Would be pretty cool if someone could explain to me what kind of routing I have to do to make it work... I already tried this approach but had no luck cause my local ip is not my public ip as in the example and I have no idea how to really make it work:
https://forum.linode.com/viewtopic.php?p=50114&sid=d4e386790351a09f638cff7fdeaeee8a#p50114