首页 > 解决方案 > 对等错误重置 HTTPs 握手连接

问题描述

在对我的服务器执行简单的 Https 请求时,我遇到了此 Connection Reset By Peer Error。

self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

提供大纲:

调查内容:

sudo tcpdump -ni any port 443

(抱歉这里不能提供日志,但是我看到了 seq 和 ack 交换)

Starting new HTTPS connection (1): my-website.com:443
Starting new HTTPS connection (1): my-website.com:443
Starting new HTTPS connection (1): my-website.com:443
Starting new HTTPS connection (1): my-website.com:443
Starting new HTTPS connection (1): my-website.com:443
Starting new HTTPS connection (1): my-website.com:443
https://www.my-website.com:443 "POST /api/v1/auth/login HTTP/1.1" 200 50
Starting new HTTPS connection (1): my-website.com:443
https://www.my-website.com:443 "POST /api/v1/auth/login HTTP/1.1" 200 50
Starting new HTTPS connection (1): my-website.com:443
https://www.my-website.com:443 "POST /api/v1/auth/login HTTP/1.1" 200 50
Starting new HTTPS connection (1): my-website.com:443
https://www.my-website.com:443 "POST /api/v1/auth/login HTTP/1.1" 200 50
Starting new HTTPS connection (1): my-website.com:443
https://www.my-website.com:443 "POST /api/v1/auth/login HTTP/1.1" 200 50

(注意假网站是用来覆盖真实网站的)

我怀疑是远程 VPN 屏蔽服务器上的 VPN/防火墙设置导致了问题,否则为什么它可以通过我的家庭网络工作。但我不知道我能做些什么来确定或解决这个问题。

任何指导表示赞赏。谢谢!

标签: linuxubuntuhttpsvpn

解决方案


推荐阅读