最近发现清华和北外的开源镜像站无法通过 IPv4 访问,用 Wireshark 抓包可以看到对端返回了 [RST, ACK] 强制断开了连接。
IPv6 可以正常访问,这种情况大家有遇到过吗?是我的 IP 段被封禁了吗?
❯ curl -H 'host: mirrors.tuna.tsinghua.edu.cn' http://[2402:f000:1:400::2]
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.22.1</center>
</body>
</html>
~
❯ curl -H 'host: mirrors.tuna.tsinghua.edu.cn' http://101.6.15.130
curl: (7) Failed to connect to 101.6.15.130 port 80 after 2348 ms: Could not connect to server
❯ curl -H 'host: mirrors.bfsu.edu.cn' http://39.155.141.16
curl: (7) Failed to connect to 39.155.141.16 port 80 after 2163 ms: Could not connect to server
~ took 2s
❯ curl -H 'host: mirrors.bfsu.edu.cn' http://[2409:8700:2482:710::fe55:2840]
<!DOCTYPE html> <html lang="zh-Hans"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="北京外国语大学开源软件镜像站,致力于为国内和校内用户提供高质量的开源软件镜像、Linux 镜像源服务,帮助用户更方便地获取开源软件。本镜像站
1
yinmin 161 天前 via iPhone ![]() 我访问正常。另外,curl 有 -4 和 -6 参数,可以方便测试域名的 ipv4 和 ipv6 地址,不要写-H host
|
2
catsnl 161 天前 via iPhone
重新拨号换个 ip 试试
|