I've a wrt160n with DD-WRT. Last week I've set up an OpenVPN server on it and a client on my notebook. I can connect to the server on the router without any trouble, but I don't know how to get internet access througth it.
Server config on wrt160n with DD-WRT:
push "route 192.168.1.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
Client setup on my notebook:
client
dev tun
proto udp
remote xxxxxxxxx.dyndns.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert PabloNotebook.crt
key PabloNotebook.key
ns-cert-type server
verb 5
Firewall:
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
What else I need to use the internet connection behind OpenVPN on my notebook?
I've been searching info about this for 2 days (googling, searching on DDWRT, doing some tests). There are a lot of questions like this but on different situations, and I've tried all the answers I'd found with no luck.
I've tried ping other IPs on the router network and got no answer.
PD:
I've tried adding redirect-gateway and DNS to server config:
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
or
push "dhcp-option DNS 8.8.8.8"
And this to the firewall:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
But nothing of this works.