Apt-get with IPv6 only network

Kernels & Hardware, configuring network, installing services

Apt-get with IPv6 only network

Postby anthonyfee » 2020-12-07 10:57

Hi all,

I am currently setting up an IPv6 only server configuration and I'm having issues with apt-get. I can confirm that my IPv6 network is functioning correctly as I can connect the server to a cloud service that I host and can ping google etc. which resolves to an IPv6 address. Right now I have an IPv4 network connected also for testing purposes so I am using the ForceIPv6 option although I have also tested with IPv6 only network and without this option with the same result:

Code: Select all
> sudo apt-get -o Acquire::ForceIPv6=true update
Get:1 https://download.docker.com/linux/debian buster InRelease [44.4 kB]
Get:2 https://download.docker.com/linux/debian buster/stable amd64 Packages [14.0 kB]
Err:3 http://deb.debian.org/debian buster InRelease
  Could not connect to debian.map.fastlydns.net:80 (2a04:4e42:1b::644), connection timed out Unable to connect to deb.debian.org:http:


The address correctly resolves to IPv6 from deb.debian.org and but it fails to connect to the fastly servers. Are there any known issues with IPv6 configurations like this? I have tried on multiple servers with the same result.

I have also tried by using a repository address from the Debian repository list so that it does not use fastly. This seems to work fine. However, I will be shipping servers like this to multiple locations with the exact same configuration so manually changing the repository address based on the server location is not a solution for me.

I would appreciate anyone's input on this. This does appear to be a fastly issue so perhaps I should be redirecting this questions somewhere else?

Thanks,
Anthony
anthonyfee
 
Posts: 2
Joined: 2020-11-30 09:46

Re: Apt-get with IPv6 only network

Postby reinob » 2020-12-07 14:12

Code: Select all
$ telnet -6 debian.map.fastlydns.net 80
Trying 2a04:4e42:1b::644...
Connected to debian.map.fastlydns.net.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 500 Domain Not Found
Server: Varnish
Retry-After: 0
content-type: text/html
Cache-Control: private, no-cache
X-Served-By: cache-hhn4024-HHN
Content-Length: 220
Accept-Ranges: bytes
Date: Mon, 07 Dec 2020 15:00:49 GMT
Via: 1.1 varnish
Connection: close


<html>
<head>
<title>Fastly error: unknown domain </title>
</head>
<body>
<p>Fastly error: unknown domain: . Please check that this domain has been added to a service.</p>
<p>Details: cache-hhn4024-HHN</p></body></html>Connection closed by foreign host.


It does connect, and the server responds with something, so I guess it should work, and at least should not give you a "connection time out".
reinob
 
Posts: 865
Joined: 2014-06-30 11:42

Re: Apt-get with IPv6 only network

Postby anthonyfee » 2020-12-07 16:03

Thanks for the response. I tried the same and got:

Code: Select all
$ telnet -6 debian.map.fastlydns.net 80
Trying 2a04:4e42:1b::644...
telnet: Unable to connect to remote host: Connection timed out


I'll look into my server configuration to see if anything IPv6 specific could be blocking this, although I haven't modified anything from defaults for IPv6. This gives me a good data point anyway as now I know that it does actually work!

Thanks again.
Anthony
anthonyfee
 
Posts: 2
Joined: 2020-11-30 09:46


Return to System configuration

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable