Problem establishing connection

Tonnerre LOMBARD tonnerre at thebsh.sygroup.ch
Sun May 13 11:10:13 BST 2007


Salut,

When using the Ubuntu OpenVPN integration for NetManager, I am unable to
establish a VPN connection. It says:

May 13 11:40:13 silence NetworkManager: <information>^IWill activate VPN connection 'SyGroup', service 'org.freedesktop.NetworkManager.openvpn', user_name 'tonnerre', vpn_data 'connection-type / x509 / dev / tap / remote / intranet.sygroup.ch / port / 1194 / proto / tcp-client / ca / /etc/openvpn/tonnerre/ca-cert.pem / cert / /etc/openvpn/tonnerre/tonnerre.pem / key / /etc/openvpn/tonnerre/tonnerre.key / comp-lzo / yes / shared-key /  / local-ip /  / remote-ip /  / username /  / cipher / AES-256-CBC', route ''. 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 1 of 4 (Connection Prepare) scheduled... 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.openvpn (PID 22489) 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 1 of 4 (Connection Prepare) complete. 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 2 of 4 (Connection Prepare Wait) scheduled... 
May 13 11:40:13 silence NetworkManager: <information>^IVPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 1 -> 6. 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 2 of 4 (Connection Prepare Wait) waiting... 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 2 of 4 (Connection Prepare Wait) complete. 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 3 of 4 (Connect) scheduled... 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 3 of 4 (Connect) sending connect request. 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 3 of 4 (Connect) request sent, waiting for reply... 
May 13 11:40:13 silence NetworkManager: <information>^IVPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 6 -> 3. 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 3 of 4 (Connect) reply received. 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 4 of 4 (IP Config Get) timeout scheduled... 
May 13 11:40:13 silence NetworkManager: <information>^IVPN Activation (SyGroup) Stage 3 of 4 (Connect) complete, waiting for IP configuration... 
May 13 11:40:13 silence nm-openvpn[22492]: OpenVPN 2.0.9 x86_64-pc-linux-gnu [SSL] [LZO] [EPOLL] built on Mar  2 2007
May 13 11:40:13 silence nm-openvpn[22492]: LZO compression initialized
May 13 11:40:13 silence nm-openvpn[22492]: Attempting to establish TCP connection with 193.219.115.140:1194
May 13 11:40:13 silence nm-openvpn[22492]: TCP connection established with 193.219.115.140:1194
May 13 11:40:13 silence nm-openvpn[22492]: TCPv4_CLIENT link local: [undef]
May 13 11:40:13 silence nm-openvpn[22492]: TCPv4_CLIENT link remote: 193.219.115.140:1194
May 13 11:40:23 silence nm-openvpn[22492]: SIGINT[hard,] received, process exiting
May 13 11:40:23 silence NetworkManager: <WARNING>^I 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.'. 
May 13 11:40:23 silence NetworkManager: <information>^IVPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 3 -> 5. 
May 13 11:40:23 silence NetworkManager: <information>^IVPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 5 -> 6. 
May 13 11:40:23 silence NetworkManager: <WARNING>^I nm_vpn_service_stop_connection (): (VPN Service org.freedesktop.NetworkManager.openvpn): could not stop connection 'SyGroup' because service was 6. 

(From /var/log/daemon)

So I ran a ps during the connection and executed the exact same command line
by hand:

root at silence:~# /usr/sbin/openvpn --remote intranet.sygroup.ch --comp-lzo --nobind --dev tap --proto tcp-client --port 1194 --cipher AES-256-CBC --syslog nm-openvpn --up /usr/lib/network-manager-openvpn/nm-openvpn-service-openvpn-helper --up-restart --persist-key --persist-tun --management 127.0.0.1 1194 --management-query-passwords --client --ns-cert-type server --ca /etc/openvpn/tonnerre/ca-cert.pem --cert /etc/openvpn/tonnerre/tonnerre.pem --key /etc/openvpn/tonnerre/tonnerre.key

Doing that, the connection is established without any problems (despite the
fact that the helpers probably won't work), and remains useable so I can
just use the VPN like I would think I should.

Any idea?

				Tonnerre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 824 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-motu/attachments/20070513/524572f9/attachment.pgp 


More information about the Ubuntu-motu mailing list