How to route my traffic through the VPN

manmad dvb12er dvb12er at yandex.com
Thu Aug 28 06:32:59 PDT 2014


Hello there,
I'm having trouble trying to connect through openconnect VPN on Ubuntu 14.04.
What I basically need is to route my HTTP\S traffic in such way that my public IP will be the VPN address.
I'm connecting using the "network-manager-openconnect".
Here is my route table after I connect to the VPN:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.0.138      0.0.0.0         UG    0      0        0 wlan0
10.0.0.0        0.0.0.0         255.0.0.0       U     9      0        0 wlan0
10.100.100.0    0.0.0.0         255.255.255.0   U     0      0        0 vpn0
xx.yy.zz.cc    10.0.0.138      255.255.255.255 UGH   0      0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 vpn0
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 vpn0

Where xx.yy.zz.cc is the IP of the VPN server.
When I go to "what is my ip" service, I get the same old IP instead of the VPN's one.
I downloaded the last version of the script from here: http://www.infradead.org/openconnect/vpnc-script.html, nothing changed.
I have no idea what should I do in order to route my traffic through the VPN, does anyone know what cause the problem?

Thanks



More information about the openconnect-devel mailing list