我有一个家庭网络,位于 microtik 路由器后面(最简单的配置)。连接到路由器的计算机工作稳定,一切正常。带有 Ubuntu 的 WSL 无法在 http 上任何地方敲门,但一切都可以通过 https 运行。
有几台装有 vmware 的服务器,上面有装有 Ubuntu 的虚拟机,http 也无法在这些服务器上运行,但 https 可以运行
WSL 与 Ubuntu
$ curl https://google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>
$ curl http://google.com
No response (Empty console)
Ubuntu 优于 VMWare
$ sudo apt update
Err:1 http://ru.archive.ubuntu.com/ubuntu focal InRelease
Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable) Could not connect to ru.archive.ubuntu.com:80 (213.180.204.183), connection timed out
Err:2 http://ru.archive.ubuntu.com/ubuntu focal-updates InRelease
Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable)
Err:3 http://ru.archive.ubuntu.com/ubuntu focal-backports InRelease
Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable)
Err:4 http://ru.archive.ubuntu.com/ubuntu focal-security InRelease
Cannot initiate the connection to ru.archive.ubuntu.com:80 (2a02:6b8::183). - connect (101: Network is unreachable)