Jump to content
Not connected, Your IP: 52.14.49.59
Sign in to follow this  
skr5e

Problems with setting up VPN

Recommended Posts

I'm running LinuxMint and set up the linux Config Generator as outlined in the instructions. However I get this error:

 

skr5e@skr5e ~/Desktop/AirVPN $ sudo openvpn AirVPN_America_UDP-443.ovpn
Tue Sep  3 15:02:15 2013 OpenVPN 2.2.1 x86_64-linux-gnu [sSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [iPv6 payload 20110424-2 (2.2RC2)] built on Feb 13 2013
Tue Sep  3 15:02:15 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:02:15 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:02:15 2013 LZO compression initialized
Tue Sep  3 15:02:15 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:02:15 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:02:15 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:02:15 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:02:15 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:02:15 2013 UDPv4 link local: [undef]
Tue Sep  3 15:02:15 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:03:15 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:03:15 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:03:15 2013 TCP/UDP: Closing socket
Tue Sep  3 15:03:15 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:03:15 2013 Restart pause, 2 second(s)
Tue Sep  3 15:03:17 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:03:17 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:03:17 2013 LZO compression initialized
Tue Sep  3 15:03:17 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:03:17 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:03:20 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:03:20 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:03:20 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:03:20 2013 UDPv4 link local: [undef]
Tue Sep  3 15:03:20 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:03:34 2013 write UDPv4 []: Network is unreachable (code=101)
Tue Sep  3 15:04:20 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:04:20 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:04:20 2013 TCP/UDP: Closing socket
Tue Sep  3 15:04:20 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:04:20 2013 Restart pause, 2 second(s)
Tue Sep  3 15:04:22 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:04:22 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:04:22 2013 LZO compression initialized
Tue Sep  3 15:04:22 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:04:22 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:04:22 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:04:22 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:04:22 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:04:22 2013 UDPv4 link local: [undef]
Tue Sep  3 15:04:22 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:05:22 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:05:22 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:05:22 2013 TCP/UDP: Closing socket
Tue Sep  3 15:05:22 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:05:22 2013 Restart pause, 2 second(s)
Tue Sep  3 15:05:24 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:05:24 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:05:24 2013 LZO compression initialized
Tue Sep  3 15:05:24 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:05:24 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:05:25 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:05:25 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:05:25 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:05:25 2013 UDPv4 link local: [undef]
Tue Sep  3 15:05:25 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:06:25 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:06:25 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:06:25 2013 TCP/UDP: Closing socket
Tue Sep  3 15:06:25 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:06:25 2013 Restart pause, 2 second(s)
Tue Sep  3 15:06:27 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:06:27 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:06:27 2013 LZO compression initialized
Tue Sep  3 15:06:27 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:06:27 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:06:28 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:06:28 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:06:28 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:06:28 2013 UDPv4 link local: [undef]
Tue Sep  3 15:06:28 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:07:28 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:07:28 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:07:28 2013 TCP/UDP: Closing socket
Tue Sep  3 15:07:28 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:07:28 2013 Restart pause, 2 second(s)
Tue Sep  3 15:07:30 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:07:30 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:07:30 2013 LZO compression initialized
Tue Sep  3 15:07:30 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:07:30 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:07:32 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:07:32 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:07:32 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:07:32 2013 UDPv4 link local: [undef]
Tue Sep  3 15:07:32 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:08:32 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:08:32 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:08:32 2013 TCP/UDP: Closing socket
Tue Sep  3 15:08:32 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:08:32 2013 Restart pause, 2 second(s)
Tue Sep  3 15:08:34 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:08:34 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:08:34 2013 LZO compression initialized
Tue Sep  3 15:08:34 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:08:34 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:08:35 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:08:35 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:08:35 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:08:35 2013 UDPv4 link local: [undef]
Tue Sep  3 15:08:35 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:09:35 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:09:35 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:09:35 2013 TCP/UDP: Closing socket
Tue Sep  3 15:09:35 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:09:35 2013 Restart pause, 2 second(s)
Tue Sep  3 15:09:37 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:09:37 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:09:37 2013 LZO compression initialized
Tue Sep  3 15:09:37 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:09:37 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:09:37 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:09:37 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:09:37 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:09:37 2013 UDPv4 link local: [undef]
Tue Sep  3 15:09:37 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
Tue Sep  3 15:10:37 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Sep  3 15:10:37 2013 TLS Error: TLS handshake failed
Tue Sep  3 15:10:37 2013 TCP/UDP: Closing socket
Tue Sep  3 15:10:37 2013 SIGUSR1[soft,tls-error] received, process restarting
Tue Sep  3 15:10:37 2013 Restart pause, 2 second(s)
Tue Sep  3 15:10:39 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep  3 15:10:39 2013 WARNING: file 'user.key' is group or others accessible
Tue Sep  3 15:10:39 2013 LZO compression initialized
Tue Sep  3 15:10:39 2013 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Sep  3 15:10:39 2013 Socket Buffers: R=[212992->131072] S=[212992->131072]
Tue Sep  3 15:10:39 2013 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Sep  3 15:10:39 2013 Local Options hash (VER=V4): '22188c5b'
Tue Sep  3 15:10:39 2013 Expected Remote Options hash (VER=V4): 'a8f55717'
Tue Sep  3 15:10:39 2013 UDPv4 link local: [undef]
Tue Sep  3 15:10:39 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443
^CTue Sep  3 15:10:59 2013 event_wait : Interrupted system call (code=4)
Tue Sep  3 15:10:59 2013 SIGTERM received, sending exit notification to peer
^CTue Sep  3 15:11:02 2013 event_wait : Interrupted system call (code=4)
Tue Sep  3 15:11:02 2013 TCP/UDP: Closing socket
Tue Sep  3 15:11:02 2013 SIGINT[hard,] received, process exiting
 

I'm new to VPN and Linux, I just don't understand any of what's going on in that log. Could anyone help pinpoint the problem?

Share this post


Link to post

Hello!

 

You're doing everything just fine, it's OpenDNS that's messing up the whole thing.

 

Look at this log line:

 

 

Tue Sep  3 15:05:25 2013 UDPv4 link remote: [AF_INET]67.215.66.146:443  

 

Take note of that 67.215.66.146 IP address. It's the IP address of a server to which OpenDNS hijacks users when a domain name is non-existent (according to OpenDNS...).

 

So, OpenVPN correctly asks for america.vpn.airdns.org resolution, your system queries OpenDNS, and OpenDNS returns its own server IP address (because it very wrongly "assumes" that *.airdns.org does not exist). This is passed back and OpenVPN tries to establish a VPN connection to an OpenDNS server (!), which obviously fails.

 

You have two options to solve the problem:

 

1) get rid of OpenDNS (use for example OpenNIC http://www.opennicproject.org or any other public DNS you like), you might like not to use a DNS that hijacks you. In this case the hijack has caused you some minor trouble and waste of time, in other cases it might cause more serious troubles.

 

OR

 

2) re-generate the OpenVPN configuration file(s) ticking "Advanced Mode" and "Resolved hosts in .ovpn file" in the Configuration Generator. In this way the CG will not insert names in the .ovpn file, but only IP addresses, solving the problem at its roots.

 

Kind regards

Share this post


Link to post

Thanks for the reply. Somehow the problem seems to have fixed itself, eventually connected to the VPN and I never got a chance to try out the solution. I'll keep it in mind in case I run into it again.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...