我无法访问某些 IPv6 网站

我无法访问某些 IPv6 网站

curl我正在通过和对我的 IPv6 进行一些测试ping。出于某种原因,我可以访问 Google 的 IPv6 版本和一些其他网站,但我npmjs.com甚至无法访问github.com。请参阅示例:

错误:

[爱德华多]:〜/项目$curl -v6 https://vulndetect.org/
* 尝试 2a05:d018:542:ed01:d2a2:a89a:c311:b79a:443...
* 连接到 2a05:d018:542:ed01:d2a2:a89a:c311:b79a 端口 443 失败:超时
* 无法连接到 vulndetect.org 端口 443:超时
* 关闭连接 0
curl:(28)无法连接到 vulndetect.org 端口 443:超时

成功:

[爱德华多]:〜/项目$curl -v6 https:/google.com
* 尝试 2800:3f0:4001:825::200e:443...
* 连接到 google.com (2800:3f0:4001:825::200e) 端口 443 (#0)
* ALPN,提供 h2
* ALPN,提供 http/1.1
* 成功设置证书验证位置:
* CA文件:/etc/ssl/certs/ca-certificates.crt
* CA路径:/etc/ssl/certs
* TLSv1.3 (OUT)、TLS 握手、客户端问候 (1):
* TLSv1.3(IN),TLS 握手,服务器问候(2):
* TLSv1.3 (IN)、TLS 握手、加密扩展 (8):
* TLSv1.3 (IN),TLS 握手,证书 (11):
* TLSv1.3(IN),TLS 握手,CERT 验证(15):
* TLSv1.3 (IN),TLS 握手,完成(20):
* TLSv1.3 (OUT),TLS 更改密码,更改密码规范 (1):
* TLSv1.3(OUT),TLS 握手,完成(20):
* 使用 TLSv1.3 / TLS_AES_256_GCM_SHA384 进行 SSL 连接
* ALPN,服务器接受使用 h2
* 服务器证书:
* 主题:CN=*.google.com
* 开始日期:2021 年 11 月 8 日 02:25:05 GMT
* 到期日期:2022 年 1 月 31 日 02:25:04 GMT
* subjectAltName:主机“google.com”与证书的“google.com”匹配
* 发行人:C=US;O=Google Trust Services LLC;CN=GTS CA 1C3
* SSL 证书验证成功。
* 使用HTTP2,服务器支持多用途
* 连接状态已改变(HTTP/2 已确认)
* 升级后将流缓冲区中的 HTTP/2 数据复制到连接缓冲区:len=0
* 使用流 ID:1(简单处理 0x56303bd095a0)
> 获取 / HTTP/2
> 主机:google.com
> 用户代理:curl/7.74.0
> 接受:*/*
>
* TLSv1.3(IN),TLS 握手,新会话票证(4):
* TLSv1.3(IN),TLS 握手,新会话票证(4):
* 旧的 SSL 会话 ID 已过时,正在删除
* 连接状态已改变(MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 301
< 位置:https://www.google.com/
< 内容类型:text/html;字符集=UTF-8
< 日期:2021 年 12 月 14 日星期二 04:18:51 GMT
< 到期时间:2022 年 1 月 13 日星期四 04:18:51 GMT
< 缓存控制:公共,最大年龄 = 2592000
< 服务器:gws
< 内容长度: 220
< x-xss 保护: 0
< x-frame-options: SAMEORIGIN
<alt-svc:h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; :443";马=2592000; v="46,43"
<
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 已移动</TITLE></HEAD><BODY>
<H1>301 已移动</H1>
文档已移动
<A HREF="https://www.google.com/">这里</A>。
</BODY> </HTML>
* 与主机 google.com 的连接 #0 保持完好

为什么会发生这种情况?

正如此处的评论所述,正常运行和不正常运行的网站都使用相同的界面。输出为traceroute

[爱德华多]:〜/项目/DescicloBot / ai$跟踪路由-6 vulndetect.org
跟踪路由到 vulndetect.org (2a05:d018:542:ed01:d2a2:a89a:c311:b79a),最多 30 个跳数,80 字节数据包
 1 2804:21ac:2d:ba01:da07:b6ff:feed:bf12(2804:21ac:2d:ba01:da07:b6ff:feed:bf12)1.466 毫秒 1.662 毫秒 1.631 毫秒
 2 as264566.portoalegre.rs.ix.br (2001:12f8:0:6::26:4566) 7.628 毫秒 7.599 毫秒 7.649 毫秒
 3 2804:41f8:f100:6::245(2804:41f8:f100:6::245)6.330 毫秒 6.298 毫秒 6.429 毫秒
 4 as3549.pae.w8telecom.com.br (2804:4c0:ffff:fd6b::1) 7.019 毫秒 6.836 毫秒 6.956 毫秒
 5 * * *
 6 * * *
 7 ash-bb2-v6.ip.twelve99.net (2001:2034:1:74::1) 230.249 毫秒 rest-bb1-v6.ip.twelve99.net (2001:2034:1:73::1) 225.400 毫秒 ash-bb2-v6.ip.twelve99.net (2001:2034:1:74::1) 229.777 毫秒
 8 prs-bb2-v6.ip.twelve99.net (2001:2034:1:c1::1) 225.014 毫秒 224.981 毫秒 prs-bb1-v6.ip.twelve99.net (2001:2034:1:be::1) 228.854 毫秒
 9 * * *
10 amazon-svc077640-lag003862.ip.twelve99-cust.net (2001:2000:3080:2a7::2) 272.221 毫秒 276.320 毫秒 amazon-svc077642-lag003863.ip.twelve99-cust.net (2001:2000:3080:2a9::2) 272.064 毫秒
11 * * *
12 2a01:578:0:13::10(2a01:578:0:13::10)287.744 毫秒 2a01:578:0:13::e(2a01:578:0:13::e)270.892 毫秒 2a01:578:0:13::f(2a01:578:0:13::f)271.895 毫秒
13 2a01:578:0:8005::144(2a01:578:0:8005::144)239.728 毫秒 2a01:578:0:8005::142(2a01:578:0:8005::142)255.875 毫秒 2a01:578:0:8005::42(2a01:578:0:8005::42)238.658 毫秒
14 * * *
15 * * *
16 * * *
17 2a01:578:0:4006:8000:0:6441:c06(2a01:578:0:4006:8000:0:6441:c06)262.467 毫秒 2a01:578:0:4006:8000:0:6441:d86(2a01:578:0:4006:8000:0:6441:d86)256.785 毫秒 2a01:578:0:4006:8000:0:6441:d8a(2a01:578:0:4006:8000:0:6441:d8a)243.963 毫秒
18 2a01:578:0:4006:8000:0:6442:518(2a01:578:0:4006:8000:0:6442:518)249.560 毫秒 2620:107:4000:b1d0::f001:6c11(2620:107:4000:b1d0::f001:6c11)245.964 毫秒 246.392 毫秒
19 2a01:578:0:4006:8000:0:6442:788(2a01:578:0:4006:8000:0:6442:788)252.419 毫秒 2a01:578:0:4006:8000:0:6442:7e0(2a01:578:0:4006:8000:0:6442:7e0)249.711 毫秒 2a01:578:0:4006:8000:0:6442:6aa(2a01:578:0:4006:8000:0:6442:6aa)249.937 毫秒
20 2a01:578:0:4006:8000:0:6442:1bcb(2a01:578:0:4006:8000:0:6442:1bcb)248.753 毫秒 2a01:578:0:4009:8000:0:6442:a0d(2a01:578:0:4009:8000:0:6442:a0d)247.744 毫秒 2a01:578:0:4009:8000:0:6442:b03(2a01:578:0:4009:8000:0:6442:b03)252.755 毫秒
21 2a01:578:0:4006:8000:0:6442:19df(2a01:578:0:4006:8000:0:6442:19df)248.084 毫秒 2a01:578:0:4006:8000:0:6442:19c5(2a01:578:0:4006:8000:0:6442:19c5)248.817 毫秒 2a01:578:0:4009:8000:0:6442:1105(2a01:578:0:4009:8000:0:6442:1105)241.669 毫秒
22 * * *
23 * * *
24 * * *
二十五 * * *
二十六 * * *
二十七 * * *
二十八 * * *
二十九 * * *
三十 * * *

另一个不工作的网站的跟踪路由:

[爱德华多]:〜/项目/DescicloBot / ai$跟踪路由-6 2606:4700::6810:5c53
跟踪路由至 2606:4700::6810:5c53 (2606:4700::6810:5c53),最多 30 个跳数,80 字节数据包
 1 2804:21ac:2d:ba01:da07:b6ff:feed:bf12(2804:21ac:2d:ba01:da07:b6ff:feed:bf12)2.410 毫秒 2.357 毫秒 2.541 毫秒
 2 as264566.portoalegre.rs.ix.br (2001:12f8:0:6::26:4566) 7.153 毫秒 7.294 毫秒 7.259 毫秒
 3 2804:41f8:f100:6::245 (2804:41f8:f100:6::245) 6.498 毫秒 6.636 毫秒 6.602 毫秒
 4 2804:41f8:f800:1000::5 (2804:41f8:f800:1000::5) 23.435 毫秒 23.175 毫秒 22.837 毫秒
 5 as13335.saopaulo.sp.ix.br (2001:12f8::219:111) 37.315 毫秒 37.366 毫秒 37.332 毫秒
 6 2400:cb00:97:1024::ac44:1169(2400:cb00:97:1024::ac44:1169)23.845 毫秒 2400:cb00:97:1024::ac44:1229(2400:cb00:97:1024::ac44:1229)24.424 毫秒 2400:cb00:97:1024::ac44:1195(2400:cb00:97:1024::ac44:1195)24.889 毫秒

据我所知,两者最后追踪的 IP 完全不同。

反向跟踪路由输出:

traceroute to 2804:21ac:2d:ba01::3 (2804:21ac:2d:ba01::3), 50 hops max, 80 byte packets
 1  * * * * *
 2  2620:107:4000:4104:8000:0:6441:1120 (2620:107:4000:4104:8000:0:6441:1120) [*]  195.557 ms 2620:107:4000:4104:8000:0:6441:1060 (2620:107:4000:4104:8000:0:6441:1060) [*]  195.543 ms 2620:107:4000:4104:8000:0:6441:1020 (2620:107:4000:4104:8000:0:6441:1020) [*]  195.471 ms 2620:107:4000:4104:8000:0:6441:12e0 (2620:107:4000:4104:8000:0:6441:12e0) [*]  195.459 ms 2620:107:4000:4104:8000:0:6441:1220 (2620:107:4000:4104:8000:0:6441:1220) [*]  195.504 ms
 3  2620:107:4000:4104:8000:0:6442:8b6 (2620:107:4000:4104:8000:0:6442:8b6) [*]  195.492 ms 2620:107:4000:4104:8000:0:6442:8a2 (2620:107:4000:4104:8000:0:6442:8a2) [*]  195.479 ms 2620:107:4000:4104:8000:0:6442:87c (2620:107:4000:4104:8000:0:6442:87c) [*]  195.402 ms 2620:107:4000:4104:8000:0:6442:834 (2620:107:4000:4104:8000:0:6442:834) [*]  195.448 ms 2620:107:4000:4104:8000:0:6442:832 (2620:107:4000:4104:8000:0:6442:832) [*]  195.435 ms
 4  2620:107:4000:4104:8000:0:6442:a8c (2620:107:4000:4104:8000:0:6442:a8c) [*]  195.423 ms 2620:107:4000:4104:8000:0:6442:b0a (2620:107:4000:4104:8000:0:6442:b0a) [*]  1.314 ms 2620:107:4000:4104:8000:0:6442:b82 (2620:107:4000:4104:8000:0:6442:b82) [*]  199.132 ms 2620:107:4000:4104:8000:0:6442:bae (2620:107:4000:4104:8000:0:6442:bae) [*]  2.826 ms 2620:107:4000:4104:8000:0:6442:b22 (2620:107:4000:4104:8000:0:6442:b22) [*]  199.134 ms
 5  2620:107:4000:4104:8000:0:6442:625 (2620:107:4000:4104:8000:0:6442:625) [*]  1.440 ms 2620:107:4000:4104:8000:0:6442:749 (2620:107:4000:4104:8000:0:6442:749) [*]  400.424 ms 2620:107:4000:4104:8000:0:6442:60b (2620:107:4000:4104:8000:0:6442:60b) [*]  199.090 ms 2620:107:4000:4104:8000:0:6442:7ad (2620:107:4000:4104:8000:0:6442:7ad) [*]  199.074 ms 2620:107:4000:4104:8000:0:6442:72d (2620:107:4000:4104:8000:0:6442:72d) [*]  199.062 ms
 6  2620:107:4000:4104:8000:0:6442:48f (2620:107:4000:4104:8000:0:6442:48f) [*]  199.004 ms 2620:107:4000:4104:8000:0:6442:47f (2620:107:4000:4104:8000:0:6442:47f) [*]  198.991 ms 2620:107:4000:4104:8000:0:6442:44f (2620:107:4000:4104:8000:0:6442:44f) [*]  4.478 ms 2620:107:4000:4104:8000:0:6442:46f (2620:107:4000:4104:8000:0:6442:46f) [*]  9.556 ms 2620:107:4000:4104:8000:0:6442:45f (2620:107:4000:4104:8000:0:6442:45f) [*]  4.432 ms
 7  2620:107:4000:4104:8000:0:6441:a01 (2620:107:4000:4104:8000:0:6441:a01) [*]  0.220 ms 2620:107:4000:4104:8000:0:6441:941 (2620:107:4000:4104:8000:0:6441:941) [*]  0.357 ms 2620:107:4000:4104:8000:0:6441:ae1 (2620:107:4000:4104:8000:0:6441:ae1) [*]  2.960 ms 2620:107:4000:4104:8000:0:6441:8a1 (2620:107:4000:4104:8000:0:6441:8a1) [*]  2.947 ms 2620:107:4000:4104:8000:0:6441:9c1 (2620:107:4000:4104:8000:0:6441:9c1) [*]  0.349 ms
 8  2620:107:4000:2::6f (2620:107:4000:2::6f) [*]  2.915 ms 2620:107:4000:2::70 (2620:107:4000:2::70) [*]  2.921 ms 2620:107:4000:2::86 (2620:107:4000:2::86) [*]  2.909 ms 2620:107:3000::16 (2620:107:3000::16) [AS16509]  2.878 ms 2620:107:4000:2::70 (2620:107:4000:2::70) [*]  2.762 ms
 9  * * * * *
10  2620:107:4000:2::76 (2620:107:4000:2::76) [*]  2.265 ms 2620:107:3000::b (2620:107:3000::b) [AS16509]  2.253 ms  2.228 ms  2.215 ms 2620:107:4000:2::78 (2620:107:4000:2::78) [*]  2.195 ms
11  2620:107:4000:8000::41 (2620:107:4000:8000::41) [*]  196.921 ms *  196.883 ms  196.869 ms 2620:107:4000:8000::43 (2620:107:4000:8000::43) [*]  196.848 ms
12  2620:107:4000:9018::c (2620:107:4000:9018::c) [*]  196.831 ms * 2620:107:4000:9011::9 (2620:107:4000:9011::9) [*]  9.146 ms 2620:107:4000:9011::b (2620:107:4000:9011::b) [*]  10.039 ms 2620:107:4000:9018::28 (2620:107:4000:9018::28) [*]  14.033 ms
13  * * * 2620:107:4000:9011::48 (2620:107:4000:9011::48) [*]  192.298 ms *
14  * 2620:107:4000:9018::46 (2620:107:4000:9018::46) [*]  10.145 ms * * *
15  2620:107:4000:9018::16 (2620:107:4000:9018::16) [*]  197.604 ms 2620:107:4000:9018::10 (2620:107:4000:9018::10) [*]  197.584 ms 2620:107:4000:9018::e (2620:107:4000:9018::e) [*]  197.560 ms 2620:107:4000:9018::14 (2620:107:4000:9018::14) [*]  197.548 ms 2620:107:4000:9018::13 (2620:107:4000:9018::13) [*]  197.589 ms
16  2001:1498:1::100:145 (2001:1498:1::100:145) [AS12956]  203.261 ms  203.267 ms 2620:107:4000:9019::26 (2620:107:4000:9019::26) [*]  197.540 ms 2001:1498:1::100:145 (2001:1498:1::100:145) [AS12956]  203.805 ms 240e:20:1800::db:b511 (240e:20:1800::db:b511) [AS4134]  397.512 ms
17  2804:1e48::4e2 (2804:1e48::4e2) [AS4809]  197.501 ms 2620:107:4000:9019::2f (2620:107:4000:9019::2f) [*]  197.741 ms 2001:1498:1::100:138 (2001:1498:1::100:138) [AS12956]  197.754 ms 2620:107:4000:9019::2b (2620:107:4000:9019::2b) [*]  197.694 ms 2804:1e48::4e2 (2804:1e48::4e2) [AS4809]  208.799 ms
18  2804:138:8fff:ffff:198:19:255:102 (2804:138:8fff:ffff:198:19:255:102) [AS11432]  210.635 ms  199.425 ms  199.652 ms  399.339 ms 2620:107:4000:9019::2e (2620:107:4000:9019::2e) [*]  199.426 ms
19  2620:107:4000:9019::46 (2620:107:4000:9019::46) [*]  199.413 ms 2804:138:8fff:deae::e2 (2804:138:8fff:deae::e2) [AS11432]  204.169 ms 2620:107:4000:9019::43 (2620:107:4000:9019::43) [*]  199.305 ms 2620:107:4000:9006::7b (2620:107:4000:9006::7b) [*]  199.363 ms 2804:138:8fff:deae::e2 (2804:138:8fff:deae::e2) [AS11432]  399.311 ms
20  2620:107:4000:9006::10 (2620:107:4000:9006::10) [*]  199.262 ms 2620:107:4000:9019::21 (2620:107:4000:9019::21) [*]  199.235 ms 2804:21ac:100::20a (2804:21ac:100::20a) [AS264566]  399.464 ms  399.444 ms  399.425 ms
21  2804:21ac:2d:ba01::3 (2804:21ac:2d:ba01::3) [AS264566]  399.408 ms  200.372 ms  401.845 ms * *

相关内容