#792389 network-manager-openvpn: fails to connect to a openvpn server with TCP

Package:
network-manager-openvpn
Source:
network-manager-openvpn
Description:
network management framework (OpenVPN plugin core)
Submitter:
Mathieu Ruellan
Date:
2015-12-22 12:21:06 UTC
Severity:
normal
#792389#5
Date:
2015-07-14 11:30:54 UTC
From:
To:
Dear Maintainer,

Since a few weeks, i can't connect to tcp openvpn server which were working before.

Syslog print:
Jul 14 13:23:57 s540 nm-openvpn[14988]: Options error: --proto tcp is ambiguous in this context.  Please specify --proto tcp-server or --proto tcp-client
Jul 14 13:23:57 s540 nm-openvpn[14988]: Use --help for more information.
Jul 14 13:23:57 s540 NetworkManager[2028]: (nm-openvpn-service:14987): nm-openvpn-WARNING **: openvpn exited with error code 1


Kind regards,

#792389#10
Date:
2015-12-22 12:17:06 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

I am trying to create an OpenVPN connection using a local port that is
forwarded to the server over an established SSH connection. Using
NetworkManager I created a corresponding entry. The tunnel does not get
established and a syslog entry is created:

Dec 18 15:44:24 my_hostname NetworkManager[578]: <info>  Starting VPN service
'openvpn'...
Dec 18 15:44:24 my_hostname NetworkManager[578]: <info>  VPN service 'openvpn'
started (org.freedesktop.NetworkManager.openvpn), PID 19517
Dec 18 15:44:24 my_hostname kernel: tun: Universal TUN/TAP device driver, 1.6
Dec 18 15:44:24 my_hostname kernel: tun: (C) 1999-2004 Max Krasnyansky
<maxk@qualcomm.com>
Dec 18 15:44:24 my_hostname NetworkManager[578]: <info>  VPN service 'openvpn'
appeared; activating connections
Dec 18 15:44:24 my_hostname NetworkManager[578]: <info>  VPN plugin state
changed: starting (3)
Dec 18 15:44:24 my_hostname NetworkManager[578]: nm-openvpn-Message: openvpn
started with pid 19522
Dec 18 15:44:24 my_hostname NetworkManager[578]: <info>  VPN connection
'my_openvpn_connection' (ConnectInteractive) reply received.
Dec 18 15:44:24 my_hostname nm-openvpn[19522]: Options error: --proto tcp is
ambiguous in this context.  Please specify --proto tcp-server or --proto tcp-
client
Dec 18 15:44:24 my_hostname nm-openvpn[19522]: Use --help for more information.
Dec 18 15:44:24 my_hostname NetworkManager[578]: <warn>  VPN plugin failed:
connect-failed (1)
Dec 18 15:44:24 my_hostname NetworkManager[578]: <info>  VPN plugin state
changed: stopped (6)
Dec 18 15:44:24 my_hostname NetworkManager[578]: <info>  VPN plugin state
change reason: unknown (0)
Dec 18 15:44:24 my_hostname NetworkManager[578]: <warn>  error disconnecting
VPN: Could not process the request because no VPN connection was active.
Dec 18 15:44:24 my_hostname NetworkManager[578]: (nm-openvpn-service:19517):
nm-openvpn-WARNING **: openvpn exited with error code 1

I solved the problem by recompiling the packet, adding a patch to the
debian/patches directory. The patch can be found at
`https://bugzilla.redhat.com/show_bug.cgi?id=1288711' which I also attach to
this bug report.

I then installed this patched packet. Now the connection is established and
working without any problems.