nerdexam
CompTIA

LX0-104 · Question #221

Which of the following are builtin chains for the iptables nat table? (Select THREE correct answers)

The correct answer is A. OUTPUT D. POSTROUTING E. PREROUTING. The iptables nat table uses specific built-in chains to handle Network Address Translation for packets at various points in their traversal.

Networking Fundamentals

Question

Which of the following are builtin chains for the iptables nat table? (Select THREE correct answers)

Options

  • AOUTPUT
  • BINPUT
  • CPROCESSING
  • DPOSTROUTING
  • EPREROUTING

How the community answered

(42 responses)
  • A
    90% (38)
  • B
    5% (2)
  • C
    5% (2)

Why each option

The iptables `nat` table uses specific built-in chains to handle Network Address Translation for packets at various points in their traversal.

AOUTPUTCorrect

The `OUTPUT` chain in the `nat` table is used for altering packets originating from the local system before they are routed, typically for Source NAT (SNAT).

BINPUT

The `INPUT` chain is a built-in chain in the `filter` table for packets destined for the local host, but it is not a built-in chain in the `nat` table.

CPROCESSING

`PROCESSING` is not a standard built-in chain in any iptables table.

DPOSTROUTINGCorrect

The `POSTROUTING` chain in the `nat` table is used for altering packets as they are about to leave the system, commonly for Source NAT (SNAT).

EPREROUTINGCorrect

The `PREROUTING` chain in the `nat` table is used for altering incoming packets as soon as they arrive but before routing decisions are made, commonly for Destination NAT (DNAT).

Concept tested: Iptables nat table built-in chains

Source: https://man7.org/linux/man-pages/man8/iptables.8.html

Topics

#iptables#NAT chains#firewall

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice