Jump to content

Pi-Hole Setup Tutorial

jakkuh_t
On 9/29/2019 at 4:34 AM, ThaDiode said:

i Need really Help with my PI-zero

 

i have setup my PI. only on my PC it blocks ads and not on my TV Youtube ads i see and i cant block them

if i Block them i block Youtube... Youtube hangs on LOADING screen....... Whats wrong with my setup. 

i'm blocking this ads for my kids

 

on my screenshot.. what and how can i block the ads ?

Screenshot_156.jpg

follow that new tutorial. You might need to flush all your dns cache too (mostly all kind of cache to be honest ). 

 

On 9/29/2019 at 5:37 AM, piplikoc said:

Hello, I don't know how to change the DHCP server. To the IP adress I have to write the raspberry's ip adress? 

And what to write to the Number of CPEs?

In the row, the first element is the raspberry.

dns.thumb.JPG.c44b0c6d3f48652a131c9a5da0063fdc.JPG

i can barely understand what you are trying to explain :S.

 

Link to comment
Share on other sites

Link to post
Share on other sites

I want to know what it is like using the raspberry pi's built-in wifi. Is it good enough for DNS use?

Link to comment
Share on other sites

Link to post
Share on other sites

23 hours ago, Your-Cat said:

follow that new tutorial. You might need to flush all your dns cache too (mostly all kind of cache to be honest ). 

 

i can barely understand what you are trying to explain :S.

 

What I have to write in each cells? That's my question.

Link to comment
Share on other sites

Link to post
Share on other sites

On 8/25/2019 at 11:45 AM, GameMaster2030 said:

On all newer versions it's still the same steps. Even Android P, which I have myself.

Actually no. Since Android 9.0, the only DNS option could find so far is to set a private one and it does not accept IP addresses. Hence why cloudfare release the 1dot1dot1dot1.cloudflare-dns.com
Therefore, if anyone has the solution to this, that'd be great. I'm trying to find out how to force this in command line but my phone ain't routed and even with dev mode activated I can't find a terminal.
Starting to wonder if I'm not gonna root it, at least it was more flexible.

Link to comment
Share on other sites

Link to post
Share on other sites

On 10/1/2019 at 1:46 PM, piplikoc said:

What I have to write in each cells? That's my question.

leave those setting as default... those are the setting for dhcp. 

You just need to change your dns ip for your raspberry pi ip. 

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/29/2019 at 9:07 PM, WeeemRCB said:

I'm pissed......

I'm loving the PiHole and have been tinkering with it a fair bit.

 

However, using it as a network "sniffer" I spotted that Facebook is somehow transmitting from my phone back to the mothership.

Android wouldn't let me uninstall FB, but I disabled it as soon as I got it (Samsung S9), so it shouldn't be doing anything.

 

