Hi there,
I am trying to create my own openVPN consisting of two DD-WRT routers (both Linksys WRT54G). One DD-WRT box will act as the server the other one as the client. The client DD-WRT is sitting behind another router not running DD-WRT. The client DD-WRT is connected through its WAN port to the Non-DD-WRT router's LAN port.
While this is all new to me I've been trying the following tutorial with some success so far:
http://www.dd-wrt.com/wiki/index.php/VPN_(the_easy_way)_v24%2B
I was able to establish a connection from my Mac running Tunnelblick to my OpenVPN server but I am not able to connect to any website.
My goal is to connect to the openVPN server and have the client assigned its IP address so it will always look like I'm browsing from this region.
This is the
server config I am using right now:
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.66.1"
push "redirect-gateway def1"
server 192.168.66.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 parameter allows DD-WRT's OpenVPN Status web page to access the server's management port
# port must be 5001 for scripts embedded in firmware to work
management localhost 5001
This is the
client config I am using right now:
remote XXXXserver.dyndns.org 1194
client
remote-cert-tls server
dev tun0
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
float
ca ca.crt
cert client1.crt
key client1.key
These are the
firewall settings on the openVPN server:
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 192.168.66.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
The firewall on the client is deactivated since it's behind another router with a firewall.
Please let me know if you need anything else.
Any pointing into the right direction would be greatly appreciated.
Thanks a lot,
jrn