I've successfully installed and configured the latest version of OpenVPN on my Debian 10 server. I can connect clients with latest OpenVPN versions to it and everything seems to be working as it should.
Now, I have an IoT gateway that comes pre-installed with OpenVPN 2.3.2 and no matter what I do I can not get it to connect to my server. The connection fails with the following error messages:
client:
Mon Apr 13 06:22:36 2020 OpenVPN 2.3.2 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Jun 22 2017
Mon Apr 13 06:22:36 2020 Control Channel Authentication: tls-auth using INLINE static key file
Mon Apr 13 06:22:36 2020 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Apr 13 06:22:36 2020 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Apr 13 06:22:36 2020 Socket Buffers: R=[110592->131072] S=[110592->131072]
Mon Apr 13 06:22:36 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Mon Apr 13 06:22:36 2020 UDPv4 link local: [undef]
Mon Apr 13 06:22:36 2020 UDPv4 link remote: [AF_INET]xxx.xxx.xxx.xxx:1194
Mon Apr 13 06:23:36 2020 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Apr 13 06:23:36 2020 TLS Error: TLS handshake failed
Mon Apr 13 06:23:36 2020 SIGUSR1[soft,tls-error] received, process restarting
Mon Apr 13 06:23:36 2020 Restart pause, 2 second(s)
Server:
Apr 13 09:42:47 myserver.com openvpn[6455]: tls-crypt unwrap error: packet authentication failed
Apr 13 09:42:47 myserver.com openvpn[6455]: TLS Error: tls-crypt unwrapping failed from [AF_INET]xxx.xxx.xxx.xxx:35001
This is my server config:
local xxx.xxx.xxx.xxx
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
status openvpn-status.log
verb 3
crl-verify crl.pem
explicit-exit-notify
Client config:
Interface Type: TAP
Protocol: UDP
Server Hostname/IP: xxx.xxx.xxx.xxx
Server Port: 1194
Encryption Cipher: AES-256-CBC
Certificate and Keys: --inserted here---
Other settings:
auth SHA512
resolv-retry infinite
nobind
remote-cert-tls server