/etc/init.d/iptables start
iptables -F
iptables -Z
iptables -X
iptables -L -n
sed -i ‘s#net.ipv4.ip_forward = 0#net.ipv4.ip_forward = 1#g’ /etc/sysctl.conf
sysctl -p
modprobe ip_tables
modprobe iptable_filter
modprobe iptable_nat
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp
modprobe ipt_state
lsmod|grep ip|wc -l
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j SNAT –to-source 192.168.80.104
或iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -j MASQUERADE
/etc/init.d/iptables save或iptables-save >/etc/sysconfig/iptables