Hello,
I can successfully connect my iphone to windows 7 openvpn server. But to have those connected, I need my windows 7 laptop turned on all the time. So I thought about using my old router which I stopped using after my ISP gave me a router/modem device. I came across DD-WRT so I thought this would be perfect for what I intend to do. My goal is to configure OpenVPN server on my DD-WRT router and connect my iphone/laptop to it when not at home. Please check out this link which shows my current network.
http://img689.imageshack.us/img689/8829/networka.jpg
I have port forwarded 1194 to 192.168.0.27 from my cisco modem/router.
Here is my server config file:
push "route 192.168.5.0 255.255.255.0"
push "route 192.168.0.0 255.255.255.0"
server 10.8.0.0 255.255.255.0
dev tun0
proto udp
keepalive 10 120
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
management localhost 5001
for testing purposes, I am using my Windows 7 laptop to connect to the ddwrt openvpn server. I am using my iphone's hotspot feature to connect to internet on my laptop. So the router thinks, the laptop is connecting from a different network which would be the ideal case.
Here is the client config file:
client
dev tun
proto udp
remote x.x.x.x 1194 --> x.x.x.x is my public IP
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client.key"
ns-cert-type server
comp-lzo
verb 4
firewall commands:
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 192.168.5.0/24 -j ACCEPT
iptables -I FORWARD 1 --source 192.168.0.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
I used this website as a guide:
http://www.dd-wrt.ca/wiki/index.php/VPN_(the_easy_way)_v24%2B
This is the error i get:
Sun Apr 14 17:05:56 2013 us=128753 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Apr 14 17:05:56 2013 us=128753 TLS Error: TLS handshake failed
Sun Apr 14 17:05:56 2013 us=128753 TCP/UDP: Closing socket
Sun Apr 14 17:05:56 2013 us=128753 SIGUSR1[soft,tls-error] received, process restarting
Sun Apr 14 17:05:56 2013 us=128753 MANAGEMENT: >STATE:1365980756,RECONNECTING,tls-error,,
and it keeps repeating...
any help will be greatly appreciated. thanks.