I have a "Buffalo WZR-HP-G300NH" router running DD-WRT.
Now, I have configured the OpenVPN server inside DD-WRT so that all client traffic should go through the VPN.
Connecting from my mobile phone (Android) and my Ubuntu notebook to any IP-adress inside my local network at home works fine,
but connecting any other web side outside my local network at home (e.g. google.com, ...) will fail.
Here is the OpenVPN server config file:
Code: Select all
port 1194
proto udp
dev tun0
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
server 10.8.0.0 255.255.255.0
push "route 192.168.11.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
cipher AES-256-CBC
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
Code: Select all
client
dev tun
proto udp
remote mynet.ddns.net 1194
persist-key
ca ca.crt
cert galaxy.crt
key galaxy.key
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
verb 3
Code: Select all
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I INPUT 3 -i tun0 -j ACCEPT
iptables -I FORWARD 3 -i tun0 -o tun0 -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 10.8.0.0/24 -j MASQUERADE
Thanks and regards,
Daniel.