But there it is in the PiHole logs :(

My other half uses FB, so unfortunately I can't block it (until PiHole Devs set up custom block rules per client)

 

PiHoleFB.png

The problem with facebook is that it have lots of api, therefor many web site and application use it. It might not be facebook it self that you see, but a web service owned by facebook that can do lots of thing. 

Link to comment
Share on other sites

Link to post
Share on other sites

Pi Zero with the standard blocklists

About 14 clients connected

As Router Sophos XG

Using only DNS from the pi, and use static ip mac mapping for it.

How come i got such low percentage ???

 

Feels like something wrong ...

 

cat setupVars.conf

PIHOLE_INTERFACE=eth0

IPV4_ADDRESS=172.16.16.172/24

IPV6_ADDRESS=

QUERY_LOGGING=true

INSTALL_WEB_SERVER=true

INSTALL_WEB_INTERFACE=true

LIGHTTPD_ENABLED=true

BLOCKING_ENABLED=true

DNSMASQ_LISTENING=single

PIHOLE_DNS_1=8.8.8.8

PIHOLE_DNS_2=8.8.4.4

DNS_FQDN_REQUIRED=true

DNS_BOGUS_PRIV=true

DNSSEC=false

CONDITIONAL_FORWARDING=false

 

172.16.16.50  SOPHOS XG FIREWALL
172.16.16.171 Linksys LGS326
172.16.16.2 TPLINK with OPENWRT FW

 

 

Schermafbeelding 2019-10-03 om 07.45.12.png

Link to comment
Share on other sites

Link to post
Share on other sites

On 10/4/2019 at 1:25 AM, VenimK said:

 

 

Schermafbeelding 2019-10-03 om 07.45.12.png

the fact that you have over 2.4 millions blacklist domains is weird af considering that pi-hole come with about 110 k by default. 

 

Did you just googled for adding all sort of list ?? 

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, Your-Cat said:

the fact that you have over 2.4 millions blacklist domains is weird af considering that pi-hole come with about 110 k by default. 

 

Did you just googled for adding all sort of list ?? 

Just added this one https://dbl.oisd.nl/

Link to comment
Share on other sites

Link to post
Share on other sites

Great guide, ordered a PI 0 W to recreate this. Its running now and I am happy, BUT I still have youtube ads. Anyone know what Blocklist LTT used to not get YT ads in their video? Thanks 

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

I have just set this up with a PI 4 B. I followed the link to the extra white listed domains and installed them too.

 

The thing on the whole is doing a good job. Some apps no longer have the annoying ads. YouTube is one that keeps getting through it. Though this only happens on the app. 

I have had to set this up on individual devices as my control freak modem doesn't let me change the DNS settings (blame the ISP). The graph is showing that it works, some of the time. I am still to see a huge change as only 4.7% of my ads are being blocked. So if anyone else knows different, I'd be welcome to suggestions.

 

Thanks

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Does anyone have a link on where to get a power supply for this?

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, BlazedSpork said:

Does anyone have a link on where to get a power supply for this?

For the Raspberry Pi? All the places I've seen that sell them have the power supplies as well...

Intel HEDT and Server platform enthusiasts: Intel HEDT Xeon/i7 Megathread 

 

Main PC 

CPU: i9 7980XE @4.5GHz/1.22v/-2 AVX offset 

Cooler: EKWB Supremacy Block - custom loop w/360mm +280mm rads 

Motherboard: EVGA X299 Dark 

RAM:4x8GB HyperX Predator DDR4 @3200Mhz CL16 

GPU: Nvidia FE 2060 Super/Corsair HydroX 2070 FE block 

Storage:  1TB MP34 + 1TB 970 Evo + 500GB Atom30 + 250GB 960 Evo 

Optical Drives: LG WH14NS40 

PSU: EVGA 1600W T2 

Case & Fans: Corsair 750D Airflow - 3x Noctua iPPC NF-F12 + 4x Noctua iPPC NF-A14 PWM 

OS: Windows 11

 

Display: LG 27UK650-W (4K 60Hz IPS panel)

Mouse: EVGA X17

Keyboard: Corsair K55 RGB

 

Mobile/Work Devices: 2020 M1 MacBook Air (work computer) - iPhone 13 Pro Max - Apple Watch S3

 

Other Misc Devices: iPod Video (Gen 5.5E, 128GB SD card swap, running Rockbox), Nintendo Switch

Link to comment
Share on other sites

Link to post
Share on other sites

5 hours ago, BlazedSpork said:

Does anyone have a link on where to get a power supply for this?

for what, the 0,1,2,3 or even 4 

Link to comment
Share on other sites

Link to post
Share on other sites

Ok, I've gone through the posted tutorial twice now, and it is not working. No ads are being blocked at all, and Pi-Hole isn't even detecting the ads that have played in the query log. I've followed the directions step by step, and it is just flat out not working. Is there something I did wrong? I don't understand.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Vortex88 said:

Ok, I've gone through the posted tutorial twice now, and it is not working. No ads are being blocked at all, and Pi-Hole isn't even detecting the ads that have played in the query log. I've followed the directions step by step, and it is just flat out not working. Is there something I did wrong? I don't understand.

You told your device to use the Pi-Hole's IP as the DNS? 

Intel HEDT and Server platform enthusiasts: Intel HEDT Xeon/i7 Megathread 

 

Main PC 

CPU: i9 7980XE @4.5GHz/1.22v/-2 AVX offset 

Cooler: EKWB Supremacy Block - custom loop w/360mm +280mm rads 

Motherboard: EVGA X299 Dark 

RAM:4x8GB HyperX Predator DDR4 @3200Mhz CL16 

GPU: Nvidia FE 2060 Super/Corsair HydroX 2070 FE block 

Storage:  1TB MP34 + 1TB 970 Evo + 500GB Atom30 + 250GB 960 Evo 

Optical Drives: LG WH14NS40 

PSU: EVGA 1600W T2 

Case & Fans: Corsair 750D Airflow - 3x Noctua iPPC NF-F12 + 4x Noctua iPPC NF-A14 PWM 

OS: Windows 11

 

Display: LG 27UK650-W (4K 60Hz IPS panel)

Mouse: EVGA X17

Keyboard: Corsair K55 RGB

 

Mobile/Work Devices: 2020 M1 MacBook Air (work computer) - iPhone 13 Pro Max - Apple Watch S3

 

Other Misc Devices: iPod Video (Gen 5.5E, 128GB SD card swap, running Rockbox), Nintendo Switch

Link to comment
Share on other sites

Link to post
Share on other sites

Ok, didn't realize I had to set the DNS that way. I'm pretty much a noob when it comes to networking. 

 

It's working on banner ads now, but ads on youtube videos are still making it through. Any idea on how to stop youtube ads?

Link to comment
Share on other sites

Link to post
Share on other sites

On 10/21/2019 at 3:49 PM, Vortex88 said:

Ok, didn't realize I had to set the DNS that way. I'm pretty much a noob when it comes to networking. 

 

It's working on banner ads now, but ads on youtube videos are still making it through. Any idea on how to stop youtube ads?

they are really hard to block since google provide their own api, and so, can be changed every time they want. i use an add block for youtube only

Link to comment
Share on other sites

Link to post
Share on other sites

So I got everything working, as far as I know, updated the pi zero 1.3 and I can log in.  I went through the pi-hole setup, and I got close to the end, but didn't get the login info page at the end, it just went back to the regular command prompt.  Now when I try to type in the pi-hole install command, it says


curl: (6) Could not resolve host: install.pi-hole.net

 

So I was not presented with any way to log into pi-hole and I can't seem to reinstall pi-hole....any thoughts?

 

I'm a complete complete complete beginner to everything here.

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...
On 10/25/2019 at 11:20 PM, AKing92 said:

So I got everything working, as far as I know, updated the pi zero 1.3 and I can log in.  I went through the pi-hole setup, and I got close to the end, but didn't get the login info page at the end, it just went back to the regular command prompt.  Now when I try to type in the pi-hole install command, it says


curl: (6) Could not resolve host: install.pi-hole.net

 

So I was not presented with any way to log into pi-hole and I can't seem to reinstall pi-hole....any thoughts?

 

I'm a complete complete complete beginner to everything here.

1) try to go in your ip/admin to get ypur pi-hole http page, then it will give you the way to change the password with a command 

 

