Heard of pi-hole in the german c't magazine about 2 weeks ago and ordered a new Raspberry Pi 3B+ set with power supply, case, HDMI cable and heatsinks for the chips. Everything is up and running, pi-hole works fine. However I have two questtions:
I have a NAS within my network where I habe stored a own blocklist hosts-file. At the moment this list will be uploaded with a batch file to a web server, so pi-hole can find and use it - that works fine. Now i just want to remove that unnessesary way and let pi-hole load the list from the NAS. The NAS share is already mounted to the Rasberry via fstab and I can access it from the SSH shell of the Pi. But whatever URL I use: I was not able to get pi-hole load the Blocklist directly from the mounted share (/mnt/nas/...). Is there some kind of trick? One possible solution might be to install apache onto the Pi or the NAS, but that would be overkill as a workaround.
The second thing that nags me is, that the web interface shows only 10 queries of the QueryLog by default - on every reload of the page I set this to "All". Is there any way to preconfigure this to "All"?
You would need to edit the /etc/pihole/adlists.list and create an entry to your adblock file: file:///mnt/nas/FILENAME
Save the list and update either via the admin interface or pihole -g
You will see that the "local file" was retrieved and parsed.
It's defaulting to that setting because it's a lot faster to load 10 queries at a time (where as loading all, could take a little bit of time (cause hangs and unresponsiveness if you have thousands of queries).
The file is accessible and works if loaded from a webserver.
And about the second thing: I don't care really if the Pi get's busy since this is a private network with approx. 30 clients maximum and it's a powerful Pi 3B+.
Hmm, we may be able to add this, but I vaguely recall that there was a Javascript problem when I stopped working on this about one and a half years ago... It may be time to look into this again.
file:// is the protocol, just as https://, ftl://, etc. and /mnt/nas/sicherung/HOSTS/HOSTS.txt is the file name, summing up to three / in total:
That was it! Thank you very much. Had a variant with 4 slashes, but not three. List does not appear in the web interface, but it is loaded and should work though
I would much like the option to change this default. I rarely look at 10, I usually look at 100 or all. A configuration option to change this default would be very nice.