What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Asus rt-ac68u OpenVPN not connecting with iPhone

levyrj

New Around Here
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

Exported OpenVPN config file -> OK
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
 
This is your probelm: TLS Error: TLS handshake failed
Check "Extra HMAC Authorization (tls-auth)" have right settings.
Usually server have "0" and clients have "1"
Then must have same "Static Key" on both ends.
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top