LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2015, 08:34 AM   #1
queenstdot
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Rep: Reputation: Disabled
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 -----
 
Old 10-22-2015, 02:13 PM   #2
strick1226
Member
 
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, macOS, SLES, Ubuntu
Posts: 327

Rep: Reputation: 63
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
 
Old 10-22-2015, 04:15 PM   #3
queenstdot
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi
Many thanks for your detailed reply - I will get started over the weekend
Regards
Mike
 
Old 12-01-2015, 12:07 AM   #4
b1n0ry
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Networkmanager + OpenVPN : timeout problem (Fedora 10) jonaskellens Linux - Networking 5 11-02-2011 09:30 AM
Inactivity timeout (--ping-restart) in OpenVpn ajayan Linux - Newbie 3 04-27-2010 06:36 AM
Inactivity timeout (--ping-restart) in OpenVpn ajayan Linux - Newbie 1 04-21-2010 11:45 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration