[Solved] OpenVPN Community Client stuck at MANAGEMENT: >STATE:TCP_CONNECT
Posted: Sat Sep 12, 2020 2:48 pm
Hi,
I just made a new server and when I launch it all is fine, but when I try to connect to it the client gets stuck at "MANAGEMENT:>STATE:1599921024,TCP_CONNECT"
and after some time I get this error
"TCP: connect to [AF_INET]TheIpAddress:40450 failed: Unknown error"
What can the problem be? I added the rule to the router for port forward, and a rule in my antivirus firewall (I even tried to disable it just to be sure), and I changed IPEnableRouter to 1.
If you need any other piece of information ask and I'll get it.
Router:

Antivirus:

Client log:
Server log:
//Solution:
The problem was from my ISP provider. They were blocking the traffic, and I had to speak with them and change something in my account settings (NOT router) to enable it, and give me an IP that wasn't filtering the traffic I needed.
I just made a new server and when I launch it all is fine, but when I try to connect to it the client gets stuck at "MANAGEMENT:>STATE:1599921024,TCP_CONNECT"
and after some time I get this error
"TCP: connect to [AF_INET]TheIpAddress:40450 failed: Unknown error"
What can the problem be? I added the rule to the router for port forward, and a rule in my antivirus firewall (I even tried to disable it just to be sure), and I changed IPEnableRouter to 1.
If you need any other piece of information ask and I'll get it.
Router:

Antivirus:

Client
remote TheIpAddress
client
port 40450
proto tcp4-client
dev tun
tls-client
tls-auth "E:\\Program Files\\OpenVPN\\config\\ta.key" 1
remote-cert-tls server
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "E:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "E:\\Program Files\\OpenVPN\\config\\ClientVPN.crt"
key "E:\\Program Files\\OpenVPN\\config\\ClientVPN.key"
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
verb 3
mute 20
client
port 40450
proto tcp4-client
dev tun
tls-client
tls-auth "E:\\Program Files\\OpenVPN\\config\\ta.key" 1
remote-cert-tls server
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "E:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "E:\\Program Files\\OpenVPN\\config\\ClientVPN.crt"
key "E:\\Program Files\\OpenVPN\\config\\ClientVPN.key"
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
verb 3
mute 20
Server
dev-node "ServerVPN"
mode server
port 40450
proto tcp4-server
dev tun
tls-server
tls-auth "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key" 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.crt"
key "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.key"
dh "E:\\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 "E:\\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
mode server
port 40450
proto tcp4-server
dev tun
tls-server
tls-auth "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key" 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.crt"
key "E:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.key"
dh "E:\\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 "E:\\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 log:
Code: Select all
Sat Sep 12 07:24:04 2020 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Sat Sep 12 07:24:04 2020 Windows version 6.2 (Windows 8 or greater) 64bit
Sat Sep 12 07:24:04 2020 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Enter Management Password:
Sat Sep 12 07:24:04 2020 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Sat Sep 12 07:24:04 2020 Need hold release from management interface, waiting...
Sat Sep 12 07:24:04 2020 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Sat Sep 12 07:24:04 2020 MANAGEMENT: CMD 'state on'
Sat Sep 12 07:24:04 2020 MANAGEMENT: CMD 'log all on'
Sat Sep 12 07:24:04 2020 MANAGEMENT: CMD 'echo all on'
Sat Sep 12 07:24:04 2020 MANAGEMENT: CMD 'bytecount 5'
Sat Sep 12 07:24:04 2020 MANAGEMENT: CMD 'hold off'
Sat Sep 12 07:24:04 2020 MANAGEMENT: CMD 'hold release'
Sat Sep 12 07:24:04 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Sep 12 07:24:04 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Sep 12 07:24:04 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]TheIpAddress:40450
Sat Sep 12 07:24:04 2020 Socket Buffers: R=[65536->65536] S=[65536->65536]
Sat Sep 12 07:24:04 2020 Attempting to establish TCP connection with [AF_INET]TheIpAddress:40450 [nonblock]
Sat Sep 12 07:24:04 2020 MANAGEMENT: >STATE:1599920644,TCP_CONNECT,,,,,,
Sat Sep 12 07:26:06 2020 TCP: connect to [AF_INET]TheIpAddress:40450 failed: Unknown error
Sat Sep 12 07:26:06 2020 SIGUSR1[connection failed(soft),init_instance] received, process restarting
Sat Sep 12 07:26:06 2020 MANAGEMENT: >STATE:1599920766,RECONNECTING,init_instance,,,,,
Sat Sep 12 07:26:06 2020 Restart pause, 5 second(s)
Sat Sep 12 07:26:11 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]TheIpAddress:40450
Sat Sep 12 07:26:11 2020 Socket Buffers: R=[65536->65536] S=[65536->65536]
Sat Sep 12 07:26:11 2020 Attempting to establish TCP connection with [AF_INET]TheIpAddress:40450 [nonblock]
Sat Sep 12 07:26:11 2020 MANAGEMENT: >STATE:1599920771,TCP_CONNECT,,,,,,
Sat Sep 12 07:28:12 2020 TCP: connect to [AF_INET]TheIpAddress:40450 failed: Unknown error
Sat Sep 12 07:28:12 2020 SIGUSR1[connection failed(soft),init_instance] received, process restarting
Code: Select all
Sat Sep 12 16:51:24 2020 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Sat Sep 12 16:51:24 2020 Windows version 6.2 (Windows 8 or greater) 64bit
Sat Sep 12 16:51:24 2020 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Enter Management Password:
Sat Sep 12 16:51:24 2020 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Sat Sep 12 16:51:24 2020 Need hold release from management interface, waiting...
Sat Sep 12 16:51:24 2020 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Sat Sep 12 16:51:24 2020 MANAGEMENT: CMD 'state on'
Sat Sep 12 16:51:24 2020 MANAGEMENT: CMD 'log all on'
Sat Sep 12 16:51:24 2020 MANAGEMENT: CMD 'echo all on'
Sat Sep 12 16:51:24 2020 MANAGEMENT: CMD 'bytecount 5'
Sat Sep 12 16:51:24 2020 MANAGEMENT: CMD 'hold off'
Sat Sep 12 16:51:24 2020 MANAGEMENT: CMD 'hold release'
Sat Sep 12 16:51:24 2020 Diffie-Hellman initialized with 2048 bit key
Sat Sep 12 16:51:24 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Sep 12 16:51:24 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Sep 12 16:51:24 2020 interactive service msg_channel=0
Sat Sep 12 16:51:24 2020 ROUTE_GATEWAY 192.168.100.1/255.255.255.0 I=11 HWADDR=2c:f0:5d:3e:9b:dc
Sat Sep 12 16:51:24 2020 open_tun
Sat Sep 12 16:51:24 2020 TAP-WIN32 device [ServerVPN] opened: \\.\Global\{6645A50D-42D9-4D2E-AA16-B258F8E3CBF4}.tap
Sat Sep 12 16:51:24 2020 TAP-Windows Driver Version 9.24
Sat Sep 12 16:51:24 2020 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.10.10.1/255.255.255.252 on interface {6645A50D-42D9-4D2E-AA16-B258F8E3CBF4} [DHCP-serv: 10.10.10.2, lease-time: 31536000]
Sat Sep 12 16:51:24 2020 Sleeping for 5 seconds...
Sat Sep 12 16:51:29 2020 Successful ARP Flush on interface [12] {6645A50D-42D9-4D2E-AA16-B258F8E3CBF4}
Sat Sep 12 16:51:29 2020 MANAGEMENT: >STATE:1599918689,ASSIGN_IP,,10.10.10.1,,,,
Sat Sep 12 16:51:29 2020 MANAGEMENT: >STATE:1599918689,ADD_ROUTES,,,,,,
Sat Sep 12 16:51:29 2020 C:\WINDOWS\system32\route.exe ADD 192.168.182.0 MASK 255.255.255.0 10.10.10.2
Sat Sep 12 16:51:29 2020 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Sat Sep 12 16:51:29 2020 C:\WINDOWS\system32\route.exe ADD 10.10.10.0 MASK 255.255.255.0 10.10.10.2
Sat Sep 12 16:51:29 2020 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Sat Sep 12 16:51:29 2020 Socket Buffers: R=[65536->65536] S=[65536->65536]
Sat Sep 12 16:51:29 2020 Listening for incoming TCP connection on [AF_INET][undef]:40450
Sat Sep 12 16:51:29 2020 TCPv4_SERVER link local (bound): [AF_INET][undef]:40450
Sat Sep 12 16:51:29 2020 TCPv4_SERVER link remote: [AF_UNSPEC]
Sat Sep 12 16:51:29 2020 MULTI: multi_init called, r=256 v=256
Sat Sep 12 16:51:29 2020 IFCONFIG POOL: base=10.10.10.4 size=62, ipv6=0
Sat Sep 12 16:51:29 2020 MULTI: TCP INIT maxclients=60 maxevents=64
Sat Sep 12 16:51:29 2020 Initialization Sequence Completed
Sat Sep 12 16:51:29 2020 MANAGEMENT: >STATE:1599918689,CONNECTED,SUCCESS,10.10.10.1,,,,
The problem was from my ISP provider. They were blocking the traffic, and I had to speak with them and change something in my account settings (NOT router) to enable it, and give me an IP that wasn't filtering the traffic I needed.