2) try to run every thing with sudo. If you don't you might receive some strange message that seem unrelated because a command can call another command (exemple: script in a script) so if you don't use sudo, you might receive the error from some thing that happen later in the command. 

Link to comment
Share on other sites

Link to post
Share on other sites

Hey !

I have been running my Pi-Hole with the Raspberry zero for about 1 month now and for the past week or so it keeps crashing, like the Pi itself stops responding to anything ( Admin page,SSH, pings) I know its not my router because if I set a secondary DNS I still have access to internet but I dont if I don't set a 2nd one. It was working for a full month but not it just does not want to anymore. Any ways to see where the issue might be at ? 

I tried unplugging / re-plugging and it work for 1-2 mins then crashes again.

Thanks a lot !

Link to comment
Share on other sites

Link to post
Share on other sites

Well it took me some 3 hours and a lot of info hunting, but I got it done! Thank you team LTT! 

*took a lot longer as I'm a mac user and had to find the appropriate programs and such.

Thanks again!

KC

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/24/2019 at 5:39 PM, Cuzza said:

This is one of the hardest projects for me honestly, has taken several days and now I hit the final road block, while login into the SSH. Connection REFUSED.409549214_Screenshot2019-09-24at17_57_19.thumb.png.78a175c8f9b981ed0f00e0dc8aa67b25.png

Hi ? 

Just had the same thing happen to me. I guess you made the "extentionless SSH file" on your Mac? 

At least that's what I did, and I coild not get that to work what so ever. Try downloading the SSH file from the step by step guide and copy that onto the SD card. Or create the extentionless file on a Windows computer. 

 That did the trick for me ?

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/13/2019 at 1:36 PM, tuty4amxx said:

For youtube ads, you have to run this. :) It will find all the ads, then add them to the blocklist.

 

https://github.com/kboghdady/youTube_ads_4_pi-hole


For the crontab, I recommend setting it to every minute, rather than 4 hours.

You might need to add chmod +x youtube.sh in the folder. Otherwise it will not work on raspbian

 

 

Or follow the steps here:

 

1. Git clone the project by copying and pasting git clone https://github.com/kboghdady/youTube_ads_4_pi-hole.git into the Pi terminal

2. Go to the folder cd youTube_ads_4_pi-hole

3. Apply chmod by copying and pasting the following command chmod +x youtube.sh into the Pi terminal

4. Copy and paste this command and hit enter: sudo crontab -e 
5. It will open a file using nano text editor, I think. Scroll down until the end of the file by using DOWN ARROW key.

6. Either paste this cron tab which runs every 4 hours: 0 */4 * * * sudo /home/pi/youTube_ads_4_pi-hole/youtube.sh >/dev/null or this one 0 * * * * sudo /home/pi/youTube_ads_4_pi-hole/youtube.sh >/dev/null which will run every minute.

7. Press CTRL + O, hit ENTER then finally hit CTRL + X.

 

Thanks for the walkthrough:-) 

Still getting ads on youtube though ?

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/24/2019 at 11:39 AM, Cuzza said:

This is one of the hardest projects for me honestly, has taken several days and now I hit the final road block, while login into the SSH. Connection REFUSED.409549214_Screenshot2019-09-24at17_57_19.thumb.png.78a175c8f9b981ed0f00e0dc8aa67b25.png

The latest versions of pi OS come with SSH disabled. There is a solution that involves adding an SSH file to your flash. 

 

To enable SSH automatically every time the Pi starts you need to :

 1) Prepare a fresh SD card with the latest version of Raspbian
 2) Insert the SD card in your PC
 3) Create a file on the boot partition named “ssh”
 4) Eject the SD card, insert into your Pi and power it up
When the Pi boots SSH is enabled by default.

 

Or you could just hook a keyboard up to it and enable SSH, here are the steps I used:

 

sudo systemctl enable ssh
sudo systemctl start ssh

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×