After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788514 - networkmanager-openvpn 1.8.1dev+9+gf9e2fd5-1 breaks routing to my company VPN
networkmanager-openvpn 1.8.1dev+9+gf9e2fd5-1 breaks routing to my company VPN
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: VPN (general)
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-10-04 13:13 UTC by Albert Astals Cid
Modified: 2017-10-05 09:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ip route that works (1.30 KB, text/plain)
2017-10-04 15:49 UTC, Albert Astals Cid
  Details
ip route that does not work (1.27 KB, text/plain)
2017-10-04 15:49 UTC, Albert Astals Cid
  Details
[PATCH] helper: fix ipv4 route gateway evaluation (1.41 KB, patch)
2017-10-04 16:17 UTC, Beniamino Galvani
none Details | Review

Description Albert Astals Cid 2017-10-04 13:13:58 UTC
Archlinux has updated to master for networkmanager-openvpn that has broken routing for me, i.e. the VPN connects fine but any attempt to connect to hosts on the other VPN side ends up with "No route to host." or similar errors.

Any other thing i can do to help pin point the error?
Comment 1 André Klapper 2017-10-04 14:00:10 UTC
See https://wiki.gnome.org/Projects/NetworkManager/Debugging
Comment 2 Albert Astals Cid 2017-10-04 15:29:36 UTC
https://wiki.gnome.org/Projects/NetworkManager/Debugging#Debugging_NetworkManager-openvpn didn't give me any useful lots

[root@yoga tsdgeos]# /usr/lib/NetworkManager/nm-openvpn-service --debug 
nm-openvpn[27765] <debug> nm-openvpn-service (version 1.8.1) starting...

is all i got
Comment 3 Thomas Haller 2017-10-04 15:36:29 UTC
if you expect the routes are set wrong, then show the output of `ip route` and explain why you think that is wrong. Also, attach level=TRACE logfile, and note the comment at https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.conf for how to gather logfile, and about private data.
Comment 4 Albert Astals Cid 2017-10-04 15:39:47 UTC
For what is worth i can confirm that is https://git.gnome.org/browse/network-manager-openvpn/commit/?id=da99ab02cb3d0d0c8a55c338cd0c5c1392ece850 what breaks it for me (i.e. that one fails and https://git.gnome.org/browse/network-manager-openvpn/commit/?id=da99ab02cb3d0d0c8a55c338cd0c5c1392ece850 which is the previous one works)
Comment 5 Thomas Haller 2017-10-04 15:48:05 UTC
(In reply to Albert Astals Cid from comment #4)
> For what is worth i can confirm that is
> https://git.gnome.org/browse/network-manager-openvpn/commit/
> ?id=da99ab02cb3d0d0c8a55c338cd0c5c1392ece850 what breaks it for me (i.e.
> that one fails and
> https://git.gnome.org/browse/network-manager-openvpn/commit/
> ?id=da99ab02cb3d0d0c8a55c338cd0c5c1392ece850 which is the previous one works)

you mean, 792fcfdf89a75cb805c4c7c67fb0691f2b8cfd4e works?

That is helpful information. Do you notice the failure with IPv4 routes?
Comment 6 Albert Astals Cid 2017-10-04 15:48:50 UTC
My previous comment is broken in the sense that i added the same git link in both work and does not work, sorry about that

revision that works: https://git.gnome.org/browse/network-manager-openvpn/commit/?id=792fcfdf89a75cb805c4c7c67fb0691f2b8cfd4e
revision that does not work: https://git.gnome.org/browse/network-manager-openvpn/commit/?id=da99ab02cb3d0d0c8a55c338cd0c5c1392ece850

I'm attaching the ip route with 792fcfdf89a75cb805c4c7c67fb0691f2b8cfd4e as "works" and with da99ab02cb3d0d0c8a55c338cd0c5c1392ece850 as "does_not_work" honestly i don't enough networking to claim one is wrong and the other is not, just that one seems to work and the other not.
Comment 7 Albert Astals Cid 2017-10-04 15:49:12 UTC
Created attachment 360915 [details]
ip route that works
Comment 8 Albert Astals Cid 2017-10-04 15:49:32 UTC
Created attachment 360916 [details]
ip route that does not work
Comment 9 Albert Astals Cid 2017-10-04 15:51:00 UTC
>  Do you notice the failure with IPv4 routes?

Not sure what that means exactly, but i guess, yes, if i try to ping let's say 192.168.150.71 i get errors about host not found
Comment 10 Beniamino Galvani 2017-10-04 16:17:07 UTC
Created attachment 360917 [details] [review]
[PATCH] helper: fix ipv4 route gateway evaluation

Can you please try this patch?
Comment 11 Albert Astals Cid 2017-10-04 19:56:02 UTC
Yes, this works