man iptables

firewall-howto
iptables-howto