This is an OpenVPN setup running on Windows Server 2016 on the server end. It recently stopped working though there have been no configuration changes since it was set up in 2018 (unless someone else changed it). The only known changes are Windows updates which should not affect OpenVPN. Version on the server end is 2.6.4-I601. This is a very basic "road warrior" setup and has worked now for a few years, until sometime in the last few weeks. I've done web searches but not yet found any suggestions that work. Any light someone on the forum here can shed on this problem would be greatly appreciated.
In order to replicate the problem for testing I set up a test VM using Windows 10 and OpenVPN 2.6.9 (same as one of the affected clients) using the same client configuration. The connection just sits and hangs, retries after 60 seconds, keeps retrying, and ultimately has to be aborted. The following is the connection log with personal info redacted:
Fri Aug 13 18:06:44 2021 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Fri Aug 13 18:06:44 2021 Windows version 6.2 (Windows 8 or greater) 64bit
Fri Aug 13 18:06:44 2021 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Fri Aug 13 18:06:44 2021 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25344
Fri Aug 13 18:06:44 2021 Need hold release from management interface, waiting...
Fri Aug 13 18:06:45 2021 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25344
Fri Aug 13 18:06:45 2021 MANAGEMENT: CMD 'state on'
Fri Aug 13 18:06:45 2021 MANAGEMENT: CMD 'log all on'
Fri Aug 13 18:06:45 2021 MANAGEMENT: CMD 'echo all on'
Fri Aug 13 18:06:45 2021 MANAGEMENT: CMD 'bytecount 5'
Fri Aug 13 18:06:45 2021 MANAGEMENT: CMD 'hold off'
Fri Aug 13 18:06:45 2021 MANAGEMENT: CMD 'hold release'
Fri Aug 13 18:06:45 2021 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Aug 13 18:06:45 2021 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Aug 13 18:06:45 2021 MANAGEMENT: >STATE:1628892405,RESOLVE,,,,,,
Fri Aug 13 18:06:45 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]IP_ADDRESS:1194
Fri Aug 13 18:06:45 2021 Socket Buffers: R=[65536->65536] S=[65536->65536]
Fri Aug 13 18:06:45 2021 UDPv4 link local: (not bound)
Fri Aug 13 18:06:45 2021 UDPv4 link remote: [AF_INET]IP_ADDRESS:1194
Fri Aug 13 18:06:45 2021 MANAGEMENT: >STATE:1628892405,WAIT,,,,,,
Fri Aug 13 18:06:45 2021 MANAGEMENT: >STATE:1628892405,AUTH,,,,,,
Fri Aug 13 18:06:45 2021 TLS: Initial packet from [AF_INET]IP_ADDRESS:1194, sid=ea2e3f95 73afb423
Fri Aug 13 18:06:45 2021 VERIFY OK: depth=1, C=US, ST=XX, L=XXXXX, O=xxxxx, OU=XXXXX, CN=XXXXX, name=XXXXX, emailAddress=
XXXX@XXXXX.com
Fri Aug 13 18:06:45 2021 VERIFY KU OK
Fri Aug 13 18:06:45 2021 Validating certificate extended key usage
Fri Aug 13 18:06:45 2021 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Fri Aug 13 18:06:45 2021 VERIFY EKU OK
Fri Aug 13 18:06:45 2021 VERIFY OK: depth=0, C=US, ST=XX, L=XXXXX, O=XXXXX, OU=XXXXX, CN=XXXXX, name=server, emailAddress=
XXXX@XXXXX.com
Fri Aug 13 18:07:45 2021 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Aug 13 18:07:45 2021 TLS Error: TLS handshake failed
Fri Aug 13 18:07:45 2021 SIGUSR1[soft,tls-error] received, process restarting
Fri Aug 13 18:07:45 2021 MANAGEMENT: >STATE:1628892465,RECONNECTING,tls-error,,,,,
Fri Aug 13 18:07:45 2021 Restart pause, 5 second(s)
Fri Aug 13 18:07:50 2021 MANAGEMENT: >STATE:1628892470,RESOLVE,,,,,,
Fri Aug 13 18:07:50 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]IP_ADDRESS:1194
Fri Aug 13 18:07:50 2021 Socket Buffers: R=[65536->65536] S=[65536->65536]
Fri Aug 13 18:07:50 2021 UDPv4 link local: (not bound)
Fri Aug 13 18:07:50 2021 UDPv4 link remote: [AF_INET]IP_ADDRESS:1194
Fri Aug 13 18:07:50 2021 MANAGEMENT: >STATE:1628892470,WAIT,,,,,,
Fri Aug 13 18:07:50 2021 MANAGEMENT: >STATE:1628892470,AUTH,,,,,,
Fri Aug 13 18:07:50 2021 TLS: Initial packet from [AF_INET]IP_ADDRESS:1194, sid=dfbd1fa0 078da748
Fri Aug 13 18:07:50 2021 VERIFY OK: depth=1, C=US, ST=XX, L=XXXXX, O=XXXXX, OU=XXXXX, CN=XXXXX, name=XXXXX, emailAddress=
XXXX@XXXXX.com
Fri Aug 13 18:07:50 2021 VERIFY KU OK
Fri Aug 13 18:07:50 2021 Validating certificate extended key usage
Fri Aug 13 18:07:50 2021 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Fri Aug 13 18:07:50 2021 VERIFY EKU OK
Fri Aug 13 18:07:50 2021 VERIFY OK: depth=0, C=US, ST=XX, L=XXXXX, O=XXXXX, OU=XXXXX, CN=XXXXX, name=XXXXX, emailAddress=
XXXX@XXXXX.com
Fri Aug 13 18:08:50 2021 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Aug 13 18:08:50 2021 TLS Error: TLS handshake failed
Fri Aug 13 18:08:50 2021 SIGUSR1[soft,tls-error] received, process restarting
Fri Aug 13 18:08:50 2021 MANAGEMENT: >STATE:1628892530,RECONNECTING,tls-error,,,,,
Fri Aug 13 18:08:50 2021 Restart pause, 5 second(s)
[...retries several times, finally abort manually...]
Fri Aug 13 18:28:16 2021 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Aug 13 18:28:16 2021 TLS Error: TLS handshake failed
Fri Aug 13 18:28:16 2021 SIGUSR1[soft,tls-error] received, process restarting
Fri Aug 13 18:28:16 2021 MANAGEMENT: >STATE:1628893696,RECONNECTING,tls-error,,,,,
Fri Aug 13 18:28:16 2021 Restart pause, 300 second(s)
Fri Aug 13 18:30:37 2021 SIGTERM[hard,init_instance] received, process exiting
Fri Aug 13 18:30:37 2021 MANAGEMENT: >STATE:1628893837,EXITING,init_instance,,,,,
Here is the server configuration:
port 1194
proto udp4
dev tun
dev-node OpenVPN_TAP
ca C:\\PROGRA~1\\OpenVPN\\easy-rsa\\keys\\ca.crt
cert C:\\PROGRA~1\\OpenVPN\\easy-rsa\\keys\\server.crt
key C:\\PROGRA~1\\OpenVPN\\easy-rsa\\keys\\server.key
dh C:\\PROGRA~1\\OpenVPN\\easy-rsa\\keys\\dh2048.pem
tls-auth C:\\PROGRA~1\\OpenVPN\\easy-rsa\\keys\\ta.key 0
tap-sleep 3
route-delay 1 3
server 10.8.0.0 255.255.255.0
ip-win32 netsh
ifconfig-pool-persist ipp.txt
push "route 192.168.0.0 255.255.255.0"
keepalive 10 120
comp-lzo
cipher AES-256-CBC
status openvpn-status.log
verb 3
mute 20
crl-verify C:\\PROGRA~1\\OpenVPN\\easy-rsa\\keys\\crl.pem
management localhost 7505
Here is the client configuration:
client
dev tun
proto udp4
remote IP_ADDRESS 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca c:\\progra~1\\openvpn\\easy-rsa\\keys\\ca.crt
cert c:\\progra~1\\openvpn\\easy-rsa\\keys\\USER.crt
key c:\\progra~1\\openvpn\\easy-rsa\\keys\\USER.key
remote-cert-tls server
tls-auth c:\\progra~1\\openvpn\\easy-rsa\\keys\\fands\\ta.key 1
cipher AES-256-CBC
comp-lzo
verb 3
auth-nocache