Public bug reported:

Binary package hint: network-manager-openvpn

Hi,

I can't get openvpn with preshared key working with network-manager
(from command line it works fine). Problem seems to be, that although I
don't use tls mode there's a parameter added (not configurable nor via
gui nor via gconf editor) which is valid only in tls mode
(ns_cert_type). See syslog output below:

Feb 20 15:20:17 kolibri ntpd[5860]: Deleting interface #6 tun0, 
192.168.200.2#123, interface stats: received=0, sent=0, dropped=0, 
active_time=900 secs
Feb 20 15:32:40 kolibri NetworkManager: <info>  Will activate VPN connection 
'Example-openvpn', service 'org.freedesktop.NetworkManager.openvpn', user_name 
'loci', vpn_data 'connection-type / shared-key / dev / tun / remote / alnitak / 
port / 1194 / proto / udp / servercert-insecure / no / ca /  / cert /  / key /  
/ comp-lzo / no / shared-key / /home/loci/static.key / local-ip / 192.168.200.2 
/ remote-ip / 192.168.200.1 / username / ', route ''. 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 1 of 4 (Connection Prepare) scheduled... 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 1 of 4 (Connection Prepare) ran VPN service daemon 
org.freedesktop.NetworkManager.openvpn (PID 7392) 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 1 of 4 (Connection Prepare) complete. 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 2 of 4 (Connection Prepare Wait) scheduled... 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN service 
'org.freedesktop.NetworkManager.openvpn' signaled state change 1 -> 6. 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 2 of 4 (Connection Prepare Wait) waiting... 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 2 of 4 (Connection Prepare Wait) complete. 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 3 of 4 (Connect) scheduled... 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 3 of 4 (Connect) sending connect request. 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 3 of 4 (Connect) request sent, waiting for reply... 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN service 
'org.freedesktop.NetworkManager.openvpn' signaled state change 6 -> 3. 
Feb 20 15:32:40 kolibri nm-openvpn[7395]: Options error: Parameter ns_cert_type 
can only be specified in TLS-mode, i.e. where --tls-server or --tls-client is 
also specified.
Feb 20 15:32:40 kolibri nm-openvpn[7395]: Use --help for more information.
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 3 of 4 (Connect) reply received. 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 4 of 4 (IP Config Get) timeout scheduled... 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN Activation 
(Example-openvpn) Stage 3 of 4 (Connect) complete, waiting for IP 
configuration... 
Feb 20 15:32:40 kolibri NetworkManager: <WARN>  
nm_vpn_service_process_signal(): VPN failed for service 
'org.freedesktop.NetworkManager.openvpn', signal 'ConnectFailed', with message 
'The VPN login failed because the VPN program could not connect to the VPN 
server.'. 
Feb 20 15:32:40 kolibri NetworkManager: <info>  VPN service 
'org.freedesktop.NetworkManager.openvpn' signaled state change 3 -> 6. 
Feb 20 15:32:40 kolibri NetworkManager: <WARN>  
nm_vpn_service_stop_connection(): (VPN Service 
org.freedesktop.NetworkManager.openvpn): could not stop connection 
'Example-openvpn' because service was 6.

** Affects: network-manager-openvpn (Ubuntu)
     Importance: Undecided
         Status: New

-- 
nm-openvpn with preshared key doesn't work
https://bugs.launchpad.net/bugs/193686
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to