Unable to connect through "SETTINGS", only through "OpenVPN Connect"

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
balkis
OpenVpn Newbie
Posts: 1
Joined: Mon Jan 16, 2017 8:12 pm

Unable to connect through "SETTINGS", only through "OpenVPN Connect"

Post by balkis » Mon Jan 16, 2017 8:26 pm

Hey,

I have just noticed that I am unable to connect to my VPN server using native SETTINGS application on an iPhone:
ImageImage

It stays in "Connecting..." state for a while and then time-outs. If I use "OpenVPN Connect" application, I am able to connect without any problems.

"OpenVPN Connect" logs are below:

Code: Select all

2017-01-16 22:03:03 ----- OpenVPN Start -----
OpenVPN core 3.0.11 ios arm64 64-bit built on Apr 15 2016 14:13:50
2017-01-16 22:03:03 Frame=512/2048/512 mssfix-ctrl=1250
2017-01-16 22:03:03 UNUSED OPTIONS
2 [topology] [subnet] 
5 [resolv-retry] [infinite] 
6 [nobind] 
7 [persist-key] 
8 [persist-tun] 
9 [verb] [6] 

2017-01-16 22:03:03 EVENT: RESOLVE
2017-01-16 22:03:03 Contacting 78.61.XX.YY:1194 via TCP
2017-01-16 22:03:03 EVENT: WAIT
2017-01-16 22:03:03 SetTunnelSocket returned 1
2017-01-16 22:03:03 Connecting to [78.61.XX.YY]:1194 (78.61.XX.YY) via TCPv4
2017-01-16 22:03:03 EVENT: CONNECTING
2017-01-16 22:03:03 Tunnel Options:V4,dev-type tun,link-mtu 1559,tun-mtu 1500,proto TCPv4_CLIENT,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client
2017-01-16 22:03:03 Creds: UsernameEmpty/PasswordEmpty
2017-01-16 22:03:03 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.7-199
IV_VER=3.0.11
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2

2017-01-16 22:03:03 NET Internet:ReachableViaWWAN/WR t------
2017-01-16 22:03:03 NET WiFi:NotReachable/WR t------
2017-01-16 22:03:04 VERIFY OK: depth=1
cert. version    : 3
serial number    : 42:94:EA:E5:F8:4D:40:F0
issuer name      : CN=MikrotikCA
subject name      : CN=MikrotikCA
issued  on        : 2016-12-30 20:54:14
expires on        : 2017-12-30 20:54:14
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true
key usage        : Key Cert Sign, CRL Sign

2017-01-16 22:03:04 VERIFY OK: depth=0
cert. version    : 3
serial number    : 2B:98:E1:8E:4E:86:55:D7
issuer name      : CN=MikrotikCA
subject name      : CN=OVPN-Server
issued  on        : 2016-12-30 20:57:45
expires on        : 2017-12-30 20:57:45
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true
key usage        : Digital Signature, Key Encipherment, Data Encipherment, Key Cert Sign, CRL Sign
ext key usage    : TLS Web Server Authentication, TLS Web Client Authentication

2017-01-16 22:03:45 Session invalidated: KEEPALIVE_TIMEOUT
2017-01-16 22:03:45 Client terminated, restarting in 2...
2017-01-16 22:03:47 EVENT: RECONNECTING
2017-01-16 22:03:47 EVENT: RESOLVE
2017-01-16 22:03:47 Contacting 78.61.XX.YY:1194 via TCP
2017-01-16 22:03:47 EVENT: WAIT
2017-01-16 22:03:47 SetTunnelSocket returned 1
2017-01-16 22:03:47 Connecting to [78.61.XX.YY]:1194 (78.61.XX.YY) via TCPv4
2017-01-16 22:03:47 EVENT: CONNECTING
2017-01-16 22:03:47 Tunnel Options:V4,dev-type tun,link-mtu 1559,tun-mtu 1500,proto TCPv4_CLIENT,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client
2017-01-16 22:03:47 Creds: UsernameEmpty/PasswordEmpty
2017-01-16 22:03:47 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.7-199
IV_VER=3.0.11
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2

