Posted: Sun Jul 20, 2014 3:18 Post subject: Unable to connect to DD-WRT Router using OpenVPN
I'm not having any luck connecting any devices from outside my network to my router running DD-WRT and setup for OpenVPN. I used this guide from YouTube to set it up: https://www.youtube.com/watch?v=cYZAXLg ... =5&list=WL
For the client side, I'm using an iPhone 4S running OpenVPN 1.0.4 build 140. Below is the log from the app after I try connecting to my router via the Verizon.
Quote:
2014-07-19 14:59:32 LZO-ASYM init swap=0 asym=0
2014-07-19 14:59:32 EVENT: RESOLVE
2014-07-19 14:59:32 Contacting 73.37.140.86:1194 via UDP
2014-07-19 14:59:32 EVENT: WAIT
2014-07-19 14:59:32 Connecting to dnguyen411.ddns.net:1194 (73.37.140.86) via UDPv4
2014-07-19 14:59:42 Server poll timeout, trying next remote entry...
2014-07-19 14:59:42 EVENT: RECONNECTING
2014-07-19 14:59:42 LZO-ASYM init swap=0 asym=0
2014-07-19 14:59:42 EVENT: RESOLVE
2014-07-19 14:59:42 Contacting 73.37.140.86:1194 via UDP
2014-07-19 14:59:42 EVENT: WAIT
2014-07-19 14:59:42 Connecting to dnguyen411.ddns.net:1194 (73.37.140.86) via UDPv4
2014-07-19 14:59:52 Server poll timeout, trying next remote entry...
2014-07-19 14:59:52 EVENT: RECONNECTING
2014-07-19 14:59:52 LZO-ASYM init swap=0 asym=0
2014-07-19 14:59:52 EVENT: RESOLVE
2014-07-19 14:59:52 Contacting 73.37.140.86:1194 via UDP
2014-07-19 14:59:52 EVENT: WAIT
2014-07-19 14:59:52 Connecting to dnguyen411.ddns.net:1194 (73.37.140.86) via UDPv4
2014-07-19 15:00:02 Server poll timeout, trying next remote entry...
2014-07-19 15:00:02 EVENT: RECONNECTING
2014-07-19 15:00:02 LZO-ASYM init swap=0 asym=0
2014-07-19 15:00:02 EVENT: RESOLVE
2014-07-19 15:00:02 Contacting 73.37.140.86:1194 via UDP
2014-07-19 15:00:02 EVENT: WAIT
2014-07-19 15:00:02 Connecting to dnguyen411.ddns.net:1194 (73.37.140.86) via UDPv4
2014-07-19 15:00:12 Server poll timeout, trying next remote entry...
2014-07-19 15:00:12 EVENT: RECONNECTING
2014-07-19 15:00:12 LZO-ASYM init swap=0 asym=0
2014-07-19 15:00:12 EVENT: RESOLVE
2014-07-19 15:00:12 Contacting 73.37.140.86:1194 via UDP
2014-07-19 15:00:12 EVENT: WAIT
2014-07-19 15:00:12 Connecting to dnguyen411.ddns.net:1194 (73.37.140.86) via UDPv4
2014-07-19 15:00:22 Server poll timeout, trying next remote entry...
2014-07-19 15:00:22 EVENT: RECONNECTING
2014-07-19 15:00:22 LZO-ASYM init swap=0 asym=0
2014-07-19 15:00:22 EVENT: RESOLVE
2014-07-19 15:00:22 Contacting 73.37.140.86:1194 via UDP
2014-07-19 15:00:22 EVENT: WAIT
2014-07-19 15:00:22 Connecting to dnguyen411.ddns.net:1194 (73.37.140.86) via UDPv4
2014-07-19 15:00:32 EVENT: CONNECTION_TIMEOUT [ERR]
2014-07-19 15:00:32 EVENT: DISCONNECTED
2014-07-19 15:00:32 Raw stats on disconnect:
BYTES_OUT : 420
PACKETS_OUT : 30
CONNECTION_TIMEOUT : 1
N_RECONNECT : 5
2014-07-19 15:00:32 Performance stats on disconnect:
CPU usage (microseconds): 83346
Network bytes per CPU second: 5039
Tunnel bytes per CPU second: 0
2014-07-19 15:00:32 ----- OpenVPN Stop -----
2014-07-19 15:00:32 EVENT: DISCONNECT_PENDING
Here's the log from the server:
Quote:
20140719 14:59:33 174.238.101.73:5329 TLS: Initial packet from [AF_INET]174.238.101.73:5329 sid=76276d55 ab37c6a2
20140719 14:59:43 174.238.101.73:5312 TLS: Initial packet from [AF_INET]174.238.101.73:5312 sid=d293101c 82e52791
20140719 14:59:53 174.238.101.73:5313 TLS: Initial packet from [AF_INET]174.238.101.73:5313 sid=c9ab49ac dabd1af4
20140719 15:00:03 174.238.101.73:5318 NOTE: --mute triggered...
20140719 15:00:34 174.238.101.73:5329 3 variation(s) on previous 3 message(s) suppressed by --mute
20140719 15:00:34 N 174.238.101.73:5329 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
20140719 15:00:34 N 174.238.101.73:5329 TLS Error: TLS handshake failed
20140719 15:00:34 174.238.101.73:5329 SIGUSR1[soft tls-error] received client-instance restarting
20140719 15:00:43 N 174.238.101.73:5312 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
20140719 15:00:43 N 174.238.101.73:5312 TLS Error: TLS handshake failed
20140719 15:00:43 174.238.101.73:5312 SIGUSR1[soft tls-error] received client-instance restarting
20140719 15:00:53 N 174.238.101.73:5313 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
20140719 15:00:53 N 174.238.101.73:5313 TLS Error: TLS handshake failed
20140719 15:00:53 174.238.101.73:5313 SIGUSR1[soft tls-error] received client-instance restarting
20140719 15:01:04 N 174.238.101.73:5318 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
20140719 15:01:04 N 174.238.101.73:5318 TLS Error: TLS handshake failed
20140719 15:01:04 174.238.101.73:5318 SIGUSR1[soft tls-error] received client-instance restarting
20140719 15:01:13 N 174.238.101.73:5339 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
20140719 15:01:13 N 174.238.101.73:5339 TLS Error: TLS handshake failed
20140719 15:01:13 174.238.101.73:5339 SIGUSR1[soft tls-error] received client-instance restarting
20140719 15:01:23 N 174.238.101.73:5340 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
20140719 15:01:23 N 174.238.101.73:5340 TLS Error: TLS handshake failed
20140719 15:01:23 174.238.101.73:5340 SIGUSR1[soft tls-error] received client-instance restarting
I did a UDP port scan of port 1194 and the scanner found it was open so I think I can rule out that my router firewall is blocking the request. I've attached screenshots of my router's settings (See Attachments)
Here are my Firewall Settings in the Commands tab:
I don't understand what you mean. For the outside world to see the openvpn, according to every instruction I read, you need to forward UDP 1194 to your server. In my case, my server is my router.
After several days of tinkering, I've determined that the problem is with my router firewall setting. I opened the DMZ for my router and used my iphone's openvpn client software to connect. No problems when the DMZ is activated for my router's IP (192.168.54.1).