Unbuntu 8.10 -- IPTABLES ISSUE
After enabling the basic iptables rules to function as a NAT I lose my internet on the server machine.
$sudo iptables -A FORWARD -i eth0 -o eth1 -s 192.168.0.0/24 -m state -- state NEW -j ACCEPT
$sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
$sudo iptables -A POSTROUTING -t nat -j MASQUERADE
$sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
Example: sudo apt-get update
won't connect
however clients access the iternet just fine
i tired "sudo iptables -F"
this disables the clients but still can't access internet with the server
what am i doing wrong?
do i need an additional rule to allow the server to access the net
|