2017-01-16 22:03:48 VERIFY OK: depth=1
cert. version    : 3
serial number    : 42:94:EA:E5:F8:4D:40:F0
issuer name      : CN=MikrotikCA
subject name      : CN=MikrotikCA
issued  on        : 2016-12-30 20:54:14
expires on        : 2017-12-30 20:54:14
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true
key usage        : Key Cert Sign, CRL Sign

2017-01-16 22:03:48 VERIFY OK: depth=0
cert. version    : 3
serial number    : 2B:98:E1:8E:4E:86:55:D7
issuer name      : CN=MikrotikCA
subject name      : CN=OVPN-Server
issued  on        : 2016-12-30 20:57:45
expires on        : 2017-12-30 20:57:45
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true
key usage        : Digital Signature, Key Encipherment, Data Encipherment, Key Cert Sign, CRL Sign
ext key usage    : TLS Web Server Authentication, TLS Web Client Authentication

2017-01-16 22:04:03 EVENT: CONNECTION_TIMEOUT [ERR]
2017-01-16 22:04:03 EVENT: DISCONNECTED
2017-01-16 22:04:03 Raw stats on disconnect:
 BYTES_IN : 5668
 BYTES_OUT : 2004
 PACKETS_IN : 18
 PACKETS_OUT : 12
 KEEPALIVE_TIMEOUT : 1
 CONNECTION_TIMEOUT : 1
 N_RECONNECT : 1
2017-01-16 22:04:03 Performance stats on disconnect:
 CPU usage (microseconds): 265350
 Network bytes per CPU second: 28912
 Tunnel bytes per CPU second: 0
2017-01-16 22:04:03 EVENT: DISCONNECT_PENDING
2017-01-16 22:04:03 ----- OpenVPN Stop -----
Server side also says nothing:
Image

tagyoureit
OpenVpn Newbie
Posts: 3
Joined: Thu Jan 12, 2017 10:19 pm

Re: Unable to connect through "SETTINGS", only through "OpenVPN Connect"

Post by tagyoureit » Fri Feb 03, 2017 7:44 pm

I'm having the same problem and posted it a few weeks ago. Still having the problem with the new update. Can't believe more people aren't running into this. Seems to me it is not passing the username/password when invoked through "Settings".

Very frustrating as it prevents iOS from automatically connecting most of the time. :-(

ForthRightAfter
OpenVpn Newbie
Posts: 1
Joined: Wed Feb 15, 2017 12:32 am

Re: Unable to connect through "SETTINGS", only through "OpenVPN Connect"

Post by ForthRightAfter » Wed Feb 15, 2017 12:35 am

Im getting a similar Problem, if I try and connect via iOS settings Toggle, it'll hang. if i Check the connection log through the OPENVPN app i see that I'm getting a Transport Error/ Network_EOF_Error, came on here to see if anyone else was having a similar issue. I've test this on iPhone 7+ 10.3/ iPhone 6S+ 10.2.1 and there both having the same issue.

0livier
OpenVpn Newbie
Posts: 1
Joined: Thu Feb 23, 2017 9:29 pm

Re: Unable to connect through "SETTINGS", only through "OpenVPN Connect"

Post by 0livier » Thu Feb 23, 2017 9:30 pm

+1

Work using openvpn app, not from iOS settings.

tagyoureit
OpenVpn Newbie
Posts: 3
Joined: Thu Jan 12, 2017 10:19 pm

Re: Unable to connect through "SETTINGS", only through "OpenVPN Connect"

Post by tagyoureit » Fri Mar 10, 2017 4:40 am

I saw this on the OpenVPN FAQ https://docs.openvpn.net/docs/openvpn-c ... s-faq.html, and wondering if this has anything to do with the issue at hand? I am using credentials.
Q: Can OpenVPN profiles be connected from the Settings App?

A: Yes, starting with iOS 8. Note that only autologin profiles (i.e. profiles that don't require credential entry) can be launched using this mechanism.

JudGer
OpenVpn Newbie
Posts: 1
Joined: Sun Jun 25, 2017 9:23 am

Re: Unable to connect through "SETTINGS", only through "OpenVPN Connect"

Post by JudGer » Sun Jun 25, 2017 9:27 am

Hi, anyone who made it? Having the same problem. Asking myself what "autologin profiles" means in this context. Credentials are saved in the App. For me it seems to ignore the "Force aes-cbc ciphersuite" setting. Getting timeout error instead of wrong login.

Post Reply