Client exception in transport_recv: tun_exception: not connected

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
WreckingBANG
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 22, 2022 3:16 pm

Client exception in transport_recv: tun_exception: not connected

Post by WreckingBANG » Fri Apr 22, 2022 3:27 pm

Hello,

first off i am new to OpenVPN and my english is not that good.
I am trying to connect my Android Device with my Open VPN Server at Home.
I am using the OpenVPN App on Android and my OpenVPN Server is running on Windows 10.

My Log:

Code: Select all

2022-04-22 17:05:53 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
2022-04-22 17:05:53 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-128-CBC' to --data-ciphers or change --cipher 'AES-128-CBC' to --data-ciphers-fallback 'AES-128-CBC' to silence this warning.
2022-04-22 17:05:53 --pull-filter ignored for --mode server
2022-04-22 17:05:53 OpenVPN 2.5.6 Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Mar 16 2022
2022-04-22 17:05:53 Windows version 10.0 (Windows 10 or greater) 64bit
2022-04-22 17:05:53 library versions: OpenSSL 1.1.1n  15 Mar 2022, LZO 2.10
2022-04-22 17:05:53 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25341
2022-04-22 17:05:53 Need hold release from management interface, waiting...
2022-04-22 17:05:54 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25341
2022-04-22 17:05:54 MANAGEMENT: CMD 'state on'
2022-04-22 17:05:54 MANAGEMENT: CMD 'log all on'
2022-04-22 17:05:54 MANAGEMENT: CMD 'echo all on'
2022-04-22 17:05:54 MANAGEMENT: CMD 'bytecount 5'
2022-04-22 17:05:54 MANAGEMENT: CMD 'hold off'
2022-04-22 17:05:54 MANAGEMENT: CMD 'hold release'
2022-04-22 17:05:54 Diffie-Hellman initialized with 2048 bit key
2022-04-22 17:05:54 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:05:54 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:05:54 interactive service msg_channel=580
2022-04-22 17:05:54 open_tun
2022-04-22 17:05:54 tap-windows6 device [ServerVPN] opened
2022-04-22 17:05:54 TAP-Windows Driver Version 9.24 
2022-04-22 17:05:54 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.10.10.5/255.255.255.252 on interface {3FC8C510-0E12-4121-943C-929B66C2C63B} [DHCP-serv: 10.10.10.6, lease-time: 31536000]
2022-04-22 17:05:54 Sleeping for 5 seconds...
2022-04-22 17:05:59 Successful ARP Flush on interface [9] {3FC8C510-0E12-4121-943C-929B66C2C63B}
2022-04-22 17:05:59 MANAGEMENT: >STATE:1650639959,ASSIGN_IP,,10.10.10.5,,,,
2022-04-22 17:05:59 IPv4 MTU set to 1500 on interface 9 using service
2022-04-22 17:05:59 MANAGEMENT: >STATE:1650639959,ADD_ROUTES,,,,,,
2022-04-22 17:05:59 C:\Windows\system32\route.exe ADD 192.168.178.0 MASK 255.255.255.0 10.10.10.6
2022-04-22 17:05:59 Route addition via service succeeded
2022-04-22 17:05:59 Socket Buffers: R=[65536->65536] S=[65536->65536]
2022-04-22 17:05:59 Listening for incoming TCP connection on [AF_INET][undef]:45321
2022-04-22 17:05:59 TCPv4_SERVER link local (bound): [AF_INET][undef]:45321
2022-04-22 17:05:59 TCPv4_SERVER link remote: [AF_UNSPEC]
2022-04-22 17:05:59 MULTI: multi_init called, r=256 v=256
2022-04-22 17:05:59 MULTI: TCP INIT maxclients=60 maxevents=64
2022-04-22 17:05:59 Initialization Sequence Completed
2022-04-22 17:05:59 MANAGEMENT: >STATE:1650639959,CONNECTED,SUCCESS,10.10.10.5,,,,
2022-04-22 17:07:37 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:07:37 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:07:37 TCP connection established with [AF_INET]109.43.176.212:10248
2022-04-22 17:07:37 109.43.176.212:10248 TLS: Initial packet from [AF_INET]109.43.176.212:10248, sid=4e78945c c92db96c
2022-04-22 17:07:37 109.43.176.212:10248 VERIFY OK: depth=1, C=DE, ST=RLP, L=Frankenthal, O=ServerVPN, OU=private, CN=ServerVPN, name=ServerVPN, emailAddress=wreckingbang@yahoo.com
2022-04-22 17:07:37 109.43.176.212:10248 VERIFY OK: depth=0, C=DE, ST=RLP, L=Frankenthal, O=ServerVPN, OU=changeme, CN=S22UltraDaniel, name=changeme, emailAddress=wreckingbang@yahoo.com
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_VER=3.git::662eae9a:Release
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_PLAT=android
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_NCP=2
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_TCPNL=1
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_PROTO=2
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_LZO_STUB=1
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_COMP_STUB=1
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_COMP_STUBv2=1
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_IPv6=0
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_AUTO_SESS=1
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.5-7182
2022-04-22 17:07:37 109.43.176.212:10248 peer info: IV_SSO=openurl
2022-04-22 17:07:37 109.43.176.212:10248 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1592', remote='link-mtu 1560'
2022-04-22 17:07:37 109.43.176.212:10248 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2022-04-22 17:07:37 109.43.176.212:10248 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 4096 bit RSA, signature: RSA-SHA256
2022-04-22 17:07:37 109.43.176.212:10248 [S22UltraDaniel] Peer Connection Initiated with [AF_INET]109.43.176.212:10248
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 MULTI: no dynamic or static remote--ifconfig address is available for S22UltraDaniel/109.43.176.212:10248
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 Data Channel: using negotiated cipher 'AES-256-GCM'
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 PUSH: Received control message: 'PUSH_REQUEST'
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 SENT CONTROL [S22UltraDaniel]: 'PUSH_REPLY,route 192.178.0.0 255.255.255.0,ping 10,ping-restart 120,peer-id 0,cipher AES-256-GCM' (status=1)
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 Connection reset, restarting [0]
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 SIGUSR1[soft,connection-reset] received, client-instance restarting
2022-04-22 17:09:42 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:09:42 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:09:42 TCP connection established with [AF_INET]109.43.176.212:15386
2022-04-22 17:09:42 109.43.176.212:15386 TLS: Initial packet from [AF_INET]109.43.176.212:15386, sid=cf2cfa26 3248afd2
2022-04-22 17:09:43 109.43.176.212:15386 VERIFY OK: depth=1, C=DE, ST=RLP, L=Frankenthal, O=ServerVPN, OU=private, CN=ServerVPN, name=ServerVPN, emailAddress=wreckingbang@yahoo.com
2022-04-22 17:09:43 109.43.176.212:15386 VERIFY OK: depth=0, C=DE, ST=RLP, L=Frankenthal, O=ServerVPN, OU=changeme, CN=S22UltraDaniel, name=changeme, emailAddress=wreckingbang@yahoo.com
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_VER=3.git::662eae9a:Release
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_PLAT=android
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_NCP=2
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_TCPNL=1
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_PROTO=2
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_LZO_STUB=1
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_COMP_STUB=1
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_COMP_STUBv2=1
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_IPv6=0
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_AUTO_SESS=1
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.5-7182
2022-04-22 17:09:43 109.43.176.212:15386 peer info: IV_SSO=openurl
2022-04-22 17:09:43 109.43.176.212:15386 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1592', remote='link-mtu 1560'
2022-04-22 17:09:43 109.43.176.212:15386 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2022-04-22 17:09:43 109.43.176.212:15386 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 4096 bit RSA, signature: RSA-SHA256
2022-04-22 17:09:43 109.43.176.212:15386 [S22UltraDaniel] Peer Connection Initiated with [AF_INET]109.43.176.212:15386
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 MULTI: no dynamic or static remote--ifconfig address is available for S22UltraDaniel/109.43.176.212:15386
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 Data Channel: using negotiated cipher 'AES-256-GCM'
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 PUSH: Received control message: 'PUSH_REQUEST'
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 SENT CONTROL [S22UltraDaniel]: 'PUSH_REPLY,route 192.178.0.0 255.255.255.0,ping 10,ping-restart 120,peer-id 0,cipher AES-256-GCM' (status=1)
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 Connection reset, restarting [0]
2022-04-22 17:09:43 S22UltraDaniel/109.43.176.212:15386 SIGUSR1[soft,connection-reset] received, client-instance restarting
2022-04-22 17:10:37 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:10:37 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2022-04-22 17:10:37 TCP connection established with [AF_INET]109.43.176.212:22212
2022-04-22 17:10:37 109.43.176.212:22212 TLS: Initial packet from [AF_INET]109.43.176.212:22212, sid=9ebf9863 dd4a5c93
2022-04-22 17:10:38 109.43.176.212:22212 VERIFY OK: depth=1, C=DE, ST=RLP, L=Frankenthal, O=ServerVPN, OU=private, CN=ServerVPN, name=ServerVPN, emailAddress=wreckingbang@yahoo.com
2022-04-22 17:10:38 109.43.176.212:22212 VERIFY OK: depth=0, C=DE, ST=RLP, L=Frankenthal, O=ServerVPN, OU=changeme, CN=S22UltraDaniel, name=changeme, emailAddress=wreckingbang@yahoo.com
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_VER=3.git::662eae9a:Release
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_PLAT=android
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_NCP=2
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_TCPNL=1
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_PROTO=2
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_LZO_STUB=1
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_COMP_STUB=1
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_COMP_STUBv2=1
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_IPv6=0
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_AUTO_SESS=1
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.5-7182
2022-04-22 17:10:38 109.43.176.212:22212 peer info: IV_SSO=openurl
2022-04-22 17:10:38 109.43.176.212:22212 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1592', remote='link-mtu 1560'
2022-04-22 17:10:38 109.43.176.212:22212 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2022-04-22 17:10:38 109.43.176.212:22212 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 4096 bit RSA, signature: RSA-SHA256
2022-04-22 17:10:38 109.43.176.212:22212 [S22UltraDaniel] Peer Connection Initiated with [AF_INET]109.43.176.212:22212
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 MULTI: no dynamic or static remote--ifconfig address is available for S22UltraDaniel/109.43.176.212:22212
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 Data Channel: using negotiated cipher 'AES-256-GCM'
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 PUSH: Received control message: 'PUSH_REQUEST'
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 SENT CONTROL [S22UltraDaniel]: 'PUSH_REPLY,route 192.178.0.0 255.255.255.0,ping 10,ping-restart 120,peer-id 0,cipher AES-256-GCM' (status=1)
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 Connection reset, restarting [0]
2022-04-22 17:10:38 S22UltraDaniel/109.43.176.212:22212 SIGUSR1[soft,connection-reset] received, client-instance restarting
My Client Config:

