You are not logged in.

#1 2012-09-08 08:27:08

dxxvi
Member
Registered: 2011-07-23
Posts: 122

[Solved] How to modify the routing table after vpnc?

I vpn to my work and this is the routing table:

[ly@ArchCustom ~]$ ip route show
default dev tun0  scope link 
default via 192.168.4.1 dev eth0  metric 202 
12.106.32.25 via 192.168.4.1 dev eth0  src 192.168.4.19 
135.207.102.0/23 dev tun0  scope link 
192.168.4.0/24 dev eth0  proto kernel  scope link  src 192.168.4.19  metric 202

I think because of the 1st entry in the routing table, all the internet connections have to go through the tun0 interface. Is there anyway to modify the routing table so that it looks like this:

[ly@ArchCustom ~]$ ip route show
default via 192.168.4.1 dev eth0  metric 202 
12.106.32.25 via 192.168.4.1 dev eth0  src 192.168.4.19 
135.207.0.0/16 dev tun0  scope link 
135.205.0.0/16 dev tun0  scope link 
192.168.4.0/24 dev eth0  proto kernel  scope link  src 192.168.4.19  metric 202

I tried:

[ly@ArchCustom ~]$ sudo ip addr del default dev tun0
RTNETLINK answers: Operation not supported

Thanks.

Edit: http://www.gentoo.org/doc/en/vpnc-howto.xml
and check /etc/vpnc/vpnc-script

Last edited by dxxvi (2012-09-08 10:13:37)

Offline

Board footer

Powered by FluxBB