How to get Pi-Hole to work with IPv6?
I got it working. Here's what I did:
- When I initially set up my Pi-Hole, I only had IPv4 on my system. Thus Pi-Hole only downloaded IPv4-capable blacklists.
- So I turned IPv6 on on my home router, and enabled DHCPv6.
- I turned IPv6 on on my Pi-Hole computer, and rebooted.
ip -o addr
then showed that I had an IPv6 address. Actually, it has a couple of addresses which I don't understand yet. - It still didn't block IPv6 domain names.
- I went into my computer (command line), and edited
/etc/pihole/setupVars.conf
. There I inserted my IPv6 address atIPV6_ADDRESS=2600:1700:(etc)
- I also edited
/etc/pihole/pihole-FTL.conf
, and addedAAAA_QUERY_ANALYSIS=yes
. - I restarted
pihole-FTL
with:systemctl restart pihole-FTL
- I went to the Pi-Hole web gui, and turned on DHCPv6 (SLAAC + RA). I turned on the Google IPv6 DNS checkboxes.
- I rebooted my system.
- I downloaded the blacklists again. This time it included IPv6 entries.
- I enjoyed the Internet again. I'm not against ads. I buy stuff that I've seen in ads. I do, however, object to being chased all over the Internet. I do not concur. And I do object to having my precious bandwidth consumed. It's too much, you advertisers. You've gone over the line and I'll be happy to do what I can in my power to ensure I take back a bit of my online experience.
What most people seem to miss is your IPv6 address is very likely to change if the prefix is issued by your ISP. But it turns out that doesn't matter in the least. So long as Pihole is not configured to issue IPv6 addresses, the only thing the IPv6 address is used for is to verify you have IPv6 enabled. You can actually use ANY public facing IPv6 address in the pihole configuration. Then in your router you configure the local IPv6 address. e.g. This is mine
fe80::b0fd:1813:5843:b9a23
You can configure your network settings so this won't change, ever.