Question

Randomly gets "Connection reset by peer" on my droplet. Noticed only at DO

Posted August 19, 2021 89 views
SecurityNetworking

Deployed a service in my DO k8s cluster. It is stunnel proxy with custom openssl build (GOST-engine for OpenSSL) which proxy traffic from localhost:8000 to removeserver:443

Randomly, if I try curl from the pod I get “Connection reset by peer error” message. I would say ratio it 1:2

For example:

/ # curl -X GET localhost:8000 -I
curl: (56) Recv failure: Connection reset by peer
/ # curl -X GET localhost:8000 -I
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Thu, 19 Aug 2021 16:08:03 GMT
Content-Type: text/html
Content-Length: 89
Last-Modified: Fri, 12 Mar 2021 17:59:55 GMT
Connection: keep-alive
ETag: "604bac1b-59"
Strict-Transport-Security: max-age=15768000
Accept-Ranges: bytes
/ # curl -X GET localhost:8000 -I
curl: (56) Recv failure: Connection reset by peer

Tested that docker image elsewhere (locally, other cloud providers) outside Digital Ocean and it works fine. Can it be related to Droplets network configuration or blacklisted DO IPs?

Thank you.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!