`curl` to a public site works, but `ping 8.8.8.8` shows 100% packet loss.
BeginnerTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → ICMP is blocked outbound by a security group/NACL or corporate firewall, or the cloud provider does not route ICMP through that egress path.
Diagnose →
curl -sS -o /dev/null -w '%{http_code}\n' https://example.com
traceroute -T -p 443 8.8.8.8 # TCP traceroute sidesteps ICMP echo filtering
Fix → Nothing to fix for apps. If you need ICMP for diagnostics, allow ICMP echo outbound and replies inbound in the NACL.
Prevent → Don't use ping as the single signal of "network up" in monitoring.
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`Beginner`ssh: connect to host 10.1.4.20 port 22: No route to host`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`nc: connect to db.internal port 5432 (tcp) failed: Connection refused`, yet PostgreSQL is running.Beginner