Hi,
Earlier today, life was good because I could connect to my OpenVPN, just the way I intended. Later, I added two lines in the server.conf file, namely
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
When I was finished with the changes, I executed the following command:
sudo systemctl restart openvpn.service
Now, I cannot connect to the VPN any more. The error that I receive is this:
Thu Nov 17 02:09:43 2016 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Nov 17 02:09:43 2016 TLS Error: TLS handshake failed
Of course, I tried to revert to the old settings in the config-file, but to no avail.
I searched and found
http://serverfault.com/questions/709860/fix-tls-error-tls-handshake-failed-on-openvpn-client, but that got me nowhere. I did execute the command
sudo tcpdump -ni eth0 udp and port 1194
and according to that, it seems as if UDP-packages arrive.
When I launch the OpenVPN, I use a .ovpn-file. Below, I will post my server.conf and base.conf, respectively.
Please note that only the un-commented lines are included.
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
route 192.168.0.0 255.255.255.0
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
client-to-client
push "route 192.168.0.0 255.255.255.0"
keepalive 10 120
tls-auth ta.key 0 # This file is secret
key-direction 0
cipher AES-128-CBC # AES
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
client
dev tun
proto udp
remote MY_IP_ADDRESS 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
tls-auth ta.key 1
cipher AES-128-CBC
auth SHA256
key-direction 1
comp-lzo
verb 3
Here is also part of the .ovpn-file
client
dev tun
proto udp
remote MY_IP_ADDRESS 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
tls-auth ta.key 1
cipher AES-128-CBC
auth SHA256
key-direction 1
comp-lzo
verb 3
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Here comes the certs...
Any help and/or suggestions is very appreciated.
/L