kafebob 0 Posted ... Hi there, I'm using this service since 1 month ago and I'm very happy with the quality and the support on forums. I hope the admin guy can help me with this. Until now, I´m connecting through Ubuntu NetworkManager and everything works great, but, it seems like the connection is lost (usually in the nights when I'm sleeping ) and NetworkManager fails to reconnect again. I tried to add the directive "keepalive 10 60" in air.ovpn and re-import again this file into NetworkManager, but it seems like the keepalive directive is not supported . So, today I tried to run openvpn directly through console like this "sudo openvpn air.ovpn" And I get this output... Sun Apr 15 17:43:33 2012 OpenVPN 2.2.0 x86_64-linux-gnu [sSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [iPv6 payload 20110424-2 (2.2RC2)] built on Jul 4 2011 Sun Apr 15 17:43:33 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Sun Apr 15 17:43:33 2012 LZO compression initialized Sun Apr 15 17:43:33 2012 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ] Sun Apr 15 17:43:33 2012 Socket Buffers: R=[126976->131072] S=[126976->131072] Sun Apr 15 17:43:33 2012 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ] Sun Apr 15 17:43:33 2012 Local Options hash (VER=V4): '22188c5b' Sun Apr 15 17:43:33 2012 Expected Remote Options hash (VER=V4): 'a8f55717' Sun Apr 15 17:43:33 2012 UDPv4 link local: [undef] Sun Apr 15 17:43:33 2012 UDPv4 link remote: [AF_INET]95.211.169.3:53 Sun Apr 15 17:43:33 2012 TLS: Initial packet from [AF_INET]95.211.169.3:53, sid=36d2e090 a259004f Sun Apr 15 17:43:34 2012 VERIFY OK: depth=1, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org_CA/emailAddress=info@airvpn.org Sun Apr 15 17:43:34 2012 VERIFY OK: nsCertType=SERVER Sun Apr 15 17:43:34 2012 VERIFY OK: depth=0, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=server/emailAddress=info@airvpn.org Sun Apr 15 17:43:34 2012 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Sun Apr 15 17:43:34 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Apr 15 17:43:34 2012 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Sun Apr 15 17:43:34 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Apr 15 17:43:34 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA Sun Apr 15 17:43:34 2012 [server] Peer Connection Initiated with [AF_INET]95.211.169.3:53 Sun Apr 15 17:43:37 2012 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) Sun Apr 15 17:43:37 2012 AUTH: Received AUTH_FAILED control message Sun Apr 15 17:43:37 2012 SIGTERM received, sending exit notification to peer Sun Apr 15 17:43:43 2012 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) Sun Apr 15 17:43:43 2012 TCP/UDP: Closing socket Sun Apr 15 17:43:43 2012 SIGTERM[soft,exit-with-notification] received, process exiting What I'm missing? Any suggestion to auto reconnect openvpn when the connection is lost. Quote Share this post Link to post
Staff 9972 Posted ... @kafebob Hello! The logs look ok. Can you please make sure that you are not trying to double-connect your account (AUTH_FAILED...)? Kind regards Quote Share this post Link to post
kafebob 0 Posted ... Thanks for the answer, I did the following steps with the same result :S . (With NetworkManager works perfect but with the reconnect issue) 1) I restarted my pc 2) I executed : sudo service openvpn stop * Stopping virtual private network daemon(s)... * No VPN is running. 3) In my vpn folder i executed "sudo openvpn air.vpn" And I got this output Sun Apr 15 21:07:38 2012 OpenVPN 2.2.0 x86_64-linux-gnu [sSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [iPv6 payload 20110424-2 (2.2RC2)] built on Jul 4 2011 Sun Apr 15 21:07:38 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Sun Apr 15 21:07:38 2012 LZO compression initialized Sun Apr 15 21:07:38 2012 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ] Sun Apr 15 21:07:38 2012 Socket Buffers: R=[126976->131072] S=[126976->131072] Sun Apr 15 21:07:38 2012 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ] Sun Apr 15 21:07:38 2012 Local Options hash (VER=V4): '22188c5b' Sun Apr 15 21:07:38 2012 Expected Remote Options hash (VER=V4): 'a8f55717' Sun Apr 15 21:07:38 2012 UDPv4 link local: [undef] Sun Apr 15 21:07:38 2012 UDPv4 link remote: [AF_INET]95.211.169.3:53 Sun Apr 15 21:07:38 2012 TLS: Initial packet from [AF_INET]95.211.169.3:53, sid=1f11b507 a9cc47a0 Sun Apr 15 21:07:42 2012 VERIFY OK: depth=1, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org_CA/emailAddress=info@airvpn.org Sun Apr 15 21:07:42 2012 VERIFY OK: nsCertType=SERVER Sun Apr 15 21:07:42 2012 VERIFY OK: depth=0, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=server/emailAddress=info@airvpn.org Sun Apr 15 21:07:43 2012 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Sun Apr 15 21:07:43 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Apr 15 21:07:43 2012 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Sun Apr 15 21:07:43 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Apr 15 21:07:43 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA Sun Apr 15 21:07:43 2012 [server] Peer Connection Initiated with [AF_INET]95.211.169.3:53 Sun Apr 15 21:07:45 2012 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) Sun Apr 15 21:07:45 2012 AUTH: Received AUTH_FAILED control message Sun Apr 15 21:07:45 2012 SIGTERM received, sending exit notification to peer Sun Apr 15 21:07:50 2012 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) Sun Apr 15 21:07:50 2012 TCP/UDP: Closing socket Sun Apr 15 21:07:50 2012 SIGTERM[soft,exit-with-notification] received, process exiting This is my air.ovpn content ############################################## ## Air VPN | https://airvpn.org | OpenVPN Client Configuration ## Generated: Saturday 7th of April 2012 08:33:29 PM ############################################## client dev tun proto udp remote 95.211.169.3 53 resolv-retry infinite keepalive 60 120 nobind ca "ca.crt" cert "user.crt" key "user.key" ns-cert-type server cipher AES-256-CBC comp-lzo verb 3 explicit-exit-notify 5 Seems like I will need to find a workaround through NetworkManager Quote Share this post Link to post
Staff 9972 Posted ... Thanks for the answer,I did the following steps with the same result :S . (With NetworkManager works perfect but with the reconnect issue)1) I restarted my pc2) I executed :sudo service openvpn stop * Stopping virtual private network daemon(s)... * No VPN is running.3) In my vpn folder i executed "sudo openvpn air.vpn"And I got this outputHello!The probable cause is that you are mixing OpenVPN usage. If you launch openvpn with "sudo openvpn ..." then you can't stop it by stopping the daemon (simply because there's no daemon managing the connection).To see how to use OpenVPN as daemon and where to put the files in this case:https://airvpn.org/index.php?option=com_kunena&func=view&catid=3&id=242&Itemid=142Kind regards Quote Share this post Link to post
kafebob 0 Posted ... I don't know if you did something but now the connection works. :silly: . Anyway, thanks for the quickly support. Quote Share this post Link to post
Staff 9972 Posted ... I don't know if you did something but now the connection works. :silly: . Anyway, thanks for the quickly support.Hello!You might accuse us to be lazy, but we didn't do anything at all. We could not detect any problem... so it's great to know that the problem solved "by itself". Perhaps it was just a momentary issue on connections between your provider and ours.Kind regards Quote Share this post Link to post