OpenVPN thru network manager fails for non-password configurations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-openvpn (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: network-
After upgrade to 9.10 my machine failed to connect to previously working OpenVPN config.
The connection ends prematurely with following log:
Nov 5 19:28:12 NetworkManager: <info> Starting VPN service 'org.freedeskto
Nov 5 19:28:12 NetworkManager: <info> VPN service 'org.freedeskto
Nov 5 19:28:12 NetworkManager: <info> VPN service 'org.freedeskto
Nov 5 19:28:12 NetworkManager: <info> VPN plugin state changed: 1
Nov 5 19:28:12 NetworkManager: <info> VPN plugin state changed: 3
Nov 5 19:28:12 NetworkManager: <info> VPN connection 'VPN connection 1' (Connect) reply received.
Nov 5 19:28:12 NetworkManager: <WARN> nm_vpn_
Nov 5 19:28:12 NetworkManager: <WARN> connection_
Nov 5 19:28:12 NetworkManager: <info> (eth0): writing resolv.conf to /sbin/resolvconf
Nov 5 19:28:12 NetworkManager: <info> Policy set 'Auto eth0' (eth0) as default for routing and DNS.
Nov 5 19:28:25 NetworkManager: <debug> [1257445705.001560] ensure_killed(): waiting for vpn service pid 3877 to exit
Nov 5 19:28:25 NetworkManager: <debug> [1257445705.001786] ensure_killed(): vpn service pid 3877 cleaned up
I noticed the "No VPN secrets" and googled around finding that the cause of it can be secrets ring thing.
So, I took my private key and encrypted it to make network manager rise query for password. It did and since that point I am able to use the connection.
I have an OpenVPN configuration that works from the command-line, without requiring any passwords to be entered (simple possession of the keys & certs is sufficient).
When I import the configuration file into Network Manager, and do not specify a "Private Key Password' value, connections fail, logging into /var/log/syslog :-
Nov 12 12:59:41 roro NetworkManager: <WARN> nm_vpn_ connection_ connect_ cb(): VPN connection 'testvpn' failed to connect: 'No VPN secrets!'.
When I specify a useless value for the Private Key Password field (e.g. a space character), the connection works.