Giter Club home page Giter Club logo

Comments (11)

haruue avatar haruue commented on August 16, 2024

您好。

我刚试了下连香港的 VPS, Chrome 设置成全新的用户资料目录, google.com 也不会往 google.com.hk 跳了。

能否透露以下信息?

  • 你 PC 和手机分别用的什么浏览器(「手机自带的浏览器」的情况,请提供你的手机型号)?
  • 你用的哪家的 VPS?
  • 请在 PC 和手机上分别访问一下 https://redirector.googlevideo.com/report_mapping , 把网页的第一行除了你服务器地址之外的信息贴上来。

from hysteria.

louwoo avatar louwoo commented on August 16, 2024

您好;

非常感谢您抽出时间为我解答,以下是您需要要了解的信息,我一一解答。

  • 您的PC和手机分别使用什么浏览器(「手机自带的浏览器」的情况,请提供您的手机型号)?
    你好,我PC端用的是Chrome,手机用的是苹果xs,Chrome和safari都用了,还是一样的,包括用无痕模式
  • 你用的是哪家的 VPS?
    我用的raksmart(美国的),但是我之前其实已经配置过了其他的脚本,是可以正常访问的,这次配置的这个因为突然连不上了,所以我又重新配置了,(之前配置的H2是别的脚本,我忘记哪个脚本了)
  • 请在 PC 和手机上分别访问一下https://redirector.googlevideo.com/report_mapping,将网页的第一行(除了您服务器地址之外的信息贴上来)。
    我用手机和PC分别访问,都无法打开你提供的网址,手机也分别用了4G访问和wifi访问,均无法打开。

再次感谢您抽出宝贵时间为我解答!

from hysteria.

haruue avatar haruue commented on August 16, 2024

您好。

我用手机和PC分别访问,都无法打开你提供的网址,手机也分别用了4G访问和wifi访问,均无法打开。

请试试看在服务器上执行下面这条命令

curl -fsSL https://redirector.googlevideo.com/report_mapping | head -2

然后把输出中除了你服务器地址之外的内容贴上来

from hysteria.

louwoo avatar louwoo commented on August 16, 2024

您好;
服务器上执行之后就显示这条:

curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to redirector.googlevideo.com:443

from hysteria.

haruue avatar haruue commented on August 16, 2024

这样的话感觉是您的 VPS 商的网络, 或者服务器的网络配置有问题, 而不是 Hysteria 的原因。

我们可以继续帮您检查, 能否发一下在服务器上执行下面这些命令的完整输出?

cat /etc/resolv.conf
curl -vv https://redirector.googlevideo.com/report_mapping >/dev/null
curl -vv http://www.google.com >/dev/null
curl -vv https://www.google.com/ >/dev/null

from hysteria.

louwoo avatar louwoo commented on August 16, 2024
root@C20230705116585:~# curl -vv https://redirector.googlevideo.com/report_mapping >/dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 120.253.253.33:443...
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to redirector.googlevideo.com (120.253.253.33) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* OpenSSL SSL_connect: Connection reset by peer in connection to redirector.googlevideo.com:443 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to redirector.googlevideo.com:443 
root@C20230705116585:~# curl -vv http://www.google.com >/dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 142.251.42.228:80...
* Connected to www.google.com (142.251.42.228) port 80 (#0)
> GET / HTTP/1.1
> Host: www.google.com
> User-Agent: curl/7.74.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Location: http://www.google.com.hk/url?sa=p&hl=zh-CN&pref=hkredirect&pval=yes&q=http://www.google.com.hk/&ust=1721973526989975&usg=AOvVaw3SVvsFmtF__MsRJbSp9ZAS
< Cache-Control: private
< Content-Type: text/html; charset=UTF-8
< Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-G-2Sp6KTiMkpJcDNLDeptg' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
< P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< Date: Fri, 26 Jul 2024 05:58:16 GMT
< Server: gws
< Content-Length: 370
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< Set-Cookie: AEC=AVYB7cqSZ2SSuV4lAKN02Rq0NRWiMz4cqq6YH6M_wQ9hkblrwigyIkBsjnE; expires=Wed, 22-Jan-2025 05:58:16 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
< Set-Cookie: NID=516=nAt7Uqt9ERe9n-ZxKoP5KZxBJjZnJC_rYtdoCCrn3tBhgos4QMwlXL99zVAIrAwlWwhGaMHnQX_ZUCcgMjYITi1kcVX9Ev5a6WyZEZvsiNM2JiOCnNQ1Q0AzevO8cLlmvRKUlnJnppcuB3IfclcByo-V4BjNJyR7DURH-35Fzaw35YoPdhO13A; expires=Sat, 25-Jan-2025 05:58:16 GMT; path=/; domain=.google.com; HttpOnly
< 
{ [370 bytes data]
100   370  100   370    0     0   1156      0 --:--:-- --:--:-- --:--:--  1156
* Connection #0 to host www.google.com left intact
root@C20230705116585:~# curl -vv https://www.google.com/ >/dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 142.251.42.228:443...
* Connected to www.google.com (142.251.42.228) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [15 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [3813 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [80 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=www.google.com
*  start date: Jun 24 07:42:34 2024 GMT
*  expire date: Sep 16 07:42:33 2024 GMT
*  subjectAltName: host "www.google.com" matched cert's "www.google.com"
*  issuer: C=US; O=Google Trust Services; CN=WR2
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x55d672283b20)
} [5 bytes data]
> GET / HTTP/2
> Host: www.google.com
> user-agent: curl/7.74.0
> accept: */*
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [282 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [282 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
} [5 bytes data]
< HTTP/2 302 
< location: https://www.google.com.hk/url?sa=p&hl=zh-CN&pref=hkredirect&pval=yes&q=https://www.google.com.hk/&ust=1721973633122026&usg=AOvVaw0jNAF0Rgt5wBb51pmiOGXN
< cache-control: private
< content-type: text/html; charset=UTF-8
< content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-0wlFniCKxZvnM0kNL8Cleg' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
< p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< date: Fri, 26 Jul 2024 06:00:03 GMT
< server: gws
< content-length: 372
< x-xss-protection: 0
< x-frame-options: SAMEORIGIN
< set-cookie: AEC=AVYB7cqp1WVC4_pgkDvhliBESB-unS__Yhge0aXSmGTp9FbULizC9zmeDw; expires=Wed, 22-Jan-2025 06:00:03 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
< set-cookie: NID=516=Vj_HWkqWaC4hshoDBrYT7RqhZKnUSZ-iFBhOJANiMqxka8XK9WXSNRWHxNhVd3gHUD0kBB8tWYKrjJzuBnz3IoChqST5zpcUFuWWnvjcB4VPovihURzX_nP3TK4jQYLdTdlF0DxlscKcyF5yAXrfyFc6xrP1XBrvYsIq38Ty5xZ4iyPG8Vh2Ag; expires=Sat, 25-Jan-2025 06:00:03 GMT; path=/; domain=.google.com; HttpOnly
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
< 
{ [5 bytes data]
100   372  100   372    0     0    722      0 --:--:-- --:--:-- --:--:--   722
* Connection #0 to host www.google.com left intact

from hysteria.

haruue avatar haruue commented on August 16, 2024

看起来你服务器配置的 DNS 有问题, 将 redirector.googlevideo.com 解析到了 120.253.253.33, 这是一个**移动的 IP 地址。 然后才被 TCP Reset 了。

你服务器配置的 DNS 是什么? 通常可以用 cat /etc/resolv.conf 查看。

from hysteria.

louwoo avatar louwoo commented on August 16, 2024

root@C20230705116585:~# cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

from hysteria.

haruue avatar haruue commented on August 16, 2024

那我们先不通过 DNS 解析, 请试试这条命令。

curl -fsSL https://redirector.googlevideo.com/report_mapping --resolve 'redirector.googlevideo.com:443:142.251.220.110' | head -2

然后把输出中除了你服务器地址之外的内容贴上来

from hysteria.

haruue avatar haruue commented on August 16, 2024

我们基本上能确定是你的 VPS IP 被 Google 送中

作为用户, 如何避免 IP 被 Google 送中?

  • 当你在**境内使用运行 Google 服务的 Android 设备, 一定要关闭 Google 位置记录和 Google 相关应用的位置权限。

作为用户, 当 IP 已经被 Google 送中了, 应该怎么办?

  • 套一层 cfwarp。
  • 换一台 VPS, 或者联系 VPS 商换一个 IP。
  • 联系你的 VPS 商, 如果他们使用自有 ASN 和 IP 地址, 请让他们注册 Google ISP Portal, 然后将 IP 地址的位置固定。

您可以通过 Google 搜索 「IP 被 Google 送中」 了解更多相关信息。

from hysteria.

louwoo avatar louwoo commented on August 16, 2024

root@C20230705116585:~# curl -fsSL https://redirector.googlevideo.com/report_mapping --resolve 'redirector.googlevideo.com:443:142.251.220.110' | head -2
XXX.XXX.XXX.XXX => dfw28s09 : router: "pf08.dfw28" next_hop_address: "209.85.173.189" (XXX.XXX.XXX.128/25)

curl: (23) Failure writing output to destination

备注:XXX表示跟我的服务器ip地址一样

from hysteria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.