`ssh: connect to host 10.1.4.20 port 22: No route to host`
BeginnerTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → Either the local kernel has no route, ARP for the target (or gateway) failed on the local subnet, or a router/firewall replied with ICMP host-unreachable. firewalld's default reject also returns icmp-host-prohibited, which shows up as "No route to host".
Diagnose →
ip route get 10.1.4.20
ip neigh show 10.1.4.20 # FAILED / INCOMPLETE means ARP gave no answer
sudo tcpdump -ni any icmp # look for "host unreachable" or "admin prohibited"
Fix → Add the missing route, bring the target interface up, or open the port in firewalld (firewall-cmd --add-service=ssh --permanent && firewall-cmd --reload).
Prevent → Know which hosts run firewalld/ufw and manage those rules with config management.
More on Connectivity: refused, timed out, no route
`curl: (7) Failed to connect to 10.0.2.15 port 8080: Connection refused`Beginner`curl: (28) Failed to connect to api.internal port 443 after 130001 ms: Connection timed out`BeginnerService works with `curl localhost:3000` on the box but times out from other hosts.Beginner`ping` works but `curl` to port 80 on the same host times out.Beginner`curl` to a public site works, but `ping 8.8.8.8` shows 100% packet loss.Beginner`nc: connect to db.internal port 5432 (tcp) failed: Connection refused`, yet PostgreSQL is running.Beginner