Hello,
I'm trying to configure my Linksys WRT54GL to work as an openVPN server. Main objective is to have my home's IP when i'm outside/elsewhere.
I followed the various wiki/tutos, and i think i got the server up and running, as my openvpn client can successfully connect to it from outside, but i got no internet access via this connection.
From the forums searchs i made, i am guessing i made a mistake in redirecting the gateway, but i am not sure how to fix this, also i am fairly new to network commands.
Informations :
WRT54GL router, with DD-WRT v24-sp1 (07/27/08 ) vpn
(SVN revision 10011). It was linked as being the lattest stable version for this router.
Server config (using gui) :
push "route 192.168.2.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 localhost 5001
Also in the firewall commands :
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
iptables -t nat -A POSTROUTING -s 192.168.66.0/24 -o eth0 -j MASQUERADE
Client config :
client
dev tun
proto udp
remote <edited adress> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
cipher AES-128-CBC
verb 4
I would really appreciate any help or pointers as to how to fix this or what i am missing.
Thanks,
Thibaud