nerdexam
LPI

303-300 · Question #52

Which of the following keywords are built-in chairs for the iptables nat table? (Choose THREE correct answers.)

The correct answer is A. OUTPUT D. POSTROUTING E. PREROUTING. The iptables nat table contains exactly three built-in chains: PREROUTING (E), which intercepts packets as they arrive before routing decisions are made; OUTPUT (A), which handles locally-generated packets before they are routed; and POSTROUTING (D), which processes packets…

Network Security

Question

Which of the following keywords are built-in chairs for the iptables nat table? (Choose THREE correct answers.)

Options

  • AOUTPUT
  • BMASQUERADE
  • CPROCESSING
  • DPOSTROUTING
  • EPREROUTING

How the community answered

(63 responses)
  • A
    86% (54)
  • B
    5% (3)
  • C
    10% (6)

Explanation

The iptables nat table contains exactly three built-in chains: PREROUTING (E), which intercepts packets as they arrive before routing decisions are made; OUTPUT (A), which handles locally-generated packets before they are routed; and POSTROUTING (D), which processes packets after routing, just before they leave the system - making these the correct answers.

MASQUERADE (B) is not a chain at all - it is a target (an action/jump destination) used inside rules, typically in POSTROUTING, to dynamically rewrite the source IP for outgoing connections. PROCESSING (C) is simply invented; no such chain or keyword exists in iptables.

Memory tip: Think of packet flow order - PRErouting → route decision → POSTrouting, and locally-generated traffic takes an OUTPUT shortcut. If it's a verb describing what happens to a packet, it's likely a chain; if it describes an action applied to a packet (like MASQUERADE, DNAT, SNAT), it's a target.

Topics

#iptables#nat-chains#netfilter#firewall

Community Discussion

No community discussion yet for this question.

Full 303-300 Practice