I'm having big troubles to make this working on iOS, whereas it works from windows. I tested from iPhone 5 (not S, I saw there was a bug) and iPad 4, same issue: kind of infinite loop between "connecting" and "waiting for server" every second until timeout (60s). The same client config is working fine in OpenVPNGUI for Windows.
onnect.ios 1.0.4-140
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
2014-05-02 15:55:01 TCP recv EOF
2014-05-02 15:55:01 Transport Error: Transport error on 'mydomain: NETWORK_EOF_ERROR
2014-05-02 15:55:01 Client terminated, restarting in 2...
2014-05-02 15:55:03 EVENT: RECONNECTING
2014-05-02 15:55:03 LZO-ASYM init swap=0 asym=0
2014-05-02 15:55:03 EVENT: RESOLVE
2014-05-02 15:55:03 Contacting myIP:1194 via TCP
2014-05-02 15:55:03 EVENT: WAIT
2014-05-02 15:55:03 Connecting to mydomain:1194 (myIP) via TCPv4
2014-05-02 15:55:03 EVENT: CONNECTING
2014-05-02 15:55:03 Tunnel Options:V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client
2014-05-02 15:55:03 Creds: Username/Password
2014-05-02 15:55:03 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.4-140
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2014-05-02 15:55:03 TCP recv EOF
2014-05-02 15:55:03 Transport Error: Transport error on 'mydomain: NETWORK_EOF_ERROR
2014-05-02 15:55:03 Client terminated, restarting in 2...
2014-05-02 15:55:05 EVENT: RECONNECTING
2014-05-02 15:55:05 LZO-ASYM init swap=0 asym=0
2014-05-02 15:55:05 EVENT: RESOLVE
2014-05-02 15:55:05 Contacting myIP:1194 via TCP
2014-05-02 15:55:05 EVENT: WAIT
2014-05-02 15:55:05 Connecting to mydomain:1194 (myIP) via TCPv4
2014-05-02 15:55:05 EVENT: CONNECTING
2014-05-02 15:55:06 Tunnel Options:V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client
2014-05-02 15:55:06 Creds: Username/Password
2014-05-02 15:55:06 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.4-140
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2014-05-02 15:55:06 TCP recv EOF
2014-05-02 15:55:06 Transport Error: Transport error on 'mydomain: NETWORK_EOF_ERROR
2014-05-02 15:55:06 Client terminated, restarting in 2...
2014-05-02 15:55:06 EVENT: CONNECTION_TIMEOUT [ERR]
2014-05-02 15:55:06 EVENT: DISCONNECTED
2014-05-02 15:55:06 Raw stats on disconnect:
BYTES_IN : 1872
BYTES_OUT : 3216
PACKETS_IN : 86
PACKETS_OUT : 72
NETWORK_EOF_ERROR : 24
CONNECTION_TIMEOUT : 1
N_RECONNECT : 23
2014-05-02 15:55:06 Performance stats on disconnect:
CPU usage (microseconds): 337140
Network bytes per CPU second: 15091
Tunnel bytes per CPU second: 0
2014-05-02 15:55:06 ----- OpenVPN Stop -----
2014-05-02 15:55:06 EVENT: DISCONNECT_PENDING
Etc etc looping on that…
On the server side I have only:
Here is my configuration :TCP connection established from myIP
My IP : disconnected <TLS failed>
client
auth-user-pass
dev tun0
proto tcp-client
remote myIP 1194
cipher AES-256-CBC
auth SHA1
redirect-gateway
route 10.42.0.0 255.255.255.0 10.42.1.254
route 192.168.1.0 255.255.255.0 10.42.1.254
push "dhcp-option DOMAIN mydomain"
push "dhcp-option DOMAIN-SEARCH mydomain"
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
I tried with separate files for certs/keys, same issue.
Here is the logs on the working windows client :
I have tried since 4 days many different certificates, client side, server side, different client conf, always the same issue right at the beginning of the conf during TLS negotiation, I’m now out of ideas…Fri May 02 15:49:01 2014 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Fri May 02 15:49:06 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri May 02 15:49:06 2014 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri May 02 15:49:06 2014 LZO compression initialized
Fri May 02 15:49:08 2014 Attempting to establish TCP connection with myIP:1194
Fri May 02 15:49:08 2014 TCP connection established with myIP:1194
Fri May 02 15:49:08 2014 TCPv4_CLIENT link local: [undef]
Fri May 02 15:49:08 2014 TCPv4_CLIENT link remote: myIP:1194
Fri May 02 15:49:08 2014 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Fri May 02 15:49:09 2014 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1560', remote='link-mtu 1559'
Fri May 02 15:49:09 2014 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Fri May 02 15:49:09 2014 [mydomain] Peer Connection Initiated with myIP:1194
Fri May 02 15:49:22 2014 TAP-WIN32 device [Local Area Connection 5] opened: \\.\Global\{F49D6D85-7B05-4117-9EDC-1E70E01626A8}.tap
Fri May 02 15:49:22 2014 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.42.1.253/255.255.255.252 on interface {F49D6D85-7B05-4117-9EDC-1E70E01626A8} [DHCP-serv: 10.42.1.254, lease-time: 31536000]
Fri May 02 15:49:22 2014 Successful ARP Flush on interface [23] {F49D6D85-7B05-4117-9EDC-1E70E01626A8}
Fri May 02 15:49:27 2014 Initialization Sequence Completed
Hope you can help guys,
Thanks a lot in advance,
Best regards,