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 796433 - net_gateway not supported
net_gateway not supported
Status: RESOLVED DUPLICATE of bug 758702
Product: NetworkManager
Classification: Platform
Component: VPN: openvpn
1.10.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2018-05-28 09:44 UTC by David Gundermann
Modified: 2018-05-28 10:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Gundermann 2018-05-28 09:44:00 UTC
I tried to import a OpenVPN config with help of the buildin importfunction.

Error from GUI was:
Error: Key file contains line ";#ca ca.crt" which is not a key-value pair, groupor comment
Error from nmcli:
Error: failed to import 'Documents/vpn/sms/config.ovpn': configuration error: unsupported 3th argument net_gateway to “route” (line 10).

The configfile indeed contained the argument net_gateway to "route".

As far as I see it, it is currently still supported bei openvpn, a launch of the tunnel works, if called bei native openvpn.

Summary:
- NetworkManager should support the 'net_gateway' argument in the 'route' option.
- GUI errorhandling should give the same response to this error like the nmcli.
Comment 1 David Gundermann 2018-05-28 09:45:22 UTC
My openvpn-configfile:


#################################################################
# here some comment 
#################################################################
ca ca.crt
cert client.crt
key client.key
auth-user-pass pass.txt
remote sub.domain.tld 443 tcp
route $some.ip.i.use 255.255.255.255 net_gateway
dev tun
cipher AES-128-CBC
auth SHA256
resolv-retry 0
connect-retry 15
client 
float 
tun-mtu 1500
nobind 
persist-key 
persist-tun 
route-delay 2
reneg-sec 0
server-poll-timeout 60
redirect-gateway def1
route-method exe
Comment 2 Thomas Haller 2018-05-28 10:01:49 UTC
- NetworkManager should support the 'net_gateway' argument in the 'route' option.

bug 758702

- GUI errorhandling should give the same response to this error like the nmcli.

see https://bugzilla.gnome.org/show_bug.cgi?id=790770#c1

*** This bug has been marked as a duplicate of bug 758702 ***