Hello,
I'm using Windows OS for both client and server.
I followed this tutorial,
https://www.youtube.com/watch?v=hKfHwQgAsUo
I configured and executed the server connection, got connected successfully but when the try to connect client with server I get the following error
"TCP: connect to[AF_INET]xxx. xxx. xxx. xxx. xxx: 4001 failed: Unknown error".
Below are the server and client configuration files
Server Config (C:\Program Files\OpenVPN\config)
dev-node "serverVPN"
mode server
port 4001
proto tcp4-server
dev tun
tls-server
tls-auth "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key" 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\serverVPN.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\serverVPN.key"
dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh2048.pem"
server 10.10.10.0 255.255.255.0
client-to-client
keepalive 10 120
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
client-config-dir "C:\\Program Files\\OpenVPN\\config"
verb 3
route-delay 5
route-method exe
push "route 192.168.0.0 255.255.255.0"
route 192.168.182.0 255.255.255.0
Client config (C:\Program Files\OpenVPN\config)
remote server ip
client
port 4001
proto tcp4-client
dev tun
tls-client
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 1
remote-cert-tls server
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\clientVPN.crt"
key "C:\\Program Files\\OpenVPN\\config\\clientVPN.key"
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
verb 3
mute 20
After Execution, client logs
Fri Jun 12 15:34:33 2020 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Fri Jun 12 15:34:33 2020 Windows version 6.2 (Windows 8 or greater) 64bit
Fri Jun 12 15:34:33 2020 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Fri Jun 12 15:34:33 2020 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Fri Jun 12 15:34:33 2020 Need hold release from management interface, waiting...
Fri Jun 12 15:34:33 2020 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Fri Jun 12 15:34:33 2020 MANAGEMENT: CMD 'state on'
Fri Jun 12 15:34:33 2020 MANAGEMENT: CMD 'log all on'
Fri Jun 12 15:34:33 2020 MANAGEMENT: CMD 'echo all on'
Fri Jun 12 15:34:33 2020 MANAGEMENT: CMD 'bytecount 5'
Fri Jun 12 15:34:33 2020 MANAGEMENT: CMD 'hold off'
Fri Jun 12 15:34:33 2020 MANAGEMENT: CMD 'hold release'
Fri Jun 12 15:34:33 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Jun 12 15:34:33 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Jun 12 15:34:33 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]server ip:4001
Fri Jun 12 15:34:33 2020 Socket Buffers: R=[65536->65536] S=[65536->65536]
Fri Jun 12 15:34:33 2020 Attempting to establish TCP connection with [AF_INET]server ip:4001 [nonblock]
Fri Jun 12 15:34:33 2020 MANAGEMENT: >STATE:1591956273,TCP_CONNECT,,,,,,
Fri Jun 12 15:36:33 2020 TCP: connect to [AF_INET]server ip:4001 failed: Unknown error
Fri Jun 12 15:36:33 2020 SIGUSR1[connection failed(soft),init_instance] received, process restarting
Fri Jun 12 15:36:33 2020 MANAGEMENT: >STATE:1591956393,RECONNECTING,init_instance,,,,,
Fri Jun 12 15:36:33 2020 Restart pause, 5 second(s)
Fri Jun 12 15:36:38 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]server ip:4001
Fri Jun 12 15:36:38 2020 Socket Buffers: R=[65536->65536] S=[65536->65536]
Fri Jun 12 15:36:38 2020 Attempting to establish TCP connection with [AF_INET]server ip:4001 [nonblock]
Fri Jun 12 15:36:38 2020 MANAGEMENT: >STATE:1591956398,TCP_CONNECT,,,,,,
I have been working on this from past one week so I request the support team to consider this as priority and provide the solution for the above issue.
Thank you.