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

Clients can connect from one subnet but not from another to the same service.

IntermediateTroubleshootingConnectivity: refused, timed out, no route
Answer

Likely causes → Source-based filtering: SG/NACL allows only one CIDR, the host firewall whitelists a range, the app has an allow list, or return routing for the second subnet is missing.

Diagnose →

sudo tcpdump -ni eth0 'src net 10.0.8.0/24 and tcp port 443'   # does it arrive?
ip route get 10.0.8.10                                           # how does the reply leave?

Fix → Allow the second CIDR, or add the return route. If the reply exits a different interface, enable policy routing or fix rp_filter.

Prevent → Reference security groups instead of CIDRs where possible.

All Networking questions Roadmap: Networking for DevOps

More on Connectivity: refused, timed out, no route