Connection Timeout using iOS App

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
filovirus
OpenVpn Newbie
Posts: 3
Joined: Sat Sep 26, 2015 4:02 pm

Connection Timeout using iOS App

Post by filovirus » Sat Sep 26, 2015 4:11 pm

I am hoping someone can guide me in connecting to my NAS OpenVPN server that is listening on UDP 1194. I can connect to the server on the LAN using Viscosity on an Mac. I keep getting Connection Timeout using the iOS App.

Here is my config file and connection log. It times out both on Wifi and on the Verizon cellular connection. My router has port 1194 forwarded on UDP to the appropriate NIC on my NAS.

Thank you very much.

OpenVPN Config

Code: Select all

client
dev tun
script-security 3
proto udp
remote  XXXXXXXX.myqnapcloud.com  1194
resolv-retry infinite
nobind
ca ca.crt
auth-user-pass
reneg-sec 3600
cipher AES-128-CBC
tls-cipher RSA+AES128:RSA+AES256:RSA+3DES:!MD5
comp-lzo
OpenVPN Config file from iOS

Code: Select all

2015-09-26 10:00:06 LZO-ASYM init swap=0 asym=0
2015-09-26 10:00:06 EVENT: RESOLVE
2015-09-26 10:00:06 Contacting 73.229.248.165:1194 via UDP
2015-09-26 10:00:06 EVENT: WAIT
2015-09-26 10:00:06 SetTunnelSocket returned 1
2015-09-26 10:00:06 Connecting to XXXXXXXX.myqnapcloud.com:1194 (73.229.XXX.XXX) via UDPv4
2015-09-26 10:00:06 EVENT: CONNECTING
2015-09-26 10:00:06 Tunnel Options:V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2015-09-26 10:00:06 Creds: Username/Password
2015-09-26 10:00:06 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.5-177
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1

2015-09-26 10:00:07 NET Internet:ReachableViaWiFi/-R -------
2015-09-26 10:00:07 NET WiFi:ReachableViaWiFi/-R ------d
2015-09-26 10:00:46 Session invalidated: KEEPALIVE_TIMEOUT
2015-09-26 10:00:46 Client terminated, restarting in 2...
2015-09-26 10:00:48 EVENT: RECONNECTING
2015-09-26 10:00:48 LZO-ASYM init swap=0 asym=0
2015-09-26 10:00:48 EVENT: RESOLVE
2015-09-26 10:00:49 Contacting 73.229.XXX.XXX:1194 via UDP
2015-09-26 10:00:49 EVENT: WAIT
2015-09-26 10:00:49 SetTunnelSocket returned 1
2015-09-26 10:00:49 Connecting to XXXXXXXXXX.myqnapcloud.com:1194 (73.229.XXX.XXX) via UDPv4
2015-09-26 10:00:49 EVENT: CONNECTING
2015-09-26 10:00:49 Tunnel Options:V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2015-09-26 10:00:49 Creds: Username/Password
2015-09-26 10:00:49 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.5-177
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1

2015-09-26 10:01:06 EVENT: CONNECTION_TIMEOUT [ERR]
2015-09-26 10:01:06 EVENT: DISCONNECTED
2015-09-26 10:01:06 Raw stats on disconnect:
 BYTES_IN : 96
 BYTES_OUT : 2720
 PACKETS_IN : 4
 PACKETS_OUT : 34
 KEEPALIVE_TIMEOUT : 1
 CONNECTION_TIMEOUT : 1
 N_RECONNECT : 1
2015-09-26 10:01:06 Performance stats on disconnect:
 CPU usage (microseconds): 27967
 Network bytes per CPU second: 100690
 Tunnel bytes per CPU second: 0
2015-09-26 10:01:06 EVENT: DISCONNECT_PENDING
2015-09-26 10:01:06 ----- OpenVPN Stop -----

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Connection Timeout using iOS App

Post by Traffic » Mon Sep 28, 2015 11:12 am

Please post your server config and server log while trying to connect from iOS.

Removing this from your client config may help:

Code: Select all

tls-cipher RSA+AES128:RSA+AES256:RSA+3DES:!MD5

filovirus
OpenVpn Newbie
Posts: 3
Joined: Sat Sep 26, 2015 4:02 pm

Re: Connection Timeout using iOS App

Post by filovirus » Mon Sep 28, 2015 4:51 pm

Here is server.conf

Code: Select all

port 1194
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/myserver.crt
key /etc/openvpn/keys/myserver.key
auth-user-pass-verify /usr/sbin/vpn_check_account via-env
client-cert-not-required
username-as-common-name
no-name-remapping
dh /etc/openvpn/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.1.1"
client-to-client
duplicate-cn
keepalive 10 60
reneg-sec 0
cipher AES-128-CBC
tls-cipher RSA+AES128:RSA+AES256:RSA+3DES:!MD5
comp-lzo
max-clients 5
client-connect /etc/openvpn/connect.sh
client-disconnect /etc/openvpn/disconnect.sh
management localhost 7505
persist-key
persist-tun
status /var/log/openvpn-status.log
#log /tmp/openvpn.log
verb 3
Would the server log be located in /var/log? I found an openvpn-status.log file there. Not sure where else to look.

Thank you very much.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Connection Timeout using iOS App

Post by Traffic » Tue Sep 29, 2015 10:57 am

filovirus wrote:Would the server log be located in /var/log?
filovirus wrote:status /var/log/openvpn-status.log
#log /tmp/openvpn.log
probably ... 8-)

dark2009
OpenVpn Newbie
Posts: 1
Joined: Tue Sep 29, 2015 8:52 pm

Re: Connection Timeout using iOS App

Post by dark2009 » Tue Sep 29, 2015 8:56 pm

I have exactly the same problem....
It works perfectly with my computer, but with my ipad it doesn't work.
Connection "time out" too !!!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Connection Timeout using iOS App

Post by maikcat » Wed Sep 30, 2015 9:24 am

Traffic wrote:
filovirus wrote:Would the server log be located in /var/log?
filovirus wrote:status /var/log/openvpn-status.log
#log /tmp/openvpn.log
probably ... 8-)

you do need to uncomment it first though.... ;)

Michael.

Post Reply