nm-vpnc and vpnc-connect produce different routing tables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-vpnc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Logging into the same cisco concentrator produces different results depending how you connect.
From network manager the default route is pointed at tun0.
Destination Gateway Genmask Flags Metric Ref Use Iface
<cisco-
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 tun0
However, vpnc-connect produces a list of routes (provided by the concentrator) and a default route to eth0:
Destination Gateway Genmask Flags Metric Ref Use Iface
<cisco-
<fqdn-host> * 255.255.255.255 UH 0 0 0 tun0
<fqdn-host> * 255.255.255.255 UH 0 0 0 tun0
<internal-ip> * 255.255.255.255 UH 0 0 0 tun0
<internal-ip> * 255.255.255.255 UH 0 0 0 tun0
<internal-ip> * 255.255.255.224 U 0 0 0 tun0
<internal-ip> * 255.255.255.192 U 0 0 0 tun0
<internal-ip> * 255.255.255.128 U 0 0 0 tun0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
<internal-ip> * 255.255.254.0 U 0 0 0 tun0
<internal-ip> * 255.255.248.0 U 0 0 0 tun0
<internal-ip> * 255.255.192.0 U 0 0 0 tun0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
The net effect is I can do my normal Internet related stuff with vpnc-connect. With network-
Having exact same issue-- vpnc-connect and network- manager- vpnc both authenticate and bring up tun0, but vpnc-connect sets up routes properly and network- manager- vpnc does not:
Default Boot
cpratt@ ubuntu_ 8.0.4:~ $ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
Started VPN via network- manager- vpnc (0.6.4svn2422- 0ubuntu5)
cpratt@ ubuntu_ 8.0.4:~ $ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
72.14.253.83 192.168.1.1 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 wlan0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 tun0
Disconnected network- manager- vpnc (0.6.4svn2422- 0ubuntu5)
cpratt@ ubuntu_ 8.0.4:~ $ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
Started VPN via vpnc-connect (0.5.1r275-1)
cpratt@ ubuntu_ 8.0.4:~ $ sudo vpnc-connect 72.14.253. 83: 72.14.253. 83: ubuntu_ 8.0.4:~ $ netstat -rn ubuntu_ 8.0.4:~ $
Enter IPSec gateway address: 72.14.253.83
Enter IPSec ID for 72.14.253.83: grokauth
Enter IPSec secret for grokauth@
Enter username for 72.14.253.83: cpratt
Enter password for cpratt@
VPNC started in background (pid: 15577)...
cpratt@
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
72.14.253.83 192.168.1.1 255.255.255.255 UGH 1500 0 0 wlan0
172.20.0.81 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
172.20.0.80 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.20.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
172.21.100.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.255.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
10.10.0.0 0.0.0.0 255.255.252.0 U 0 0 0 tun0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
cpratt@