vpnc has a script to set up default route for the vpn tunnel when connecting. This functionality is missing from the networkmanager-vpnc. (Or how networkmanager-vpnc uses vpnc it doesn't make use of that script) When connecting to some cisco vpn servers the default route has to be set up manually. The ip of the tunnel interface (tun0) has to be made the default gateway. eg. route add default gw 1.2.3.4 The original default route should be saved The new set up. When the connection is closed the original restored.
Hi, Could you please post some NM logs when you connect to VPN?
when connected with networkmanager/nm-applet to the cisco vpn the route is this: (this is the one not working) # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 141.28.6.0 * 255.255.254.0 U 0 0 0 tun0 10.10.8.0 * 255.255.252.0 U 2 0 0 eth1 loopback localhost 255.0.0.0 UG 0 0 0 lo connecting to the same vpn server with vpnc (networkmanager is off) (this way I have internet connection) # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.10.8.2 * 255.255.255.255 UH 0 0 0 eth1 141.28.6.0 * 255.255.254.0 U 0 0 0 tun0 10.10.8.0 * 255.255.252.0 U 303 0 0 eth1 loopback localhost 255.0.0.0 UG 0 0 0 lo default * 0.0.0.0 U 0 0 0 tun0
The vpnc-script was recently reworked by upstream. Maybe you want to re-test test version of vpnc?
This is great! I would try it, but I'm no longer attending the institute where I had the VPN access, so I can't test it personally. I'll try to find someone else somehow... :D
I have the same problem with openconnect plugin: https://bugzilla.gnome.org/show_bug.cgi?id=671747
Maybe this thread would help gentoo-devs to better understand what is going on under the hood: http://www.gossamer-threads.com/lists/vpnc/devel/3842
It was more a configuration problem: https://bugzilla.gnome.org/show_bug.cgi?id=671747#c7 0.9.8.2 works fine for me