TLS Handshake Error - Ubuntu 14.04

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
ubuntu14
OpenVpn Newbie
Posts: 1
Joined: Fri Apr 03, 2015 10:13 pm

TLS Handshake Error - Ubuntu 14.04

Post by ubuntu14 » Fri Apr 03, 2015 10:30 pm

I am trying to connect to my OpenVPN that I set up today, but I am getting a TLS Handshake error. I am at a loss and would be grateful for any assistance whatsoever.

Terminal log:

Code: Select all

 [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Dec  1 2014
Fri Apr  3 15:17:49 2015 Socket Buffers: R=[212992->131072] S=[212992->131072]
Fri Apr  3 15:17:49 2015 UDPv4 link local: [undef]
Fri Apr  3 15:17:49 2015 UDPv4 link remote: [AF_INET]134.53.163.37:1194
Fri Apr  3 15:18:49 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Apr  3 15:18:49 2015 TLS Error: TLS handshake failed
Fri Apr  3 15:18:49 2015 SIGUSR1[soft,tls-error] received, process restarting
Fri Apr  3 15:18:49 2015 Restart pause, 2 second(s)
Fri Apr  3 15:18:51 2015 Socket Buffers: R=[212992->131072] S=[212992->131072]
Fri Apr  3 15:18:52 2015 UDPv4 link local: [undef]
Fri Apr  3 15:18:52 2015 UDPv4 link remote: [AF_INET]134.53.163.37:1194
Fri Apr  3 15:19:52 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Apr  3 15:19:52 2015 TLS Error: TLS handshake failed
Fri Apr  3 15:19:52 2015 SIGUSR1[soft,tls-error] received, process restarting
Fri Apr  3 15:19:52 2015 Restart pause, 2 second(s)
Fri Apr  3 15:19:54 2015 Socket Buffers: R=[212992->131072] S=[212992->131072]
Fri Apr  3 15:19:54 2015 UDPv4 link local: [undef]
Fri Apr  3 15:19:54 2015 UDPv4 link remote: [AF_INET]134.53.163.37:1194
This is my server configuration

Code: Select all

port 1194
proto udp
dev tun
ca ca.crt
cert alpha.crt
key alpha.key  # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
Client configuration

Code: Select all

port 1194
proto udp
dev tun
ca ca.crt
cert ubuntu.crt
key ubuntu.key  # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: TLS Handshake Error - Ubuntu 14.04

Post by maikcat » Sun Apr 05, 2015 6:39 pm

please post your client config,

both posted configs contains server directive :roll:


also post logs from BOTH sides.

Michael.

Post Reply