CompTIA Linux+ (XK0-004) — Question 81
A Linux administrator implemented a new HTTP server using the default configuration. None of the users on the network can access the server. If there is no problem on the network or with the users' workstations, which of the following steps will BEST analyze and resolve the issue?
Answer options
- A. Run netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
- B. Run route to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
- C. Run netcat to ensure the port is correctly bound, and configure a static route to the web to allow access on ports 80 and 443
- D. Run route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and 443
Correct answer: C
Explanation
The correct answer is C because netcat can be used to check if the HTTP server is listening on the correct port and a static route may be necessary to direct traffic appropriately. Option A is incorrect because netstat is not suitable for testing the connection directly to the server, and the firewall configuration should be handled if needed, not just checked. Options B and D do not address the proper method for checking the server's availability or the need for routing in this context.