A server had to upload data to cloud storage and its disks were filling up. The team said "the firewall is open, port 443 connects". They were right, and the uploads still failed.
An open port proves only the TCP handshake. If the connection is reset right after ClientHello for every site, something in the path is inspecting or proxying TLS and refusing this client.
Prove where it stops
$ nc -vz storage.example-cloud.com 443 Connection to storage.example-cloud.com 443 port [tcp/https] succeeded! $ openssl s_client -connect storage.example-cloud.com:443 -servername storage.example-cloud.com CONNECTED(00000003) write:errno=104 no peer certificate available
CONNECTED then errno=104 (connection reset) with no certificate means the reset arrives before the real server answers. I repeated it against a well-known public site and got the same result, so the destination was not the problem.
What usually causes it
- A TLS inspection policy that this source subnet is not allowed through.
- An explicit proxy is required and the server is trying to go direct.
- A security appliance rejecting the TLS version or cipher the client offers.
- A URL or category filter that reads the server name in ClientHello and blocks it.
The questions that closed the ticket
- Is this subnet expected to use the outbound proxy? (It was. The server had no proxy setting.)
- If not, which policy handles its HTTPS, and is there a decryption exception for the storage service?
Common mistakes
- Saying "the firewall allows 443" and closing the case. Layer 4 passed. Layer 5 did not.
- Testing only the one destination. A second site tells you whether it is them or you.
- Chasing certificates on the server. No certificate was ever received.
Remember this
| Test | Proves |
|---|---|
nc -vz host 443 | Routing and the port |
openssl s_client | The TLS handshake |
curl -v https://host | The application answer |
Work up the layers and stop at the first one that fails.
Device names, addresses and some details are changed. The method is exactly what I used.
0 Comments
Post a Comment