Code: Select all

remote "myipadress"
client
port 12345
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
Note: I fixed that the Ports of the Client config and the server config are different

My Server Config:

Code: Select all

dev-node "ServerVPN"
mode server
port 45321

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"

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.178.0.0 255.255.255.0"
route 192.168.178.0 255.255.255.0
ifconfig 10.10.10.5 10.10.10.6

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Client exception in transport_recv: tun_exception: not connected

Post by TinCanTech » Fri Apr 22, 2022 3:51 pm

Try reading your log.

WreckingBANG
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 22, 2022 3:16 pm

Re: Client exception in transport_recv: tun_exception: not connected

Post by WreckingBANG » Fri Apr 22, 2022 4:01 pm

I did but I am sorry as i said i am very new to openvpn so i dont really know what the problem is

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Client exception in transport_recv: tun_exception: not connected

Post by TinCanTech » Fri Apr 22, 2022 4:05 pm

WreckingBANG wrote:
Fri Apr 22, 2022 3:27 pm
2022-04-22 17:07:37 S22UltraDaniel/109.43.176.212:10248 MULTI: no dynamic or static remote--ifconfig address is available for S22UltraDaniel/109.43.176.212:10248

WreckingBANG
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 22, 2022 3:16 pm

Re: Client exception in transport_recv: tun_exception: not connected

Post by WreckingBANG » Fri Apr 22, 2022 4:07 pm

Ok thank you!
How do i fix this?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Client exception in transport_recv: tun_exception: not connected

Post by TinCanTech » Fri Apr 22, 2022 4:29 pm

See --server in the manual.

WreckingBANG
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 22, 2022 3:16 pm

Re: Client exception in transport_recv: tun_exception: not connected

Post by WreckingBANG » Fri Apr 22, 2022 5:01 pm

https://openvpn.net/community-resources ... envpn-2-4/

Is this the manual?
IF yes i find multiple --server in there and i dont know what to do

Post Reply