Hi Guys, I've just installed OpenVPN 2.5.1 server on a Debian Linux box on my local LAN using a script I got from
https://git.io/vpn
I ran the script on the server and copied the auto generated *.ovpn file to the Win 10 client
C:\Program Files\OpenVPN\config\
But when I try to connect from the Win 10 box ( also on my LAN ) using OpenVPN GUI I see this
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
TLS Error: TLS handshake failed
I've tried disabling the firewall but with no success, any ideas ?
Edit
I've also tried running this on the server box but I still get the same error
openvpn --config myclient.ovpn
server.conf
local 10.10.1.4
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify
client.ovpn
client
proto udp
explicit-exit-notify
remote xx.xx.xx.xx 1194
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_gU3cqcKWtSoTssNb name
auth SHA256
auth-nocache
cipher AES-128-GCM
tls-client
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
ignore-unknown-option block-outside-dns
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3
<ca>
-----BEGIN CERTIFICATE-----
><
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
><-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
><-----END PRIVATE KEY-----
</key>
<tls-crypt>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
><----END OpenVPN Static key V1-----
</tls-crypt>
Log from OpenVPNGUI
Thu Aug 19 08:52:32 2021 OpenVPN 2.5.3 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Jun 17 2021
Thu Aug 19 08:52:32 2021 Windows version 10.0 (Windows 10 or greater) 64bit
Thu Aug 19 08:52:32 2021 library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
Thu Aug 19 08:52:32 2021 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Aug 19 08:52:32 2021 Need hold release from management interface, waiting...
Thu Aug 19 08:52:33 2021 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Aug 19 08:52:33 2021 MANAGEMENT: CMD 'state on'
Thu Aug 19 08:52:33 2021 MANAGEMENT: CMD 'log all on'
Thu Aug 19 08:52:33 2021 MANAGEMENT: CMD 'echo all on'
Thu Aug 19 08:52:33 2021 MANAGEMENT: CMD 'bytecount 5'
Thu Aug 19 08:52:33 2021 MANAGEMENT: CMD 'hold off'
Thu Aug 19 08:52:33 2021 MANAGEMENT: CMD 'hold release'
Thu Aug 19 08:52:33 2021 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Thu Aug 19 08:52:33 2021 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu Aug 19 08:52:33 2021 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Thu Aug 19 08:52:33 2021 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu Aug 19 08:52:33 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]xx.xx.xx.xxx:1194
Thu Aug 19 08:52:33 2021 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Aug 19 08:52:33 2021 UDP link local: (not bound)
Thu Aug 19 08:52:33 2021 UDP link remote: [AF_INET]xx.xx.xx.xxx:1194
Thu Aug 19 08:52:33 2021 MANAGEMENT: >STATE:1629359553,WAIT,,,,,,
Thu Aug 19 08:53:33 2021 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Aug 19 08:53:33 2021 TLS Error: TLS handshake failed