OpenVPN not connecting
-
Hello,
I have setup OpenVPN, but when I want co connect from client computer, this log appears:
Tue Feb 20 14:38:34 2018 OpenVPN 2.4.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Sep 26 2017
Tue Feb 20 14:38:34 2018 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Feb 20 14:38:34 2018 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.10
Enter Management Password:
Tue Feb 20 14:38:38 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:38:38 2018 UDP link local (bound): [AF_INET][undef]:1194
Tue Feb 20 14:38:38 2018 UDP link remote: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:39:38 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Feb 20 14:39:38 2018 TLS Error: TLS handshake failed
Tue Feb 20 14:39:38 2018 SIGUSR1[soft,tls-error] received, process restarting
Tue Feb 20 14:39:43 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:39:43 2018 UDP link local (bound): [AF_INET][undef]:1194
Tue Feb 20 14:39:43 2018 UDP link remote: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:40:43 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Feb 20 14:40:43 2018 TLS Error: TLS handshake failed
Tue Feb 20 14:40:43 2018 SIGUSR1[soft,tls-error] received, process restarting
Tue Feb 20 14:40:48 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:40:48 2018 UDP link local (bound): [AF_INET][undef]:1194
Tue Feb 20 14:40:48 2018 UDP link remote: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:41:49 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Feb 20 14:41:49 2018 TLS Error: TLS handshake failed
Tue Feb 20 14:41:49 2018 SIGUSR1[soft,tls-error] received, process restarting
Tue Feb 20 14:41:54 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:41:54 2018 UDP link local (bound): [AF_INET][undef]:1194
Tue Feb 20 14:41:54 2018 UDP link remote: [AF_INET]XX:XX:XX:XX:1194
Tue Feb 20 14:42:08 2018 SIGTERM[hard,] received, process exiting -
The client log looks like that if the OpenVPN server is unreachable.
Check if the servers listening interface is correct and if your firewall rules permit the access to the OpenVPN server. -
That happened to me because of many things:
- First i did not create firewall rules, so check them and also OpenVPN firewall rules.
- Second check the Nat Outbound you have to create entrys according to your ip's.
- Third Check the pfsense routing, also if your pfsense is behind a router ISP you have to contact them to check he routing.
- Fourth The damn windows firewall also cause that problem.Hopes it helps you!