Hi,
I am currently struggling at enabling IPv6 for PiHole in a docker container.
At the moment I have a Raspi 4 running docker with 2 containers.
One is pihole, the other one i cloudflared.
Both connect on a separate macvlan network with a small IP Range /30 via IPv4.
The request from pihole with be forwarded to the cloudflared container at #5053 and everything is working smooth.
I now would like to replace my old Raspi 2B+ with a native pihole installation. The only thing that is missing, is ipv6 for pihole in docker.
And that is where the problems start.
At the moment I tried the following:
- I enabled IPv6 for Docker via /etc/docker/daemon.json:
{
"ipv6": true,
"fixed-cidr-v6": "2003:xxx:xxxx:xxxx::/64"
}
There is my first question. Is it correct to use the global ip range of eth0 or should I use the "fd00::/64" address?
- I created a new macvlan configuration with a /64 subnet for the IPv6 address and also created the network itself, connected it to the pihole container and added the IPv4 address. I left the IPv6 open to see what happens.
When the container is started, the inspect shows an IPv6 address and it is also pingable and I can connect to the website via that address to the admin panel.
But in the admin panel for the ipv4 and the ipv6 address only 0.0.0.0 and 0:0:0:0:0:0 is shown.
So what exactly do I have to do to enable ipv6 via macvlan for the pihole and cloudflared container and which address do I have to use?
Thanks a lot in advance.
shirocko