[8.10] Error: Failed to set IPv4 route

Bug #294394 reported by BrowneR
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
network-manager-vpnc (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

Binary package hint: network-manager-vpnc
Affects Intrepid Ibex 8.10

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

Tags: 8.10 intrepid
BrowneR (chris-scotland)
description: updated
description: updated
Revision history for this message
Stefano (cantap) wrote :

I confirm.
There is that last error about the dispatcher and I can somehow get the pid file to be written by creating the vpnc directory and changing its permissions.

Stefano (cantap)
Changed in network-manager-vpnc:
status: New → Confirmed
Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 294394] Re: [8.10] Error: Failed to set IPv4 route

Stefano wrote:
> ** Changed in: network-manager-vpnc (Ubuntu)
> Status: New => Confirmed
>
>
Is this fixed in latest intrepid packages available in ~network-manager
team PPA (http://launchpad.net/~network-manager/+archive)?

Revision history for this message
Stefano (cantastefano) wrote :

No, it does not.
The interface at the end of the overall process is still ath0 and not tun0.

On Sat, Dec 27, 2008 at 7:02 PM, Alexander Sack <email address hidden> wrote:

> Stefano wrote:
> > ** Changed in: network-manager-vpnc (Ubuntu)
> > Status: New => Confirmed
> >
> >
> Is this fixed in latest intrepid packages available in ~network-manager
> team PPA (http://launchpad.net/~network-manager/+archive<http://launchpad.net/%7Enetwork-manager/+archive>
> )?
>
> --
> [8.10] Error: Failed to set IPv4 route
> https://bugs.launchpad.net/bugs/294394
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Alexander Sack (asac) wrote :

Stefano wrote:
> No, it does not.
> The interface at the end of the overall process is still ath0 and not tun0.
>
>
please attach your /etc/NetworkManager/nm-system-settings.conf and your
/etc/network/interfaces files here.

 status incomplete

Thanks!

Changed in network-manager-vpnc:
status: Confirmed → Incomplete
Revision history for this message
Stefano (cantastefano) wrote :

On Sun, Dec 28, 2008 at 7:37 PM, Alexander Sack <email address hidden> wrote:

> Stefano wrote:
> > No, it does not.
> > The interface at the end of the overall process is still ath0 and not
> tun0.
> >
> >
> please attach your /etc/NetworkManager/nm-system-settings.conf and your
> /etc/network/interfaces files here.
>
> status incomplete
>
> Thanks!
>
>
>
> ** Changed in: network-manager-vpnc (Ubuntu)
> Status: Confirmed => Incomplete
>
> --
> [8.10] Error: Failed to set IPv4 route
> https://bugs.launchpad.net/bugs/294394
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Id2ndR (id2ndr)
Changed in network-manager-vpnc:
status: Incomplete → New
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Hi,

Are you still experiencing this issue? Please see if this can be reproduced with the current release of Ubuntu (9.10).

Stefano, please post the routes as shown by 'netstat -rn' when connected to the VPN and when not connected, as well as and excerpt of /var/log/syslog (with any sensitive information blanked) for when you connect to the VPN.

Thanks!

Changed in network-manager-vpnc (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
BrowneR (chris-scotland) wrote :
Download full text (5.3 KiB)

Still present in 9.10 after upgrading except now the VPN no longer seems to function and allow me to connect. All is the same at the other end of the VPN and I'm pretty sure it is configured the same as it always was in network manager at my end.

route before vpn:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 2 0 0 eth1
default router.home 0.0.0.0 UG 0 0 0 eth1

route after vpn:
Destination Gateway Genmask Flags Metric Ref Use Iface
oux6513-vpnouts router.home 255.255.255.255 UGH 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 2 0 0 eth1
138.251.5.0 * 255.255.255.0 U 0 0 0 tun0
138.251.0.0 * 255.255.0.0 U 0 0 0 tun0
default * 0.0.0.0 U 0 0 0 tun0

Daemon.log:
Feb 21 00:30:45 chris-laptop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.vpnc'...
Feb 21 00:30:45 chris-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 3850
Feb 21 00:30:45 chris-laptop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections
Feb 21 00:30:45 chris-laptop NetworkManager: <info> VPN plugin state changed: 1
Feb 21 00:30:49 chris-laptop NetworkManager: <info> VPN plugin state changed: 3
Feb 21 00:30:49 chris-laptop NetworkManager: <info> VPN connection 'St-Andrews Uni' (Connect) reply received.
Feb 21 00:30:49 chris-laptop NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
Feb 21 00:30:49 chris-laptop NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
Feb 21 00:30:50 chris-laptop NetworkManager: <info> VPN connection 'St-Andrews Uni' (IP Config Get) reply received.
Feb 21 00:30:50 chris-laptop NetworkManager: <info> VPN Gateway: 138.251.5.1
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Tunnel Device: tun0
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Internal IP4 Address: 138.251.5.80
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Internal IP4 Prefix: 24
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Internal IP4 Point-to-Point Address: 138.251.5.80
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Maximum Segment Size (MSS): 0
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Static Route: 138.251.0.0/16 Next Hop: 138.251.0.0
Feb 21 00:30:50 chris-laptop NetworkManager: last message repeated 9 times
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Internal IP4 DNS: 138.251.66.46
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Internal IP4 DNS: 138.251.40.10
Feb 21 00:30:50 chris-laptop NetworkManager: <info> DNS Domain: '(none)'
Feb 21 00:30:50 chris-laptop NetworkManager: <info> Login Banner:
Feb 21 00:30:50 chris-laptop NetworkManager: <info> -----------------------------------------
Feb 21 00:30:50 c...

Read more...

Revision history for this message
BrowneR (chris-scotland) wrote :

Sorry maybe this is more useful for the routes with ip address and not hostname...

before:
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1

after vpn:
Destination Gateway Genmask Flags MSS Window irtt Iface
138.251.5.1 192.168.1.1 255.255.255.255 UGH 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
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 eth1

Revision history for this message
BrowneR (chris-scotland) wrote :

Ok, i think this problem is related to my router.

When changing to another network the problem goes away. I have tried two other home networks and the vpn functions correctly. Therefore i conclude it is not an ubuntu/vpnc/networkmanager issue.

Revision history for this message
Clayton Kramer (clayton-kramer) wrote :

I am seeing the same nm-dispatcher ifupdown error in Lucid when I try to connect to my university's VPN. It is able to connect and receives all of the routes but no traffic passes to the remove network.

May 12 10:12:07 sps31-728-ckr1 NetworkManager: <info> Policy set 'Auto eth0' (eth0) as default for routing and DNS.
May 12 10:12:07 sps31-728-ckr1 NetworkManager: <info> VPN plugin state changed: 4
May 12 10:12:07 sps31-728-ckr1 nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.

If I use sudo vpnc-connect school_net, I see the same routing rules and the connection works.

Revision history for this message
Clayton Kramer (clayton-kramer) wrote :

I see what appears to be a similar bug posted in the Debian tracker with an upstream fix.

01ifupdown errs out on vpn connection change events
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518530

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.