V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
bin456789
V2EX  ›  问与答

怪事:香港服务器 http reset

  •  
  •   bin456789 · 2020-09-15 23:59:04 +08:00 · 585 次点击
    这是一个创建于 1343 天前的主题,其中的信息可能已经有所发展或是发生改变。

    vps 作为 http 客户端

    访问某些网页(例如 google, qq, 1.1.1.1 )会出现 Connection reset

    访问某些网页(例如 baidu )却正常

    访问 https 网页,全都正常

    求原因

    具体:

    http 访问 baidu,成功率 100%

    curl -v http://www.baidu.com/
    * About to connect() to www.baidu.com port 80 (#0)
    *   Trying 103.235.46.39...
    * Connected to www.baidu.com (103.235.46.39) port 80 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: www.baidu.com
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    

    http 访问 google/qq/ 1.1.1.1,10 次大约有 1 次正常,其余 9 次 Connection reset by peer

    curl -v http://1.1.1.1/
    * About to connect() to 1.1.1.1 port 80 (#0)
    *   Trying 1.1.1.1...
    * Connected to 1.1.1.1 (1.1.1.1) port 80 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 1.1.1.1
    > Accept: */*
    >
    * Recv failure: Connection reset by peer
    * Closing connection 0
    curl: (56) Recv failure: Connection reset by peer
    

    https 访问,全都正常

    curl -v https://1.1.1.1/
    * About to connect() to 1.1.1.1 port 443 (#0)
    *   Trying 1.1.1.1...
    * Connected to 1.1.1.1 (1.1.1.1) port 443 (#0)
    * Initializing NSS with certpath: sql:/etc/pki/nssdb
    *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none
    * SSL connection using TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    * Server certificate:
    * 	subject: CN=cloudflare-dns.com,O="Cloudflare, Inc.",L=San Francisco,ST=California,C=US
    * 	start date: Jan 28 00:00:00 2019 GMT
    * 	expire date: Feb 01 12:00:00 2021 GMT
    * 	common name: cloudflare-dns.com
    * 	issuer: CN=DigiCert ECC Secure Server CA,O=DigiCert Inc,C=US
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: 1.1.1.1
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4879 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:21 · PVG 15:21 · LAX 00:21 · JFK 03:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.