CompTIA Linux+ (XK0-004) — Question 135

A Linux administrator needs to configure a new firewall without an existing ACL to allow incoming web traffic. The firewall must log the allowed network traffic.
Which of the following command sequences would accomplish this task when they are executed in order?

Answer options

Correct answer: A

Explanation

The correct answer, A, first logs incoming traffic on ports 80 and 443 and then allows that traffic, ensuring both logging and acceptance occur. Other options do not correctly log before accepting or utilize the correct order of commands needed for logging allowed traffic.