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

Packets arrive on the server (seen in tcpdump), but the application never gets them.

AdvancedTroubleshootingConnectivity: refused, timed out, no route
Answer

Likely causes → tcpdump captures before netfilter on ingress, so a host firewall INPUT drop is invisible to it. Also: reverse-path filter (rp_filter) drops packets whose source would route out another interface, or the destination IP isn't on that host.

Diagnose →

sudo iptables -L INPUT -v -n --line-numbers   # watch packet counters climb on a DROP rule
sysctl net.ipv4.conf.all.rp_filter net.ipv4.conf.eth1.rp_filter
nstat -az | grep -i IPReversePathFilter

Fix → Remove or adjust the drop rule; set rp_filter=2 (loose) on multi-homed hosts or add policy routing so replies use the same interface.

Prevent → Remember the order: capture point → netfilter → socket. Use nft monitor trace or iptables TRACE to follow a packet.

All Networking questions Roadmap: Networking for DevOps

More on Connectivity: refused, timed out, no route