A systems administrator is troubleshooting a newly deployed Linux web server at 192.168.1.100. Other devices on the same 192.168.1.0/24 subnet cannot ping the server or connect to its web service. The administrator connects to the server console and verifies that the network interface is up, has the correct IP address, and that a web service is actively listening on port 80. Which of the following commands is the MOST effective next step for diagnosing this issue?
The correct answer is to use iptables -L -n. Given the scenario, the administrator has already confirmed that the physical layer (interface is up), IP layer (correct IP address), and application layer (service is listening) are configured correctly on the server. The symptoms of being completely unreachable, even by a ping on the local subnet, strongly suggest that a host-based firewall is blocking the traffic. The iptables -L -n command lists the current firewall rules for the filter table without performing DNS lookups, allowing the administrator to quickly verify if rules are in place that are dropping ICMP (ping) and TCP port 80 packets.
ip route show is incorrect because routing issues typically affect connectivity between different subnets. Communication between devices on the same subnet does not usually involve a router.
arp -n is incorrect because while ARP issues or IP conflicts can cause connectivity problems, a firewall is a more likely culprit for blocking all incoming traffic to a new server. This would be a secondary check if the firewall is found to be open.
ss -s is incorrect because this command shows a summary of socket statistics. The administrator has already confirmed the service is listening, and this summary command will not provide details on why incoming packets are not reaching the socket.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the iptables command in Linux?
Open an interactive chat with Bash
How does the 'ip route show' command differ from 'iptables -L -n'?
Open an interactive chat with Bash
Why is 'arp -n' less effective for diagnosing firewall issues?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access