nerdexam
CompTIACompTIA

XK0-005 · Question #88

XK0-005 Question #88: Real Exam Question with Answer & Explanation

The correct answer is A: Run netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports. To diagnose why an HTTP server is inaccessible, first verify it's listening on the correct port, then check and configure the firewall to permit inbound connections to that port.

Troubleshooting

Question

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?

Options

  • ARun netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports
  • BRun route to ensure the port is correctly bound, and configure the firewall to allow access on ports
  • CRun netcat to ensure the port is correctly bound, and configure a static route to the web to allow
  • DRun route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80

Explanation

To diagnose why an HTTP server is inaccessible, first verify it's listening on the correct port, then check and configure the firewall to permit inbound connections to that port.

Common mistakes.

  • B. The route command displays or modifies the IP routing table, which is not used to check if a port is bound or for basic firewall configuration.
  • C. netcat is a versatile networking utility for reading and writing data across network connections, but netstat is more appropriate for checking listening ports, and configuring a static route is irrelevant for making a local web server accessible from the network.
  • D. While SELinux can block access, checking netstat for port binding is a more fundamental first step than route, and the question implies a default configuration issue that would more commonly involve the firewall before SELinux context if the server isn't even binding.

Concept tested. Linux HTTP server troubleshooting (port binding, firewall)

Reference. https://www.redhat.com/sysadmin/netstat-command-linux

Topics

#netstat#Firewall configuration#Network troubleshooting#HTTP server access

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions