我在我拥有的 VPS(Debian 8.6)上遇到了奇怪的行为,老实说,我已经到了不知道如何进一步调查或修复它的地步。
据我所知,操作系统只能处理对 IPv6 地址的传出请求,而不能处理对 IPv4 地址的传出请求:
在 IPv4 上对谷歌的 curl 请求:
$ curl -v -4 google.be
* Rebuilt URL to: google.be/
* Hostname was NOT found in DNS cache
* Trying 172.217.17.67...
* connect to 172.217.17.67 port 80 failed: Connection timed out
* Failed to connect to google.be port 80: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to google.be port 80: Connection timed out
Run Code Online (Sandbox Code Playgroud)
跟踪路由到 IPv4 上的谷歌:
$ traceroute 172.217.17.67
traceroute to 172.217.17.67 …
Run Code Online (Sandbox Code Playgroud)