CentOS7 – How to Use wget to IPv4 Server from IPv6-Only VPS

centos7ipv6

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.

Best Answer

IPv6 and IPv4 are different protocols. If you only have IPv6 address in Internet space, you cannot connect directly to IPv4 only services. It's really short answer - "no, you can't".

TunnelBroker and other free services offers only tunnels in other directions, i.e. from IPv4 to IPv6 and not vice-versa as far as I know. You can set up your own tunnel on another host running dual-stack (both IPv4 and IPv6) or try to find some commercial service for that purpose, but this is out of scope of Server Fault and I doubt that this is what you need.

For downloading a file you can use other PC and just transfer it to your IPv6 box over SSH.