iPad config. Cannot connect - Server poll timeout

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
db533
OpenVpn Newbie
Posts: 9
Joined: Tue Sep 17, 2013 6:16 pm

iPad config. Cannot connect - Server poll timeout

Post by db533 » Sun Oct 13, 2013 8:36 pm

I have successfully connected from my laptop to my OpenVPN server (running in a jail on a FreeNAS 9.1 server). Now I am trying to use a second set of certificates to connect from my iPad. I created a P12 profile file that I successfully installed as per these (very good) instructions http://blog.remibergsma.com/2013/03/13/ ... pberry-pi/.

I can load the .ovpn config file that I transferred via iTunes, but when I try to establish the vpn connection from the OpenVPN app, I get error messages that "Server poll timeout, trying next remote entry...". I suspect I have errors in my .ovpn config file, but can't locate them.

My client config file is as follows:

Code: Select all

client
dev tun
proto udp
remote xxx.xxx.xxx.xxx port_num
resolv-retry infinite
nobind
persist-key
persist-tun
;ca ca.crt
;cert xxx.crt
;key xxx.key
;ns-cert-type server
;tls-auth ta.key 1
comp-lzo
verb 4
reneg-sec 3600
<ca>
-----BEGIN CERTIFICATE-----
xxx
-----END CERTIFICATE-----
</ca>
OpenVPN connection log file data is as follows:

Code: Select all

2013-10-13 15:51:54 ----- OpenVPN Start -----
2013-10-13 15:51:54 LZO-ASYM init swap=0 asym=0
2013-10-13 15:51:54 EVENT: RESOLVE
2013-10-13 15:51:55 Contacting xxx.xxx.xxx.xxx:port_num via UDP
2013-10-13 15:51:55 EVENT: WAIT
2013-10-13 15:51:55 Connecting to xxx.xxx.xxx.xxx:port_num (xxx.xxx.xxx.xxx) via UDPv4
2013-10-13 15:52:04 Server poll timeout, trying next remote entry...
2013-10-13 15:52:04 EVENT: RECONNECTING
2013-10-13 15:52:04 LZO-ASYM init swap=0 asym=0
2013-10-13 15:52:04 EVENT: RESOLVE
2013-10-13 15:52:04 Contacting xxx.xxx.xxx.xxx:port_num via UDP
2013-10-13 15:52:04 EVENT: WAIT
2013-10-13 15:52:04 Connecting to xxx.xxx.xxx.xxx:port_num (xxx.xxx.xxx.xxx) via UDPv4
2013-10-13 15:52:14 Server poll timeout, trying next remote entry...
2013-10-13 15:52:14 EVENT: RECONNECTING
2013-10-13 15:52:14 LZO-ASYM init swap=0 asym=0
2013-10-13 15:52:14 EVENT: RESOLVE
2013-10-13 15:52:14 Contacting xxx.xxx.xxx.xxx:port_num via UDP
2013-10-13 15:52:14 EVENT: WAIT
2013-10-13 15:52:14 Connecting to xxx.xxx.xxx.xxx:port_num (xxx.xxx.xxx.xxx) via UDPv4
2013-10-13 15:52:24 Server poll timeout, trying next remote entry...
2013-10-13 15:52:24 EVENT: RECONNECTING
2013-10-13 15:52:24 LZO-ASYM init swap=0 asym=0
2013-10-13 15:52:24 EVENT: RESOLVE
2013-10-13 15:52:24 Contacting xxx.xxx.xxx.xxx:port_num via UDP
2013-10-13 15:52:24 EVENT: WAIT
2013-10-13 15:52:24 Connecting to xxx.xxx.xxx.xxx:port_num (xxx.xxx.xxx.xxx) via UDPv4
2013-10-13 15:52:34 Server poll timeout, trying next remote entry...
2013-10-13 15:52:34 EVENT: RECONNECTING
2013-10-13 15:52:34 LZO-ASYM init swap=0 asym=0
2013-10-13 15:52:34 EVENT: RESOLVE
2013-10-13 15:52:34 Contacting xxx.xxx.xxx.xxx:port_num via UDP
2013-10-13 15:52:34 EVENT: WAIT
2013-10-13 15:52:34 Connecting to xxx.xxx.xxx.xxx:port_num (xxx.xxx.xxx.xxx) via UDPv4
2013-10-13 15:52:44 Server poll timeout, trying next remote entry...
2013-10-13 15:52:44 EVENT: RECONNECTING
2013-10-13 15:52:44 LZO-ASYM init swap=0 asym=0
2013-10-13 15:52:44 EVENT: RESOLVE
2013-10-13 15:52:44 Contacting xxx.xxx.xxx.xxx:port_num via UDP
2013-10-13 15:52:44 EVENT: WAIT
2013-10-13 15:52:44 Connecting to xxx.xxx.xxx.xxx:port_num (xxx.xxx.xxx.xxx) via UDPv4
2013-10-13 15:52:54 EVENT: CONNECTION_TIMEOUT [ERR]
2013-10-13 15:52:54 EVENT: DISCONNECTED
2013-10-13 15:52:54 Raw stats on disconnect:
  BYTES_OUT : 420
  PACKETS_OUT : 30
  CONNECTION_TIMEOUT : 1
  N_RECONNECT : 5
2013-10-13 15:52:54 Performance stats on disconnect:
  CPU usage (microseconds): 73183
  Network bytes per CPU second: 5739
  Tunnel bytes per CPU second: 0
2013-10-13 15:52:54 ----- OpenVPN Stop -----
2013-10-13 15:52:54 EVENT: DISCONNECT_PENDING
Any ideas where I might be going wrong? I'm sure there are smarter people out there that could suggest what I might need to do differently!

Thanks!

Locked