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 650389 - [enh] Support multiple gateway ports in OpenVPN (for both UI and import/export)
[enh] Support multiple gateway ports in OpenVPN (for both UI and import/export)
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: VPN: openvpn
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2011-05-17 11:11 UTC by Alex K
Modified: 2016-01-21 09:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alex K 2011-05-17 11:11:30 UTC
There should be a way to set up multiple gateways (or remotes) for an OpenVPN connection.

OpenVPN itself supports this feature and it may be configured via openvpn.conf.
Comment 1 Jiri Klimes 2012-03-30 11:36:14 UTC
Implemented as part of cb81bdcea8b043ee8890cf930d88c9e30fc28612.
You can specify multiple hosts in Gateway entry separated by commas.
Comment 2 Whoopie 2013-02-03 17:07:26 UTC
Import/Export doesn't work correctly. If you export, multiple "remote" lines should be added to the config file. And importing should merge multiple "remote" lines into a comma separated list.
Comment 3 Jiri Klimes 2013-02-04 15:01:47 UTC
Thanks for pointing to that, it was forgotten.
Now fixed by b6e780fd738041380bd9d4bedc7d0bc5fc962b2c.

However, we still don't support multiple ports (as part of 'remote' line). So I am reopening the bug for that and updating the description accordingly.
Comment 4 François Kooman 2016-01-20 20:55:50 UTC
I have this in my OVPN file:

    remote vpn.example.net 1194 udp
    remote vpn.example.net 443 tcp

This has the effect that the 'custom port', in this case 443, is picked up, but not that it should use a tcp connection. So OpenVPN ends up being configured to connect to port 443 using UDP.
Comment 5 François Kooman 2016-01-20 22:02:49 UTC
I just tested this with NetworkManager 1.2 beta and there it seems fixed!
Comment 6 Jiri Klimes 2016-01-21 09:43:50 UTC
(In reply to François Kooman from comment #5)
> I just tested this with NetworkManager 1.2 beta and there it seems fixed!

Great. Thanks for testing.

(The fixing commit was https://git.gnome.org/browse/network-manager-openvpn/commit/?id=6d275a2923828a81180a5539992b4716da86899c)