Default route for IPv6 not being set correctly

Bug #1489578 reported by nemith
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
network-manager-openconnect
Unknown
Unknown
network-manager-openconnect (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

After connecting to an openconnect VPN IPv4 and IPv6 default routes should be updated to go through the VPN instead of directly out any physical nic.

I have found this works fine for IPv4.
IPv4 Before connecting
````
ip route listmtr
default via 10.10.4.1 dev eth1
default via 10.10.4.1 dev eth1 proto static metric 1024
10.10.4.0/24 dev eth1 proto kernel scope link src 10.10.4.195
169.254.0.0/16 dev eth1 scope link metric 1000
172.26.12.0/22 dev wlan0 proto kernel scope link src 172.26.12.122
192.168.12.165 via 172.26.12.1 dev wlan0 proto dhcp metric 10
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
```

IPv4 After
```
default dev vpn0 proto static scope link metric 1024
10.10.4.0/24 dev eth1 proto kernel scope link src 10.10.4.195
169.254.0.0/16 dev eth1 scope link metric 1000
172.26.12.0/22 dev wlan0 proto kernel scope link src 172.26.12.122
172.26.112.0/20 dev vpn0 proto kernel scope link src 172.26.125.30
192.168.12.165 via 172.26.12.1 dev wlan0 proto dhcp metric 10
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
199.201.64.20 via 10.10.4.1 dev eth1 proto static metric 1
```

With IPv6 the VPN route is added but with the same metric so no traffic is ever taking the tunnel for IPv6. If i use the command line openconnect tool (bypassing network-manager) it installs a default route with a metric of 1 (still does not remove the other route) which allows tunneling.

IPv6 Before:
```
2620:10d:c081:1103::/64 dev wlan0 proto kernel metric 256 expires 603730sec
fe80::/64 dev eth1 proto kernel metric 256
fe80::/64 dev wlan0 proto kernel metric 256
default via fe80::5:73ff:fea0:c2a dev wlan0 proto static metric 1024
```

IPv6 After:
```
2620:10d:c081:1103::/64 dev wlan0 proto ra metric 10
2620:10d:c081:1110::/64 dev vpn0 proto kernel metric 256
fe80::/64 dev eth1 proto kernel metric 256
fe80::/64 dev wlan0 proto kernel metric 256
default via fe80::5:73ff:fea0:c2a dev wlan0 proto static metric 1024
default dev vpn0 proto static metric 1024
```

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: network-manager-openconnect 0.9.10.0-1ubuntu2
ProcVersionSignature: Ubuntu 3.19.0-26.28-generic 3.19.8-ckt4
Uname: Linux 3.19.0-26-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.3
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Aug 27 13:18:57 2015
InstallationDate: Installed on 2015-08-03 (24 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: network-manager-openconnect
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
nemith (bennetb) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager-openconnect (Ubuntu):
status: New → Confirmed
Changed in network-manager-openconnect (Ubuntu):
importance: Undecided → Medium
Changed in network-manager-openconnect:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Luís Infante da Câmara (luis220413) wrote :

Ubuntu 15.04 reached end-of-life in January 2016.

Please try to reproduce this bug on a Ubuntu release under standard support or the development release.

Changed in network-manager-openconnect (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Guruprasad (lgp171188) wrote :

Use the correct URL for the upstream bug.

Changed in network-manager-openconnect:
importance: Medium → Unknown
status: Confirmed → Unknown
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.