Comment 0 for bug 294394

Revision history for this message
BrowneR (chris-scotland) wrote : Error: Failed to set IPv4 route

Binary package hint: network-manager-vpnc

When connecting to my university VPN via Network Manager's vpnc plugin I observe errors in syslog and the ifupdown script terminates abnormally.

The VPN does however appear to function correctly.

syslog:

Nov 5 21:38:56 chris-laptop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.vpnc'...
Nov 5 21:38:56 chris-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 20336
Nov 5 21:38:56 chris-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections
Nov 5 21:38:56 chris-laptop NetworkManager: <info> VPN plugin state changed: 1
Nov 5 21:38:56 chris-laptop NetworkManager: <info> VPN plugin state changed: 3
Nov 5 21:38:56 chris-laptop NetworkManager: <info> VPN connection 'University' (Connect) reply received.
Nov 5 21:38:56 chris-laptop kernel: [ 4914.884667] tun0: Disabled Privacy Extensions
Nov 5 21:38:56 chris-laptop NetworkManager: <info> VPN connection 'University' (IP Config Get) reply received.
Nov 5 21:38:56 chris-laptop NetworkManager: <info> VPN Gateway: 138.251.5.1
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Tunnel Device: tun0
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Internal IP4 Address: 138.251.5.45
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Internal IP4 Prefix: 24
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Internal IP4 Point-to-Point Address: 138.251.5.45
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Maximum Segment Size (MSS): 0
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Static Route: 138.251.0.0/16 Next Hop: 138.251.0.0
Nov 5 21:38:56 chris-laptop last message repeated 9 times
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Internal IP4 DNS: 138.251.66.46
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Internal IP4 DNS: 138.251.40.10
Nov 5 21:38:56 chris-laptop NetworkManager: <info> DNS Domain: '(none)'
Nov 5 21:38:56 chris-laptop NetworkManager: <info> Login Banner:
Nov 5 21:38:56 chris-laptop NetworkManager: <info> -----------------------------------------
Nov 5 21:38:56 chris-laptop NetworkManager: <info> (null)
Nov 5 21:38:56 chris-laptop NetworkManager: <info> -----------------------------------------
Nov 5 21:38:56 chris-laptop vpnc[20342]: can't open pidfile /var/run/vpnc/pid for writing
Nov 5 21:38:57 chris-laptop NetworkManager: <WARN> nm_system_device_set_ip4_route(): Failed to set IPv4 route on 'tun0': Sucess
Nov 5 21:38:57 chris-laptop last message repeated 8 times
Nov 5 21:38:57 chris-laptop NetworkManager: <info> VPN connection 'University' (IP Config Get) complete.
Nov 5 21:38:57 chris-laptop NetworkManager: <info> Policy set 'Auto eth0' (eth0) as default for routing and DNS.
Nov 5 21:38:57 chris-laptop NetworkManager: <info> VPN plugin state changed: 4
Nov 5 21:38:57 chris-laptop nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.

route -n (VPN connected)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
138.251.5.1 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
138.251.5.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
138.251.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tun0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

route -n (VPN disconnected)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0