CompTIA Linux+ (XK0-005) — Question 4

A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?

Answer options

Correct answer: D

Explanation

The correct command is D because it properly appends a rule to the NAT table that redirects traffic on port 80 to the specified proxy server. Options A, B, and C either use incorrect command flags or attempt to modify the rules in a way that does not achieve the desired redirection of HTTP traffic.