I've never done anything manually with iptables before, but I need my sheevaplug to nat traffic for vpn clients connected to it.
I'm running cbxbiker's 2.6.30 kernel on ubuntu, and installed openvpn (rc11) and iptables (1.4.1.1) with apt-get. The openvpn documentation says to issue the following command:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
However, when I connect a client after issuing that command and restarting openvpn, all the client can do is ping the server, but cannot see the public internet. I'm kinda new at this, but it looks like that chain isn't sticking:
root@vpnplug1:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Any idears?