CompTIA Linux+ (XK0-004) — Question 233
A network administrator installed a web server on a Linux host and added a firewalld command to open port 80/tcp. The web server worked without error until an updated and patched kernel was installed on the system a month later. Now users are unable to access the web server even though the service is running.
Which of the following would fix the issue?
Answer options
- A. Use the firewalld command to open the HTTP application service rather than the port
- B. Change the firewalld zone to private and open port tcp/80
- C. Issue an additional firewalld command to open up port tcp/443 as well as port tcp/80
- D. Use the firewalld command to open tcp/80 both with and without the --permanent switch
Correct answer: C
Explanation
The correct answer is C because opening port tcp/443 allows HTTPS traffic, which may be required for secure access when the web server is configured to handle both HTTP and HTTPS. Options A and B do not address the issue effectively, and D is redundant since using the --permanent switch doesn't solve the underlying problem of access after the kernel update.