OpenVPN connects from Macbook but not iPhone

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
rlevy
OpenVpn Newbie
Posts: 2
Joined: Mon Nov 14, 2016 11:52 pm

OpenVPN connects from Macbook but not iPhone

Post by rlevy » Fri Dec 30, 2016 3:35 am

I am able to connect to my VPN server via my macbook but not my iphone.
Here is my setup:
Asus RT-AC68U configured as an OpenVPN server
(instructions: https://www.asus.com/support/FAQ/1008713)

Exported OpenVPN config file
Imported OpenVPN config file on Macbook -> using Viscosity vpn client -> SUCCESSFULLY connects
Imported *same* OpenVPN config file on iPhone 6s ios 10.2 -> config file imports but connection FAILS (timesout)

Error log from Asus when trying to connect from iPhone:

Dec 29 22:24:30 openvpn[696]: xxx.xxx.x.xx:63069 TLS: Initial packet from [AF_INET]xxx.xxx.x.xx:63069, sid=817be338 bbee2455
Dec 29 22:24:39 openvpn[696]: xxx.xxx.x.xx:52989 TLS: Initial packet from [AF_INET]xxx.xxx.x.xx:52989, sid=733eeeb0 58b90e0c
Dec 29 22:24:49 openvpn[696]: xxx.xxx.x.xx:51769 TLS: Initial packet from [AF_INET]xxx.xxx.x.xx:51769, sid=3ae4ae5e 67cca276
Dec 29 22:24:59 openvpn[696]: xxx.xxx.x.xx:54646 TLS: Initial packet from [AF_INET]xxx.xxx.x.xx:54646, sid=2f316130 a95dd438
Dec 29 22:25:09 openvpn[696]: xxx.xxx.x.xx:60427 TLS: Initial packet from [AF_INET]xxx.xxx.x.xx:60427, sid=cbc7ccca d247f00a
Dec 29 22:25:19 openvpn[696]: xxx.xxx.x.xx:64895 TLS: Initial packet from [AF_INET]xxx.xxx.x.xx:64895, sid=074ac571 b6e71a7d
Dec 29 22:25:30 openvpn[696]: xxx.xxx.x.xx:63069 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Dec 29 22:25:30 openvpn[696]: xxx.xxx.x.xx:63069 TLS Error: TLS handshake failed
Dec 29 22:25:30 openvpn[696]: xxx.xxx.x.xx:63069 SIGUSR1[soft,tls-error] received, client-instance restarting
Dec 29 22:25:39 openvpn[696]: xxx.xxx.x.xx:52989 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Dec 29 22:25:39 openvpn[696]: xxx.xxx.x.xx:52989 TLS Error: TLS handshake failed
Dec 29 22:25:39 openvpn[696]: xxx.xxx.x.xx:52989 SIGUSR1[soft,tls-error] received, client-instance restarting

Error log from OpenVPN client on iphone:

2016-12-29 22:24:29 ----- OpenVPN Start -----
OpenVPN core 3.0.11 ios arm64 64-bit built on Apr 15 2016 14:13:50
2016-12-29 22:24:29 Frame=512/2048/512 mssfix-ctrl=1250
2016-12-29 22:24:29 UNUSED OPTIONS
12 [resolv-retry] [infinite]
13 [nobind]
2016-12-29 22:24:29 EVENT: RESOLVE
2016-12-29 22:24:30 NET WiFi:ReachableViaWiFi/-R t-----d
2016-12-29 22:24:30 NET Internet:ReachableViaWiFi/-R t------
2016-12-29 22:24:30 Contacting xxx.xx.xxx.xxx:1194 via UDP
2016-12-29 22:24:30 EVENT: WAIT
2016-12-29 22:24:30 SetTunnelSocket returned 1
2016-12-29 22:24:30 Connecting to [xxxxxxx.asuscomm.com]:1194 (xxx.xx.xxx.xxx) via UDPv4
2016-12-29 22:24:40 Server poll timeout, trying next remote entry...
2016-12-29 22:24:40 EVENT: RECONNECTING
2016-12-29 22:24:40 EVENT: RESOLVE
2016-12-29 22:24:40 Contacting xxx.xx.xxx.xxx:1194 via UDP
2016-12-29 22:24:40 EVENT: WAIT
2016-12-29 22:24:40 SetTunnelSocket returned 1
2016-12-29 22:24:40 Connecting to [xxxxxxx.asuscomm.com]:1194 (xxx.xx.xxx.xxx) via UDPv4
2016-12-29 22:24:50 Server poll timeout, trying next remote entry...
2016-12-29 22:24:50 EVENT: RECONNECTING
2016-12-29 22:24:50 EVENT: RESOLVE
2016-12-29 22:24:50 Contacting xxx.xx.xxx.xxx:1194 via UDP
2016-12-29 22:24:50 EVENT: WAIT
2016-12-29 22:24:50 SetTunnelSocket returned 1
2016-12-29 22:24:50 Connecting to [xxxxxxx.asuscomm.com]:1194 (xxx.xx.xxx.xxx) via UDPv4
2016-12-29 22:25:00 Server poll timeout, trying next remote entry...
2016-12-29 22:25:00 EVENT: RECONNECTING
2016-12-29 22:25:00 EVENT: RESOLVE
... ETC...
2016-12-29 22:25:30 EVENT: CONNECTION_TIMEOUT [ERR]
2016-12-29 22:25:30 EVENT: DISCONNECTED

Dfuerpo
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 23, 2016 3:59 pm

Re: OpenVPN connects from Macbook but not iPhone

Post by Dfuerpo » Mon Jun 19, 2017 5:53 pm

Did you ever find a solution? I'm having the same problem.

arankaspar
OpenVpn Newbie
Posts: 2
Joined: Wed Oct 03, 2018 2:00 pm

Re: OpenVPN connects from Macbook but not iPhone

Post by arankaspar » Wed Oct 03, 2018 2:01 pm

How did you resolve this?

I'm having a similar issue. Can connect on iOS only on wifi, not LAN.

2018-50-03 06:50:58 EVENT: CONNECTION_TIMEOUT [ERR]

2018-50-03 06:50:58 Raw stats on disconnect:
BYTES_OUT : 860
PACKETS_OUT : 10
CONNECTION_TIMEOUT : 1
N_RECONNECT : 1

2018-50-03 06:50:58 Performance stats on disconnect:
CPU usage (microseconds): 58097
Network bytes per CPU second: 14802
Tunnel bytes per CPU second: 0

2018-50-03 06:50:58 EVENT: DISCONNECTED

2018-50-03 06:50:58 Raw stats on disconnect:
BYTES_OUT : 860
PACKETS_OUT : 10
CONNECTION_TIMEOUT : 1
N_RECONNECT : 1

Post Reply