Multiple remote gateways fail due to incorrect parsing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NetworkManager-OpenVPN |
Fix Released
|
Medium
|
|||
network-manager-openvpn (Ubuntu) |
Triaged
|
Medium
|
TJ |
Bug Description
Up to and including 13.10 and 14.04 there is a bug in the parsing of multiple remote gateway specifications.
The tooltip says:
po/id.po:402:msgid "Remote host name or IP address. You can specify multiple items for redundancy (use commas to separate the entries)
But the code separates on spaces as well as commas so the following entry in the Gateway text-box "a.b.c.d 1194 udp, e.f.g.h 443 tcp"
which is stored in /etc/NetworkMan
remote=a.b.c.d 1194 udp, e.f.g.h 443 tcp
results in trying to start the process using this:
/usr/sbin/openvpn --remote a.b.c.d --remote 1194 --remote udp --remote e.f.g.h --remote 443 --remote tcp --comp-lzo --nobind --dev tun --proto udp --port 1194 ...
which fails miserably.
Upstream reworked the gateway entry in master commit 2014-07-11 cb81bdce.
Related branches
- Mathieu Trudel-Lapierre: Needs Resubmitting
- Bin Li (community): Approve
-
Diff: 176 lines (+100/-6)6 files modified.pc/applied-patches (+1/-0)
debian/changelog (+6/-0)
debian/patches/series (+1/-0)
properties/nm-openvpn-dialog.ui (+1/-1)
properties/nm-openvpn.c (+53/-1)
src/nm-openvpn-service.c (+38/-4)
description: | updated |
Changed in network-manager-openvpn: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in network-manager-openvpn: | |
status: | New → In Progress |
Changed in network-manager-openvpn: | |
status: | In Progress → Fix Released |
Changed in network-manager-openvpn (Ubuntu): | |
status: | In Progress → Triaged |
description: | updated |
After applying the fix the resulting process command-line is:
/usr/sbin/openvpn --remote a.b.c.d 1194 udp --remote e.f.g.h 443 tcp --comp-lzo --nobind --dev tun --proto udp --port 1194 ...
and the connection is successful.
I'm posting this upstream and will report back once a patch has been applied.