CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux firewall that sits between the Internet (interface eth0) and a private LAN is configured with the following rule:

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8443 -j DNAT --to-destination 192.168.20.15:443

What does this rule achieve on the system?

  • Changes the source port of replies from 192.168.20.15 port 443 to 8443 when those packets leave via eth0.

  • Rewrites the destination of TCP packets arriving on eth0 port 8443 to 192.168.20.15 port 443, forwarding the traffic to the internal host.

  • Redirects traffic arriving on eth0 destined for port 443 to the firewall's own port 8443 for local processing.

  • Masquerades traffic originating from 192.168.20.15 so that external hosts see it as coming from eth0 on port 8443.

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