CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux host is being configured as a gateway between an internal 172.16.0.0/24 network and the public Internet. After enabling packet forwarding, the administrator issues the command:

iptables -t nat -A POSTROUTING -s 172.16.0.0/24 -o eth0 -j SNAT --to-source 203.0.113.14

Which statement best describes the kind of address translation this rule performs and the point in the netfilter packet-flow where it occurs?

  • Destination NAT in the POSTROUTING chain, altering the destination address after routing but before transmission.

  • Source NAT in the POSTROUTING chain, rewriting the packet's source address just before it leaves eth0.

  • Destination NAT in the PREROUTING chain, redirecting incoming traffic on eth0 before any routing decision.

  • Source NAT in the INPUT chain, changing the source address of packets addressed to the local host.

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot