202-450 practice question 8 of 25

Which netfilter table contains built-in chains called INPUT, OUTPUT and FORWARD?

Full set: 119 questions
Answer options
A: ipconn
B: filter Correct answer
C: nat
D: default
E: masq
Correct Answer:
B. filter
Explanation

The Netfilter framework organizes firewall rules into tables based on their function. The filter table is the default and primary table for packet filtering decisions. It contains three built-in chains: INPUT for packets destined for the local machine, OUTPUT for packets generated by the local machine, and FORWARD for packets being routed through the machine. Rules placed in these chains determine whether a packet is accepted, dropped, or rejected.

Why Incorrect

A. ipconn is not a standard Netfilter table name. Connection tracking (conntrack) is a kernel feature, not a table.
C. The nat table is used for Network Address Translation and contains the PREROUTING, POSTROUTING, and OUTPUT chains.
D. default is not a table name. The filter table is the one used by default if no table is specified.
E. masq is not a table name. MASQUERADE is a specific target used within the nat table's POSTROUTING chain.

References

- iptables(8) Linux manual page. Section: TABLES. It states, "The filter table. This is the default table... The built-in chains are INPUT (for packets destined to local sockets), FORWARD (for packets being routed through the box), and OUTPUT (for locally-generated packets)."

- Netfilter Project. (n.d.). The netfilter hooks, the tables, the chains, the rules. Retrieved from https://wiki.netfilter.org/wiki/index.php/Netfilterhooks. The documentation illustrates that the filter table hooks into the NFIPLOCALIN (INPUT), NFIPFORWARD (FORWARD), and NFIPLOCALOUT (OUTPUT) hooks.

- University of Edinburgh, School of Informatics. (2018). Computer Networking (Lecture 10 - Firewalls) [Courseware]. Page 11. The slide "iptables: Tables and Chains" explicitly lists the filter table with the INPUT, OUTPUT, and FORWARD chains.

Scroll to Top