Failed openvpn - connection timeout - SetTunnelSocket returned 1
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.