大网数据广告活动
服务器运维问答

wget to an IPv4 server from IPv6-only VPS

· 52CE 我爱测

I have a CentOS 7 VPS which does not have IPv4, and only has IPv6 networking . I've opened up Port 443 for accepting all TCP connections. When I attempt to wget https://www.litespeedtech.com/packages/6.0/lsws-6.0RC1-ent-x86_64-li…

问题原文

原帖链接 · Sayan J. Das · CC BY-SA 4.0

I have a CentOS 7 VPS which does not have IPv4, and only has IPv6 networking. I've opened up Port 443 for accepting all TCP connections.

When I attempt to wget https://www.litespeedtech.com/packages/6.0/lsws-6.0RC1-ent-x86_64-linux.tar.gz, it throws an error (which I believe is because https://litespeedtech.com/ is not IPv6 enabled):

Resolving www.litespeedtech.com (www.litespeedtech.com)... 52.55.120.73
Connecting to www.litespeedtech.com (www.litespeedtech.com)|52.55.120.73|:443... failed: No route to host.

When attempting the same for Google (which is IPv6 enabled) wget https://google.com, it succeeds:

Resolving www.google.com (www.google.com)... 2a00:1450:4016:805::2004, 172.217.23.68
Connecting to www.google.com (www.google.com)|2a00:1450:4016:805::2004|:443... connected.
HTTP request sent, awaiting response... 200 OK

How can I connect to IPv4 servers from my IPv6-only VPS? I've heard about TunnelBroker but I'm a complete newbie and have no idea on what I should do to configure it.

已采纳解答

原帖链接 · Sayan J. Das · CC BY-SA 4.0

The solution was to change to Debian 10 (although this should also work for Ubuntu) and replace nameservers in /etc/resolv.conf to use this Public NAT64 handoff service:

search blue.kundencontroller.de
options rotate
nameserver 2a00:1098:2b::1
nameserver 2a00:1098:2c::1
nameserver 2a01:4f8:c2c:123f::1
nameserver 2001:67c:2b0::4
nameserver 2001:67c:2b0::6

Please note that the resolv.conf is specifically for EUServ VPS-es. If you're using some other VPS, copy and paste only the nameservers

This allowed the VPS to (quite magically) access the IPv4 internet (yes, even installing packages from IPv4 vendor sites).

This service is run by a single individual, who also has access to all of your IPv4 traffic and all of your DNS traffic. If you are passing sensitive data or are making a serious website, I think the best bet is to get a IPv4 supported VPS as of now. You can also use this to download some package you weren't able to, and then revert back to your original nameservers.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-08-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。