The bug seems to be rather global in NetworkManager. It also happens in
n-m-openvpn:

VPN disconnected:
celestia:~# ip ro
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.137  metric 2 
default via 192.168.1.1 dev wlan0  proto static 

VPN connected:
celestia:~# ip ro
x.x.x.x via 192.168.1.1 dev wlan0  proto static 
x.x.x.x via 192.168.1.1 dev tun0  proto static 
192.168.1.1 dev tun0  proto static  scope link 
10.0.1.1 dev tun0  proto kernel  scope link  src x.x.x.x 
x.x.x.x/x via 10.0.1.1 dev tun0  proto static 
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.137  metric 2 
default via 192.168.1.1 dev wlan0  proto static 

The third line must not be there, otherwise I can connect neither to VPN hosts 
nor to other hosts
in the net.

The hack-solution is to add these:
    vpn-up)
        /bin/ip ro del 192.168.1.1 dev tun0
        ;;

to /etc/NetworkManager/dispatcher.d/01ifupdown but the proper solution is not 
to add
broken routes in the first place.

-- 
NetworkManager add unnecessary route entry for VPN connection 
https://bugs.launchpad.net/bugs/301669
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to