yubiuser/pihole_adlist_tool

Instructions?

oywino opened this issue · 7 comments

Could you please provide a step-by-step guide on how to install/use this tool?

Rgds
newbie

You download the tool, either via git clone or link.
Make the script executable chmod +x ./pihole_adlist_tool and run it with ./pihole_adlist_tool

It works, but I got a number of messages like this, sometimes up to 8 identical lines consecutively :
sudo: unable to resolve host <lxc_container_name>
(I put <lxc_container_name> above instead of the real name of my container)
Does this indicate that parts of the script failed to execute due to lack of required privileges?

Are you running pihole within a container?

I have a bare metal pihole installation and the tool was designed for that. I don't know if it works with containers.
The script does only need sudo for writing to the pihole database, not to resolve any hostnames. Unless you choose to "enable all adlists" then a normal run of pihole gravity is performed. If that fails with the message above, you have network/DNS problem which is outside of the script.

Yes, I'm running Pi-Hole in an LXC container.
I have it set up using a static IP address and my DHCP server is configured to supply this IP as DNS to all clients.
It worked very well initially ( for a couple of years), but lately I experience that an increasing number of ads manages somehow to bypass Pi-Hole, even though I have increased the gravity DB with almost anything I could find of publicly available lists.
It seems this is a loosing battle where the core Pi-Hole technology (methodology) comes out short in the end.
Am I right?

There should be no apparent increase in ads if you haven't change your browsing habits. Most often it is due to DoH or IPv6, circumventing pihole. Please open an issue on https://discourse.pi-hole.net/ for that type of questions.

Closing due to inactivity.

Using docker and Portainer:
copy pihole_adlist_tool from lockal disk to container see: https://www.geeksforgeeks.org/copying-files-to-and-from-docker-containers
In portainer access pihole/Console
Run bash pihole_adlist_tool
Thats worked for me!