4 Filtering

One primary use of iptables that can benefit every host is filtering. Network traffic filtering is, essentially, what a network firewall does.

Because filter is the default able, there is no need to specify the table if a chain or rule is a part of the filter table.

Before typing any commands, it is important to review what you want to filter. You can write down the rules in any language, then translate them into iptables commands. Experienced administrators can think in iptables commands, but most people benefit from writing everything down in English (or whatever native language) first.

Once you have the basic rules spelled out in a natural language, you can use many frontend tools to configure iptables. Here is a list of some of these frontend tools: