Failed openvpn - connection timeout - SetTunnelSocket returned 1
Hi I have nearly completed my vpn set up with a Raspberry Pi. Each time that I attempt to join the VPN on my iPhone or iPad, I get the following script. Please can anyone advise how to fix this.
Thanks Mike 2015-10-21 07:26:46 LZO-ASYM init swap=0 asym=0 2015-10-21 07:26:46 EVENT: RESOLVE 2015-10-21 07:26:46 Contacting 146.198.1.225:1194 via UDP 2015-10-21 07:26:46 EVENT: WAIT 2015-10-21 07:26:46 SetTunnelSocket returned 1 2015-10-21 07:26:46 Connecting to 146.198.1.225:1194 (146.198.1.225) via UDPv4 2015-10-21 07:26:56 Server poll timeout, trying next remote entry... 2015-10-21 07:26:56 EVENT: RECONNECTING 2015-10-21 07:26:56 LZO-ASYM init swap=0 asym=0 2015-10-21 07:26:56 EVENT: RESOLVE 2015-10-21 07:26:56 Contacting 146.198.1.225:1194 via UDP 2015-10-21 07:26:56 EVENT: WAIT 2015-10-21 07:26:56 SetTunnelSocket returned 1 2015-10-21 07:26:56 Connecting to 146.198.1.225:1194 (146.198.1.225) via UDPv4 2015-10-21 07:27:06 Server poll timeout, trying next remote entry... 2015-10-21 07:27:06 EVENT: RECONNECTING 2015-10-21 07:27:06 LZO-ASYM init swap=0 asym=0 2015-10-21 07:27:06 EVENT: RESOLVE 2015-10-21 07:27:06 Contacting 146.198.1.225:1194 via UDP 2015-10-21 07:27:06 EVENT: WAIT 2015-10-21 07:27:06 SetTunnelSocket returned 1 2015-10-21 07:27:06 Connecting to 146.198.1.225:1194 (146.198.1.225) via UDPv4 2015-10-21 07:27:16 Server poll timeout, trying next remote entry... 2015-10-21 07:27:16 EVENT: RECONNECTING 2015-10-21 07:27:16 LZO-ASYM init swap=0 asym=0 2015-10-21 07:27:16 EVENT: RESOLVE 2015-10-21 07:27:16 Contacting 146.198.1.225:1194 via UDP 2015-10-21 07:27:16 EVENT: WAIT 2015-10-21 07:27:16 SetTunnelSocket returned 1 2015-10-21 07:27:16 Connecting to 146.198.1.225:1194 (146.198.1.225) via UDPv4 2015-10-21 07:27:26 Server poll timeout, trying next remote entry... 2015-10-21 07:27:26 EVENT: RECONNECTING 2015-10-21 07:27:26 LZO-ASYM init swap=0 asym=0 2015-10-21 07:27:26 EVENT: RESOLVE 2015-10-21 07:27:26 Contacting 146.198.1.225:1194 via UDP 2015-10-21 07:27:26 EVENT: WAIT 2015-10-21 07:27:26 SetTunnelSocket returned 1 2015-10-21 07:27:26 Connecting to 146.198.1.225:1194 (146.198.1.225) via UDPv4 2015-10-21 07:27:36 Server poll timeout, trying next remote entry... 2015-10-21 07:27:36 EVENT: RECONNECTING 2015-10-21 07:27:36 LZO-ASYM init swap=0 asym=0 2015-10-21 07:27:36 EVENT: RESOLVE 2015-10-21 07:27:36 Contacting 146.198.1.225:1194 via UDP 2015-10-21 07:27:36 EVENT: WAIT 2015-10-21 07:27:36 SetTunnelSocket returned 1 2015-10-21 07:27:36 Connecting to 146.198.1.225:1194 (146.198.1.225) via UDPv4 2015-10-21 07:27:46 EVENT: CONNECTION_TIMEOUT [ERR] 2015-10-21 07:27:46 EVENT: DISCONNECTED 2015-10-21 07:27:46 Raw stats on disconnect: BYTES_OUT : 1260 PACKETS_OUT : 30 CONNECTION_TIMEOUT : 1 N_RECONNECT : 5 2015-10-21 07:27:46 Performance stats on disconnect: CPU usage (microseconds): 72316 Network bytes per CPU second: 17423 Tunnel bytes per CPU second: 0 2015-10-21 07:27:46 EVENT: DISCONNECT_PENDING 2015-10-21 07:27:46 ----- OpenVPN Stop ----- |
It would appear your OpenVPN client is unable to establish a connection to the OpenVPN server instance on the Raspberry Pi.
Possible causes: 1) Is the OpenVPN service actually running on the RPi? 2) Is there a firewall enabled on the RPi? If so, is it configured to allow incoming traffic on 1194/udp? 3) Is the RPi actually outside a firewall, connected directly to the Internet so that the IP address to which you're attempting to establish an OpenVPN connection is available? Or is the RPi behind a router/firewall that might need to forward the port to the internal IP address of the RPi? 4) Are you sure your Internet Service Provider (ISP) isn't actively blocking UDP traffic on port 1194 to prevent that kind of access to its users? (this is not entirely uncommon in my experience) If you're sure 1-3 aren't a problem then I'd suggest changing the port OpenVPN listens to on your RPi from 1194/udp to something else, hopefully not being actively blocked by your ISP. I've had good experience using 443/udp instead (the same as https, so perhaps less likely to be blocked). Note that changing the OpenVPN server port means you need to change the configuration on the server itself AND the client so both know how to "talk." Good luck! strick |
Hi
Many thanks for your detailed reply - I will get started over the weekend Regards Mike |
Sorry to bump this. I am having similar problems and was wondering if you managed to resolve this. If so, do you mind sharing your solution? Thanks.
|
All times are GMT -5. The time now is 07:24 AM. |