[Re-posted because I accidentally clicked on “Post Comment”. Sorry for
that.]
Confirmed with Ubuntu 19.04. An
push "route 134.94.0.0 255.255.0.0 net_gateway"
is ignored. The pushed route is mentioned in the NetworkManager log:
NetworkManager[893]: <info> […] Data: Static Route: 134.94.0.0/16
Next Hop: 134.94.16.1
(The gateway is even correct.) However, no route is actually added.
Interestingly enough, a
push "route 134.94.0.0 255.255.0.0 vpn_gateway"
*is* added to the routes. I suspect the device is wrong, because a
manual
# route add -net 134.94.0.0/16 gw 134.94.16.1 dev tun0
SIOCADDRT: Network is unreachable
fails obviously. Instead of “tun0”, it must be the normal net device
for which the gateway is valid. Possibly, NetworkManager tries to add
the route to “tun0” always, which would be wrong.
Is there an upstream bug report?
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager-openvpn in Ubuntu.
https://bugs.launchpad.net/bugs/1603600
Title:
NetworkManager ignores pushed openvpn routes
Status in network-manager-openvpn package in Ubuntu:
Confirmed
Bug description:
Relevant information that may or may not have been included by ubuntu-
bug:
Ubuntu release 16.04
Package network-manager 1.2.0-0ubuntu0.16.04.2
Package network-manager-openvpn 1.1.93-1ubuntu1
NetworkManager ignores pushed openvpn routes when "Use this connection
only for resources on its network" is checked. This is a behavior
change since 14.04.
To repeat:
1) Use an OpenVpn server that pushes routes. I suggest using a server
that pushes several routes since this makes their absence obvious.
Set up a NetworkManager VPN of type OpenVpn to this server. Select
"Use this connection only for resources on its network" in the
"Routes" section of the IPV4 options.
2) Set up a raw OpenVpn connection to the same server.
3) Connect to the server using the raw OpenVpn connection. The pushed
routes are all there.
4) Connect to the server using NetworkManager. The only route added
is a n interface level route to the tunnel device network.
Using the same setup on 14.04, all pushed routes are added.
The missing routes are also "Resources on the VPN network", and should be
added in the absence of further direction. Ignoring pushed routes should be
controlled by the "Ignore automatically obtained routes" checkbox.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: network-manager-openvpn 1.1.93-1ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: GNOME-Flashback:Unity
Date: Fri Jul 15 23:12:55 2016
InstallationDate: Installed on 2016-05-04 (72 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64
(20160420.1)
SourcePackage: network-manager-openvpn
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/1603600/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp