iPad OpenVPN connection timeout
Posted: Sat Dec 28, 2013 1:19 pm
Hello,
I have the following configuration (some commands are commented out because I get "UNUSED OPTIONS" in the log). This works under PC (Win 7) fine. I load this to my iPad through iTunes OK. But, when I run it, I get connection timeout error after one minute. I tried TCP connection with the same result. Below is the log. What is wrong?
client
dev tun
proto udp
remote xxxxx 1195
;resolv-retry infinite
;nobind
;persist-key
;persist-tun
ns-cert-type server
;route-method exe
;route-delay 2
;ca ca.crt
;cert client4.crt
;key client4.key
;tls-client
;tls-auth ta.key 1
cipher BF-CBC
comp-lzo
;verb 3
reneg-sec 3600
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
--
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-auth>
</tls-auth>
Log file:
2013-12-28 08:01:31 ----- OpenVPN Start (iOS 32-bit) -----
2013-12-28 08:01:31 LZO-ASYM init swap=0 asym=0
2013-12-28 08:01:31 EVENT: RESOLVE
2013-12-28 08:01:31 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:01:31 EVENT: WAIT
2013-12-28 08:01:31 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:01:41 Server poll timeout, trying next remote entry...
2013-12-28 08:01:41 EVENT: RECONNECTING
2013-12-28 08:01:41 LZO-ASYM init swap=0 asym=0
2013-12-28 08:01:41 EVENT: RESOLVE
2013-12-28 08:01:41 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:01:41 EVENT: WAIT
2013-12-28 08:01:41 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:01:51 Server poll timeout, trying next remote entry...
2013-12-28 08:01:51 EVENT: RECONNECTING
2013-12-28 08:01:51 LZO-ASYM init swap=0 asym=0
2013-12-28 08:01:51 EVENT: RESOLVE
2013-12-28 08:01:51 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:01:51 EVENT: WAIT
2013-12-28 08:01:51 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:01 Server poll timeout, trying next remote entry...
2013-12-28 08:02:01 EVENT: RECONNECTING
2013-12-28 08:02:01 LZO-ASYM init swap=0 asym=0
2013-12-28 08:02:01 EVENT: RESOLVE
2013-12-28 08:02:01 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:02:01 EVENT: WAIT
2013-12-28 08:02:01 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:11 Server poll timeout, trying next remote entry...
2013-12-28 08:02:11 EVENT: RECONNECTING
2013-12-28 08:02:11 LZO-ASYM init swap=0 asym=0
2013-12-28 08:02:11 EVENT: RESOLVE
2013-12-28 08:02:11 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:02:11 EVENT: WAIT
2013-12-28 08:02:11 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:21 Server poll timeout, trying next remote entry...
2013-12-28 08:02:21 EVENT: RECONNECTING
2013-12-28 08:02:21 LZO-ASYM init swap=0 asym=0
2013-12-28 08:02:21 EVENT: RESOLVE
2013-12-28 08:02:21 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:02:21 EVENT: WAIT
2013-12-28 08:02:21 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:31 EVENT: CONNECTION_TIMEOUT [ERR]
2013-12-28 08:02:31 EVENT: DISCONNECTED
2013-12-28 08:02:31 Raw stats on disconnect:
BYTES_OUT : 1260
PACKETS_OUT : 30
CONNECTION_TIMEOUT : 1
N_RECONNECT : 5
2013-12-28 08:02:31 Performance stats on disconnect:
CPU usage (microseconds): 85815
Network bytes per CPU second: 14682
Tunnel bytes per CPU second: 0
2013-12-28 08:02:31 ----- OpenVPN Stop -----
2013-12-28 08:02:31 EVENT: DISCONNECT_PENDING
I have the following configuration (some commands are commented out because I get "UNUSED OPTIONS" in the log). This works under PC (Win 7) fine. I load this to my iPad through iTunes OK. But, when I run it, I get connection timeout error after one minute. I tried TCP connection with the same result. Below is the log. What is wrong?
client
dev tun
proto udp
remote xxxxx 1195
;resolv-retry infinite
;nobind
;persist-key
;persist-tun
ns-cert-type server
;route-method exe
;route-delay 2
;ca ca.crt
;cert client4.crt
;key client4.key
;tls-client
;tls-auth ta.key 1
cipher BF-CBC
comp-lzo
;verb 3
reneg-sec 3600
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
--
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-auth>
</tls-auth>
Log file:
2013-12-28 08:01:31 ----- OpenVPN Start (iOS 32-bit) -----
2013-12-28 08:01:31 LZO-ASYM init swap=0 asym=0
2013-12-28 08:01:31 EVENT: RESOLVE
2013-12-28 08:01:31 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:01:31 EVENT: WAIT
2013-12-28 08:01:31 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:01:41 Server poll timeout, trying next remote entry...
2013-12-28 08:01:41 EVENT: RECONNECTING
2013-12-28 08:01:41 LZO-ASYM init swap=0 asym=0
2013-12-28 08:01:41 EVENT: RESOLVE
2013-12-28 08:01:41 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:01:41 EVENT: WAIT
2013-12-28 08:01:41 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:01:51 Server poll timeout, trying next remote entry...
2013-12-28 08:01:51 EVENT: RECONNECTING
2013-12-28 08:01:51 LZO-ASYM init swap=0 asym=0
2013-12-28 08:01:51 EVENT: RESOLVE
2013-12-28 08:01:51 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:01:51 EVENT: WAIT
2013-12-28 08:01:51 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:01 Server poll timeout, trying next remote entry...
2013-12-28 08:02:01 EVENT: RECONNECTING
2013-12-28 08:02:01 LZO-ASYM init swap=0 asym=0
2013-12-28 08:02:01 EVENT: RESOLVE
2013-12-28 08:02:01 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:02:01 EVENT: WAIT
2013-12-28 08:02:01 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:11 Server poll timeout, trying next remote entry...
2013-12-28 08:02:11 EVENT: RECONNECTING
2013-12-28 08:02:11 LZO-ASYM init swap=0 asym=0
2013-12-28 08:02:11 EVENT: RESOLVE
2013-12-28 08:02:11 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:02:11 EVENT: WAIT
2013-12-28 08:02:11 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:21 Server poll timeout, trying next remote entry...
2013-12-28 08:02:21 EVENT: RECONNECTING
2013-12-28 08:02:21 LZO-ASYM init swap=0 asym=0
2013-12-28 08:02:21 EVENT: RESOLVE
2013-12-28 08:02:21 Contacting xx.yy.zz.tt:1195 via UDP
2013-12-28 08:02:21 EVENT: WAIT
2013-12-28 08:02:21 Connecting to xxxx:yyy(xx.yy.zz.t) via UDPv4
2013-12-28 08:02:31 EVENT: CONNECTION_TIMEOUT [ERR]
2013-12-28 08:02:31 EVENT: DISCONNECTED
2013-12-28 08:02:31 Raw stats on disconnect:
BYTES_OUT : 1260
PACKETS_OUT : 30
CONNECTION_TIMEOUT : 1
N_RECONNECT : 5
2013-12-28 08:02:31 Performance stats on disconnect:
CPU usage (microseconds): 85815
Network bytes per CPU second: 14682
Tunnel bytes per CPU second: 0
2013-12-28 08:02:31 ----- OpenVPN Stop -----
2013-12-28 08:02:31 EVENT: DISCONNECT_PENDING