Android connection via OpenVPN for Android

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
AG197843
Posts: 5
Joined: Thu Jul 21, 2022 10:52 pm

Android connection via OpenVPN for Android

Post by AG197843 » Thu Jul 21, 2022 11:33 pm

Hi,
I'm currently running Android 5.1 + with a OpenVPN for Android client. Every time I try to connect it comes back with : auth-failure.
I'm authorizing with Certificates as this is deafult option in the .ovpn file when downloading and importing it into the OpenVPN client.
I did try to authorize with Username/Password with no luck at all.

Any help would be greatly appreciated.

solo
Posts: 527
Joined: Sun Feb 14, 2021 10:31 am

Re: Android connection via OpenVPN for Android

Post by solo » Fri Jul 22, 2022 4:51 am

Are you connecting to your own SE server or VPN Gate?
Logs from your phone?

AG197843
Posts: 5
Joined: Thu Jul 21, 2022 10:52 pm

Re: Android connection via OpenVPN for Android

Post by AG197843 » Fri Jul 22, 2022 6:22 am

Connecting to VPN Gate server.
Which logs do you need?

Thanks in advance.

solo
Posts: 527
Joined: Sun Feb 14, 2021 10:31 am

Re: Android connection via OpenVPN for Android

Post by solo » Fri Jul 22, 2022 6:42 am

OpenVPN for Android... logs from your phone.

Also, have you followed the guide precisely? https://www.vpngate.net/en/howto_openvpn.aspx#android

How many servers have you tried? https://www.vpngate.net/en/

sky59
Posts: 477
Joined: Tue Sep 11, 2018 5:58 pm

Re: Android connection via OpenVPN for Android

Post by sky59 » Fri Jul 22, 2022 6:49 am

AG197843 wrote:
Thu Jul 21, 2022 11:33 pm
Hi,
I'm currently running Android 5.1 + with a OpenVPN for Android client. Every time I try to connect it comes back with : auth-failure.
I'm authorizing with Certificates as this is deafult option in the .ovpn file when downloading and importing it into the OpenVPN client.
I did try to authorize with Username/Password with no luck at all.

Any help would be greatly appreciated.
Does the network you try to connect to have also DHCP server?
I have experience that OpenVPN is designed in a stupid way, so there must be the DHCP server to provide IP address otherwise it does not connect!!!

AG197843
Posts: 5
Joined: Thu Jul 21, 2022 10:52 pm

Re: Android connection via OpenVPN for Android

Post by AG197843 » Fri Jul 22, 2022 7:15 am

I am not using OpenVPN Connect.
I am using OpenVPN for Android.
When using the same program on my daily I am forced to enter the user and password for any VPN Gate profile and it works perfectly.

The current log at least with this particular VPN Gate server as follows:

2022-07-22 14:50:31 F-Droid built and signed version 0.7.37 running on ZTE ZTE BLADE L0510 (w192_zte_Country), Android 5.1 (LMY47I) API 22, ABI armeabi-v7a, (ZTE/P680A20_ASIA_CHANNEL/P680A20:5.1/LMY47I/20160405.135201:user/release-keys)
2022-07-22 14:50:32 Building configuration…
2022-07-22 14:50:33 Network Status: CONNECTED HSPA+ to MOBILE internet.***.**
2022-07-22 14:50:33 Debug state info: CONNECTED HSPA+ to MOBILE internet.***.**, pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED
2022-07-22 14:50:33 Debug state info: CONNECTED HSPA+ to MOBILE internet.***.**, pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED
2022-07-22 14:50:33 OpenVPN core 3.8_git:master(icsopenvpn/v0.7.35-0-g6274c08e) android armv7a thumb2 32-bit
2022-07-22 14:50:33 Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
2022-07-22 14:50:33 OpenVPN core 3.8_git:master(icsopenvpn/v0.7.35-0-g6274c08e) android armv7a thumb2 32-bit
2022-07-22 14:50:33 Frame=512/2048/512 mssfix-ctrl=1250
2022-07-22 14:50:33 UNUSED OPTIONS
1 [verb] [4]
2 [connect-retry] [2] [300]
3 [resolv-retry] [60]
9 [nobind]
12 [persist-tun]
13 [preresolve]
14 [resolv-retry] [infinite]
2022-07-22 14:50:33 Contacting 139.180.147.96:1194 via UDP
2022-07-22 14:50:33 Connecting to [139.180.147.96]:1194 (139.180.147.96) via UDPv4
2022-07-22 14:50:34 Tunnel Options:V4,dev-type tun,link-mtu 1557,tun-mtu 1500,proto UDPv4,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2022-07-22 14:50:34 Creds: UsernameEmpty/PasswordEmpty
2022-07-22 14:50:34 Peer Info:
IV_VER=3.8_git:master
IV_PLAT=android
IV_NCP=2
IV_TCPNL=1
IV_PROTO=30
IV_CIPHERS=AES-128-GCM:AES-192-GCM:AES-256-GCM:CHACHA20-POLY1305
IV_AUTO_SESS=1
IV_GUI_VER=de.blinkt.openvpn 0.7.37
IV_SSO=openurl,webauth,crtext
2022-07-22 14:50:34 VERIFY OK: depth=2, /C=US/ST=New Jersey/L=Jersey City/O=The USERTRUST Network/CN=USERTrust RSA Certification Authority, signature: RSA-SHA384
2022-07-22 14:50:34 VERIFY OK: depth=1, /C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Domain Validation Secure Server CA, signature: RSA-SHA384
2022-07-22 14:50:34 VERIFY OK: depth=0, /CN=*.opengw.net, signature: RSA-SHA256
2022-07-22 14:50:35 SSL Handshake: peer certificate: CN=*.opengw.net, 2048 bit RSA, cipher: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD
2022-07-22 14:50:35 Session is ACTIVE
2022-07-22 14:50:35 Sending PUSH_REQUEST to server...
2022-07-22 14:50:36 AUTH_FAILED
2022-07-22 14:50:36 EVENT(Error): AUTH_FAILED:

AG197843
Posts: 5
Joined: Thu Jul 21, 2022 10:52 pm

Re: Android connection via OpenVPN for Android

Post by AG197843 » Fri Jul 22, 2022 7:24 am

I have tried at least five servers so far no luck.
However if I plug in the same VPN Gate server into my machine using OpenVPN I do get a user and password below the certificates line.
I fill those in and voila it is off and running.
Complete log will be posted shortly.

solo
Posts: 527
Joined: Sun Feb 14, 2021 10:31 am

Re: Android connection via OpenVPN for Android

Post by solo » Fri Jul 22, 2022 7:43 am

Usually AUTH_FAILED after PUSH_REQUEST means no DHCP and has nothing to do with authentication, like sky59 said, but here it appears to be a compatibility issue with your ancient version of Android. I note that VPN Gate recommended OpenVPN Connect does support Android 5.1- why not try it?

BTW, L2TP/IPsec VPN Client already bundled with Android is also an option for VPN Gate.

AG197843
Posts: 5
Joined: Thu Jul 21, 2022 10:52 pm

Re: Android connection via OpenVPN for Android

Post by AG197843 » Fri Jul 22, 2022 9:05 am

Yeah... It is ancient.
I tried the server 139.180.147.96 and it still giving me the same error.
My guess something is wrong with configuration of the server.
The rest of servers seem to be working just fine under OpenVPN Connect.
FYI it is not the same publisher as OpenVPN for Android compiled under F-Droid.

Thank you for your help. Appreciate timely response.

Thread closed. Problem solved.

Kudos to everybody.

Post Reply