Hi. I am configuring Tomato as an OpenVPN client.
My goal is to have all traffic to be redirected so that when I check my IP address on
http://www.whatismyip.com it would show the OpenVPN server's IP.
So far, Tomato connects to the OpenVPN server just fine, and I can confirm by pinging OpenVPN tun interface IP as well as all the rest of the VPN clients. However, I cannot ping any outside ip or google.com.
I followed the Tomato_OpenVPN_Setup wiki guide to configure tomato
http://wiki.hidemyass.com/Tomato_OpenVPN_Setup
-OpenVPN server is a remote location-
In OpenVPN server host I have the following to accomplish all traffic to be redirected to client's TUN interface:
It is confirmed and working with multiple OpenVPN clients, both linux and windows. But it is still broke in Tomato's client.
1. /etc/sysctl.conf
set net.ipv4.ip_forward = 1 in
2. /etc/openvpn/server.conf
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
3. iptables:
iptables -I FORWARD -i tun+ -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
What am I missing in Tomato OpenVPN client conf?
Thanks very much in advance.