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). config: remote"
But the code separate on spaces as well as commas (src/nm-openvpn-service.c::nm_openvpn_start_openvpn_binary()):
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) . config: remote"
But the code separate on spaces as well as commas (src/nm- openvpn- service. c::nm_openvpn_ start_openvpn_ binary( )):
tmp = nm_setting_ vpn_get_ data_item (s_vpn, NM_OPENVPN_ KEY_REMOTE) ; (char** )&tmp, " ,")) != NULL) {
add_openvpn_ arg (args, "--remote");
add_openvpn_ arg (args, tok);
if (tmp && strlen (tmp)) {
char *tok;
while ((tok = strsep(
if (strlen(tok)) {
}
}
}
So the following entry in the Gateway text-box "a.bc.d 1194 udp, e.f.g.h 443 tcp"
which is stored in /etc/NetworkMan ager/system- connections/ server as:
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.
the fix is to remove the space from the strsep() match string.