Forum archive
Clients can no longer connect to TurnKey OpenVPN
TurnKey OpenVPN has been working fine for months, but all of the sudden clients cannot connect. The server and client are able to send and receive data according to the client GUI, but the connection is never completed and fails around the time that the certificate is being authenticated. Please see the log from the client GUI below.
Thu Nov 29 08:38:25 2018 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Thu Nov 29 08:38:25 2018 Windows version 6.2 (Windows 8 or greater) 64bit
Thu Nov 29 08:38:25 2018 library versions: OpenSSL 1.1.0h 27 Mar 2018, LZO 2.10
Thu Nov 29 08:38:25 2018 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Nov 29 08:38:25 2018 Need hold release from management interface, waiting...
Thu Nov 29 08:38:25 2018 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Nov 29 08:38:25 2018 MANAGEMENT: CMD 'state on'
Thu Nov 29 08:38:25 2018 MANAGEMENT: CMD 'log all on'
Thu Nov 29 08:38:25 2018 MANAGEMENT: CMD 'echo all on'
Thu Nov 29 08:38:25 2018 MANAGEMENT: CMD 'bytecount 5'
Thu Nov 29 08:38:25 2018 MANAGEMENT: CMD 'hold off'
Thu Nov 29 08:38:25 2018 MANAGEMENT: CMD 'hold release'
Thu Nov 29 08:38:25 2018 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Thu Nov 29 08:38:25 2018 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Nov 29 08:38:25 2018 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Nov 29 08:38:25 2018 MANAGEMENT: >STATE:1543498705,RESOLVE,,,,,,
Thu Nov 29 08:38:25 2018 TCP/UDP: Preserving recently used remote address: [AF_INET][SERVERIP]:1194
Thu Nov 29 08:38:25 2018 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Nov 29 08:38:25 2018 UDP link local: (not bound)
Thu Nov 29 08:38:25 2018 UDP link remote: [AF_INET][SERVERIP]:1194
Thu Nov 29 08:38:25 2018 MANAGEMENT: >STATE:1543498705,WAIT,,,,,,
Thu Nov 29 08:38:25 2018 MANAGEMENT: >STATE:1543498705,AUTH,,,,,,
Thu Nov 29 08:38:25 2018 TLS: Initial packet from [AF_INET][SERVERIP]:1194, sid=d7c7b2e8 34ee4c10
Thu Nov 29 08:38:26 2018 VERIFY OK: depth=1, C=US, ST=CA, L=San Francisco, O=TurnKey Linux, OU=OpenVPN, CN=server, name=openvpn, emailAddress=[CERTEMAIL]
Thu Nov 29 08:38:26 2018 VERIFY OK: nsCertType=SERVER
Thu Nov 29 08:38:26 2018 VERIFY OK: depth=0, C=US, ST=CA, L=San Francisco, O=TurnKey Linux, OU=OpenVPN, CN=server, name=openvpn, emailAddress=[CERTEMAIL]
At the time of failure, 3534B have come in and 6676B have gone out. The client appears to be transmitting and receiving data from the server, but a connection is never established. After some time, the reconnection process begins and subsequently fails the same way. Any help is greatly appreciated.
I have just checked and there should not have been any security updates that should have affected OpenVPN, so it's very strange that it just stopped working!
Are all clients having the same experience (assuming there is more than one)? Have there been any recent client-side software updates? I wonder if there have been any Windows updates that may have affected this?
I also notice in the log "WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.". TBH I highly doubt that is the cause (it's a deprecation warning, not an error). But perhaps it's worth a try? Another user also noted that on the tracker and has also kindly provided a patch. Perhaps it's worth apply the suggested tweak and regenerating a new .opvn profile? I can't guarantee anything but possibly worth a shot...
Otherwise, TBH I'm not at all sure...