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.
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
routecommand displays or modifies the IP routing table, which is not used to check if a port is bound or for basic firewall configuration. - C.
netcatis a versatile networking utility for reading and writing data across network connections, butnetstatis 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
SELinuxcan block access, checkingnetstatfor port binding is a more fundamental first step thanroute, and the question implies a default configuration issue that would more commonly involve the firewall beforeSELinuxcontext 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
Community Discussion
No community discussion yet for this question.