`curl: (56) Recv failure: Connection reset by peer` right after connecting through a corporate network.
IntermediateTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → A DPI firewall or IPS is resetting the flow based on SNI, destination or protocol, or an egress proxy is required and direct connections are being killed.
Diagnose →
curl -v https://target.example.com 2>&1 | head -30
curl -v -x http://proxy.corp:3128 https://target.example.com
sudo tcpdump -ni any host target.example.com # RST arriving with odd TTL = injected by middlebox
Fix → Use the corporate proxy, or ask the network team to allow the destination category.
Prevent → Document egress requirements for each service and test from the real network early.
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`curl` to a public site works, but `ping 8.8.8.8` shows 100% packet loss.Beginner