Please follow the below template, it will help us to help you!
Expected Behaviour:
The dashboard should show statistics.
Actual Behaviour:
After some hours of bringing up the Pi-Hole the Dashboard stops responding. I have to delete the database in order to make the dashboard work again.
I am using the diginc/pi-hole container. On both R-Pi and on an ubuntu VM. The same result happens on both, whichever I configure as the primary DNS server on my local home network.
I am using both IPv4 and IPv6 on my network and here is an example of the docker-compose I am using for both Pi-Hole instances:
root@2731a810a927:/# service pihole-FTL status -l
up (pid 681) 32503 seconds
root@2731a810a927:/# service dnsmasq status -l
up (pid 679) 32506 seconds
One thing I did notice is that due to OSX's IPV6 privacy extensions I am seeing over 1K Clients on the primary PI-Hole.
I am disabling IPV6 on the Pi-Hole's and on my local network to see if the dashboard continues to work for 24 hours.
As for a a more descriptive explanation of the problem - The WebUI would become unresponsive, many times I would get a 503 error when trying to connect and other times the page shows up but with no data. Sometimes I can login to the admin page (without any data showing up) and others when I input the password it would time-out with a 500 error.
In all of the above, deleting/stopping the container and recreating/starting it wouldn't solve the problem.
What would, is deleting the pihole-FTL.db and then restarting the container. Then the dashboard would work again, at least until it stops responding again.
When this happens, requests are still blocked by dnsmasq though.
I'll report back in tomorrow or the next day or so with the results of my test of removing IPV6 from the situation.
From my observations, the temporary address assigned by OSX for the link is only considered good for a period of 24 hours per interface or whenever there is a state transition for the interface. All of my OSX devices (iphones, ipads, and macbooks) are wireless and i like in a highly congested wifi community so there are times where I see several temporary addresses on my interface.
For detail, see this article from AnandTech about OSX Sierra: Link.
At a high level apple instituted an ephemeral IPv6 address (starting from Lion) where as the OS will generate a randomly generated IPv6 Address per interface to maintain user privacy, originally created from rfc4941 and likely based on rfc7217. There is alot of history here but long story short IPv6 was created before modern technologies for tracking people existed and this mitigates it.
Keeping true to form of poorly documenting alot of OSX internals, there is very little Official information from Apple on this. The Anandtech article makes some observations about this behavior.
If you just google "OSX sierra IPV6 privacy" you will see many people talking about this feature.
I'll do some reading. All my OSX (3) and IOS (5) devices are wireless, all have reserved IP addresses and 24 hour DHCP leases from my router, all are running latest software (OSX 10.13.5 and IOS 11.4.1).
Do you need IPV6 for a particular reason? On a home network, IPV4 works fine, and as far as I know all ISP's are providing IPV4 addresses to your modem. if you switch it off, you'll avoid the overhead and hassle that comes with it.
Also, this is for SLAAC. If you are not using SLAAC, then the behavior might be different but I suspect the behavior is the same. I haven't been able to successfully get DHCPv6 working (state-full or stateless) on my firewall so for now its all SLAAC.
I think the temporary address is very good for privacy so I don't want to disable it but have hundreds or thousands of clients in pi-hole for around 20 devices really can be annoying.
I work in technology, specifically in the networking field, and having IPv6 is very beneficial for some of my use cases.
At home I will be setting up v4, v6, and dual-stack networks. Ideally Pi-Hole will be on a dual-stack network.
My next step assuming I have no issues with the Pi-Holes running with only v4 my next plan is to move to v6 only to see what the outcome is.
I even looked at the FTL database with sqlite3 and everything looks fine with a superficial inspection so I am leaning towards something with php but will dig into that after I can determine if the issues are directly relate to v6.
If you're going to go dual-stack or native IPv6 then the suggested setup is using ULA addressing, while you can use GUA we've found that most ISP's will rotate the allocated address space.
Thanks, but I have business internet with a /29 of v4 and a delegated public /60 v6 block that my home firewall cascades to /64's for my home subnets. The addresses do not change.
Just to report in, my plan to setup a v6 only subnet is not really feasible without me going through the hoops of configuring NAT64/DNS64 which is more than I want to go through right now.
On other notes, I changed the configuration of my pi-holes (one running on an ubuntu VM 16.04.4 and the other on a rPi-3) to be only IPv4 and they have been stable / fine for 2 weeks.
I will switch back to dual stack for both to see what happens and report back.