The Logical structure of iptables Iptables contains tables and tables contains chains Each table contain some predefined chains Tables filter INPUT FORWARD OUTPUT nat PREROUTING POSTROUTING OUTPUT mangle PREROUTING INPUT FORWARD OUTPUT POSTROUTING