2
Okay, so I've got a set up, where eth0 my internal IP address (192.168.1.3) it has been configured as my default gateway using the iptables this
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -P FORWARD ACCEPT
sudo iptables –-table nat -A POSTROUTING -o eth2 -j MASQUERADE
Where eth2 is my static ip for internet
That works fine, I can access internet from any computer on my network via DHCP (192.168.1.10-200)
Everything stops working when I run openvpn
Here's my config file http://pastebin.ubuntu.com/7556511/
That config works without the NAT, as in on the computer I can browse the web, and if I do
curl ifconfig.me
it gives me a remote ip address from my VPN provider.
When I say fails on other computers, I mean I can't load pages, I can't ping, nothing works outside of the network (But I can still SSH in on the internal interface
troubleshoothing this with someone on IRC the output of > cat /proc/sys/net/ipv4/ip_forward is 1 – HilarieAK – 2014-05-31T06:22:49.457