Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294607 - net-misc/networkmanager-{vpnc,openconnect} not setting default route
Summary: net-misc/networkmanager-{vpnc,openconnect} not setting default route
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 16:48 UTC by whitehawk
Modified: 2013-06-16 11:53 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whitehawk 2009-11-25 16:48:29 UTC
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.
Comment 1 Robert Piasek (RETIRED) gentoo-dev 2009-12-02 11:25:33 UTC
Hi,

Could you please post some NM logs when you connect to VPN?

Comment 2 whitehawk 2010-01-31 21:30:21 UTC
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

Comment 3 Martin Mokrejš 2012-02-28 12:51:31 UTC
The vpnc-script was recently reworked by upstream. Maybe you want to re-test test version of vpnc?
Comment 4 whitehawk 2012-03-02 21:19:24 UTC
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
Comment 5 Pacho Ramos gentoo-dev 2012-04-06 15:00:00 UTC
I have the same problem with openconnect plugin:
https://bugzilla.gnome.org/show_bug.cgi?id=671747
Comment 6 Martin Mokrejš 2013-02-07 15:25:28 UTC
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
Comment 7 Pacho Ramos gentoo-dev 2013-06-16 11:53:26 UTC
It was more a configuration problem:
https://bugzilla.gnome.org/show_bug.cgi?id=671747#c7

0.9.8.2 works fine for me