Interview Prep/Networking/Connectivity: refused, timed out, no route

You need to prove whether a specific firewall is dropping or rejecting traffic.

AdvancedTroubleshootingConnectivity: refused, timed out, no route
Answer

Likely causes → You suspect a filter but don't know which hop.

Diagnose →

# Refused vs timeout tells reject vs drop
nc -vz -w 3 target 8443
# TCP traceroute on the real port shows the last hop that answers
sudo traceroute -T -p 8443 target
sudo mtr -T -P 8443 -rwc 50 target
# Capture both sides of the suspected firewall at the same time
sudo tcpdump -ni eth0 host target and port 8443

Packets visible before the firewall but not after prove it drops them. An RST or ICMP admin-prohibited with the firewall's IP or TTL proves it rejects.

Fix → Change the rule with evidence attached.

Prevent → Enable firewall deny logging (flow logs, nft log) so the next time you can read the drop directly.

All Networking questions Roadmap: Networking for DevOps

More on Connectivity: refused, timed out, no route