Auto Disconnect

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Professionele idioot
OpenVpn Newbie
Posts: 4
Joined: Tue May 10, 2022 9:07 am

Auto Disconnect

Post by Professionele idioot » Tue May 10, 2022 9:15 am

Dear OpenVPN Community, i have a problem with the connection and i don`t see the issue.
On My android phone it works perfectly, only if i try on my iphone he connect with openvpn but disconnect withouth any error message.
Sorry for my bad english, and i have a error log can sombody help me futher?

Code: Select all

IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_GUI_VER=net.openvpn.connect.ios_3.2.3-3760
IV_SSO=openurl
IV_BS64DL=1


2022-05-09 19:57:23 VERIFY OK: depth=1, /CN=Machiels VPN

2022-05-09 19:57:23 VERIFY OK: depth=0, /CN=Machiels VPN/subjectAltName=

2022-05-09 19:57:23 SSL Handshake: CN=Machiels VPN, TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 2048 bit RSA

2022-05-09 19:57:23 Session is ACTIVE

2022-05-09 19:57:23 EVENT: GET_CONFIG

2022-05-09 19:57:23 Sending PUSH_REQUEST to server...

2022-05-09 19:57:25 Sending PUSH_REQUEST to server...

2022-05-09 19:57:25 OPTIONS:
0 [dhcp-option] [DNS] [172.16.0.11] 
1 [dhcp-option] [DNS] [172.16.0.1] 
2 [redirect-gateway] [def1] 
3 [route-gateway] [10.0.8.1] 
4 [topology] [subnet] 
5 [ping] [10] 
6 [ping-restart] [60] 
7 [ifconfig] [10.0.8.3] [255.255.255.0] 
8 [peer-id] [1] 
9 [cipher] [AES-256-GCM] 


2022-05-09 19:57:25 PROTOCOL OPTIONS:
  cipher: AES-256-GCM
  digest: NONE
  compress: NONE
  peer ID: 1

2022-05-09 19:57:25 EVENT: ASSIGN_IP

2022-05-09 19:57:25 NIP: preparing TUN network settings

2022-05-09 19:57:25 NIP: init TUN network settings with endpoint: -Removed my ip

2022-05-09 19:57:25 NIP: adding IPv4 address to network settings 10.0.8.3/255.255.255.0

2022-05-09 19:57:25 NIP: adding (included) IPv4 route 10.0.8.0/24

2022-05-09 19:57:25 NIP: redirecting all IPv4 traffic to TUN interface

2022-05-09 19:57:25 NIP: adding DNS 172.16.0.11

2022-05-09 19:57:25 NIP: adding DNS 172.16.0.1

2022-05-09 19:57:25 Connected via NetworkExtensionTUN

2022-05-09 19:57:25 EVENT: CONNECTED username@-Removed my ip:1194 (-Removed my ip) via /UDPv4 on NetworkExtensionTUN/10.0.8.3/ gw=[/]

2022-05-09 19:57:38 EVENT: DISCONNECTED

2022-05-09 19:57:38 Raw stats on disconnect:
  BYTES_IN : 1217762
  BYTES_OUT : 86808
  PACKETS_IN : 1036
  PACKETS_OUT : 478
  TUN_BYTES_IN : 71897
  TUN_BYTES_OUT : 1189471
  TUN_PACKETS_IN : 464
  TUN_PACKETS_OUT : 1025
  

User avatar
TinCanTech
Forum Team
Posts: 10847
Joined: Fri Jun 03, 2016 1:17 pm

Re: Auto Disconnect

Post by TinCanTech » Tue May 10, 2022 9:44 am

Check your server log for problems.

Professionele idioot
OpenVpn Newbie
Posts: 4
Joined: Tue May 10, 2022 9:07 am

Re: Auto Disconnect

Post by Professionele idioot » Tue May 10, 2022 10:34 am

Dear TinCanTech,

Server log

Code: Select all

May 10 08:07:44	openvpn	97313	ExternIP:15120 peer info: IV_PROTO=30
May 10 08:07:44	openvpn	97313	ExternIP:15120 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:BF-CBC
May 10 08:07:44	openvpn	97313	ExternIP:15120 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.7-7957
May 10 08:07:44	openvpn	97313	ExternIP:15120 peer info: IV_SSO=webauth,openurl
May 10 08:07:44	openvpn	97313	ExternIP:15120 peer info: IV_BS64DL=1
May 10 08:07:44	openvpn	97313	ExternIP:15120 TLS Error: Auth Username/Password was not provided by peer
May 10 08:07:44	openvpn	97313	ExternIP:15120 TLS Error: TLS handshake failed
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_VER=3.git::d3f8b18b:Release
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_PLAT=android
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_NCP=2
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_TCPNL=1
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_PROTO=30
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:BF-CBC
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.7-7957
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_SSO=webauth,openurl
May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_BS64DL=1
May 10 08:08:42	openvpn	97313	ExternIP:15122 TLS Error: Auth Username/Password was not provided by peer
May 10 08:08:42	openvpn	97313	ExternIP:15122 TLS Error: TLS handshake failed
The strange thing if i tested on the wifi then its works, if i switch to cellullar then this happends.

User avatar
TinCanTech
Forum Team
Posts: 10847
Joined: Fri Jun 03, 2016 1:17 pm

Re: Auto Disconnect

Post by TinCanTech » Tue May 10, 2022 10:51 am

Now read your server log.

Professionele idioot
OpenVpn Newbie
Posts: 4
Joined: Tue May 10, 2022 9:07 am

Re: Auto Disconnect

Post by Professionele idioot » Tue May 10, 2022 11:20 am

Dear TincanTech

Code: Select all

May 10 08:08:42	openvpn	97313	ExternIP:15122 peer info: IV_BS64DL=1
May 10 08:08:42	openvpn	97313	ExternIP:15122 TLS Error: Auth Username/Password was not provided by peer
May 10 08:08:42	openvpn	97313	ExternIP:15122 TLS Error: TLS handshake failed
I see this message, but how is it possible if it wel works on a external wifi connection ( not the same wifi connection where the server is ).

User avatar
TinCanTech
Forum Team
Posts: 10847
Joined: Fri Jun 03, 2016 1:17 pm

Re: Auto Disconnect

Post by TinCanTech » Tue May 10, 2022 11:28 am

You are obviously NOT using the same profile.

One has a password configured, while the other does not.

Professionele idioot
OpenVpn Newbie
Posts: 4
Joined: Tue May 10, 2022 9:07 am

Re: Auto Disconnect

Post by Professionele idioot » Wed May 11, 2022 8:49 am

Dear TinCanTech
i have double check it en when i use the openvpn profile for ios this is what is standing in the server logs

Code: Select all

May 10 10:35:17 	openvpn 	97313 	ExternIP:60427 TLS Error: Auth Username/Password was not provided by peer
May 10 10:35:17 	openvpn 	97313 	ExternIP:60427 TLS Error: TLS handshake failed
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_VER=3.git::d3f8b18b:Release
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_PLAT=android
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_NCP=2
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_TCPNL=1
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_PROTO=30
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:BF-CBC
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.7-7957
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_SSO=webauth,openurl
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 peer info: IV_BS64DL=1
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 TLS Error: Auth Username/Password was not provided by peer
May 10 10:38:22 	openvpn 	97313 	ExternIP:60428 TLS Error: TLS handshake failed
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_VER=3.git::d3f8b18b:Release
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_PLAT=android
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_NCP=2
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_TCPNL=1
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_PROTO=30
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:BF-CBC
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.7-7957
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_SSO=webauth,openurl
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 peer info: IV_BS64DL=1
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 TLS Error: Auth Username/Password was not provided by peer
May 10 10:39:16 	openvpn 	97313 	ExternIP:60429 TLS Error: TLS handshake failed
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_VER=3.git::d3f8b18b:Release
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_PLAT=android
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_NCP=2
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_TCPNL=1
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_PROTO=30
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:BF-CBC
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_GUI_VER=net.openvpn.connect.android_3.2.7-7957
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_SSO=webauth,openurl
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 peer info: IV_BS64DL=1
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 TLS Error: Auth Username/Password was not provided by peer
May 10 10:46:40 	openvpn 	97313 	ExternIP:60431 TLS Error: TLS handshake failed

User avatar
TinCanTech
Forum Team
Posts: 10847
Joined: Fri Jun 03, 2016 1:17 pm

Re: Auto Disconnect

Post by TinCanTech » Fri May 13, 2022 11:43 pm

You must make sure that your client pushes a password.

Post Reply