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=cYZAXLgTJsc&index=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.
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 server.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 server.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 server.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 server.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 server.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 server.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:
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:
Router_Info.JPG
VPN Settings.JPG
port_forward.JPG
Here are my Firewall Settings in the Commands tab:
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.8.0.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
Here is my client's ovpn file:
client
dev tun
proto udp
remote server.ddns.net 1194
remote-random
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert davisiphone.crt
key davisiphone.key
ns-cert-type server
comp-lzo
verb 3
Can anybody help me figure out why I can't get a connection? Thanks in advance...