Setting Up A Pi-hole Network Ad Blocker On A Raspberry Pi Zero W, Step by Step

  Переглядів 179,141

Michael Klements

Michael Klements

3 роки тому

In this video, I'll show you, step-by-step, how to assemble and set up a Pi-Hole ad blocker on your home WiFi network using a Raspberry Pi Zero W. Pi-Hole is a fantastic piece of software to create a network-wide ad blocker without the need for browser plugins, apps or any other software on the devices on the network. It'll block ads, improve your network speed, and save data if you're on a limited data plan.
Here's a step by step written guide - www.the-diy-life.com/setting-...
You can find out more about the Pi-Hole software here - pi-hole.net/
What You Need For This Project
Raspberry Pi Zero W Complete Kit - amzn.to/3kNfIgh
Alternately -
Raspberry Pi Zero W - amzn.to/34KlMAv
32GD Micro SD Card - amzn.to/3mJ4Q3m
Raspberry Pi Zero Case - amzn.to/325DOeJ
Power Supply - amzn.to/2JmjMpH
If you've got any ideas for Raspberry Pi, Arduino, or other tech and electronics projects, let me know in the comments section.

КОМЕНТАРІ: 366
@MA6manalac
@MA6manalac 3 роки тому
this video's ads are the last ads I'll ever watch again!
@LighteningOne
@LighteningOne 3 роки тому
No you won't. Pi-hole does not block youtube ads because these are shown through the same video stream link from where the video is being streamed. Try U-origin.
@TF12191
@TF12191 2 роки тому
@@LighteningOne brave browser, on any device ;)
@patricklomasney
@patricklomasney 2 роки тому
@@TF12191 or UKposts Vanced
@biljoe209
@biljoe209 2 роки тому
lol, lmao
@abac6404
@abac6404 3 місяці тому
​@@LighteningOne😢
@barrykruyssen
@barrykruyssen 2 роки тому
Great tutorial. Good pace, no extraneous content (bullsh1t) . Precise and to the point. Your my number one Pi source now.
@MichaelKlements
@MichaelKlements 2 роки тому
Thanks Barry!
@4209211vikash
@4209211vikash Рік тому
Instantly subscribed. This is the first video I have seen from you and it was precisely the kind of video audiences wants. NO beating around the bush, cut to the chase, focused tutorial. Keep up the good work mate.
@MichaelKlements
@MichaelKlements Рік тому
Thank you for the great feedback!
@Maxplanar1
@Maxplanar1 2 роки тому
This is a model for how all tech setup videos should be done. Excellent video Michael, thank you.
@MichaelKlements
@MichaelKlements 2 роки тому
Thank you for the great feedback!
@ryanmerkel4832
@ryanmerkel4832 2 роки тому
Great tutorial. Thank you! Was super simple and worked flawlessly!
@harbirsaini665
@harbirsaini665 3 роки тому
Thanks I was looking for this , can’t wait for my pi zero w to arrive
@shimon8139
@shimon8139 Рік тому
BTW Michael thank you for the tutorial. very straight to the point and easy to understand.
@delubiod1970
@delubiod1970 2 роки тому
I tried at least 6 tutorials before bumping into your tutorial. Those two files to add to the partition boot was missing in all of the 6 tutorials I watched. I was not able to make it to work. Now is working like a charm.
@MichaelKlements
@MichaelKlements 2 роки тому
That's great to hear, enjoy your Pi-hole!
@MrAlan0151
@MrAlan0151 2 роки тому
Works great thank you for all your advice, your a star.
@TheKickboxingCommunity
@TheKickboxingCommunity 2 роки тому
It works! But some ads still come through, so I hope you have tutorials for this also ( to add more domains on the blocklist etc )
@PunjabrangDotCom
@PunjabrangDotCom 2 роки тому
True amazing video, no play.straight to the point.
@AdamSmith-oe3hu
@AdamSmith-oe3hu 3 роки тому
Amazing work Michael, thank you for making this process so simple to understand
@MichaelKlements
@MichaelKlements 3 роки тому
Glad it was useful to you!
@TimothyEdDoran
@TimothyEdDoran 3 роки тому
Thanks for the great instructions. It has worked perfectly for me.
@MichaelKlements
@MichaelKlements 3 роки тому
That’s great Tim!
@AzizLomigora
@AzizLomigora 2 роки тому
Amazing tutorial, thank you so much!
@uknowme1811
@uknowme1811 3 роки тому
I set a music sserver and pi holle on my 0..no issues works great.
@onegalaxyplay
@onegalaxyplay 2 роки тому
Ok I will also do that than.
@andriusvitalis1701
@andriusvitalis1701 2 роки тому
this works so good! thanks dude
@techdiyer5290
@techdiyer5290 2 роки тому
Thanks!! i couldn't find out which text that was.
@gabrieltoothman7534
@gabrieltoothman7534 2 роки тому
Best tutorial out there👍
@Cevans3535
@Cevans3535 3 роки тому
Thank you very much for your time creating this easy to follow video!
@MichaelKlements
@MichaelKlements 3 роки тому
Thanks for the great feedback, glad you managed to get yours running!
@alexandernewman331
@alexandernewman331 2 роки тому
just wanted to say thanks and give a heads up on an issue I had for others. some provided gateways from ISPs will not let you change the DNS server in their settings and the DNS server is actually hardcoded in the gateway. you can get around this by changing the preferred DNS server in each of your device's settings or I have read you can also use the raspberry pi built-in DHCP server to get around it(haven't tried this).
@MichaelKlements
@MichaelKlements 2 роки тому
Thanks for the tip!
@cobra646
@cobra646 2 роки тому
This is correct. I have used a Huawei B593 4G modem/router with a firmware that did not allow for changing the DNS. So I did it manually on the devices used in the network and it worked fine. Just meant going around and finding all the phones/tablets/laptops around the house.
@winstonwolf2981
@winstonwolf2981 3 роки тому
Thanks, very helpful
@moo00se
@moo00se 2 роки тому
Thanks a lot! Easy to follow. I totally dig the written piece to go along with the video as well. Liked & subcribed. :D
@MichaelKlements
@MichaelKlements 2 роки тому
Thank you, glad you find it useful!
@gringotom242
@gringotom242 2 роки тому
Thanks mate great guide!
@Gandalfnation
@Gandalfnation 2 роки тому
very good tutorial thank you!
@PetriJarvenpaa
@PetriJarvenpaa Рік тому
Really helpful, thank you!
@terriblegamer9267
@terriblegamer9267 3 роки тому
THANKYOU SIR!
@LorenzoDeSousa
@LorenzoDeSousa 3 роки тому
got my pi hole running as a docker container inside open media vault , works great just use the raspberry pie ip and port that specified to access the web gui, the reason i like this is one pi 4 runs a mini nas, pi-hole and is my torrent box :P
@MichaelKlements
@MichaelKlements 3 роки тому
Great idea Lorenzo! Docker is great for creating multi-function Pi's, especially for network applications.
@sammyy1105
@sammyy1105 Рік тому
very easy to follow thanks!
@kaaneris2757
@kaaneris2757 2 роки тому
Great tutorial!
@Ice_2192
@Ice_2192 2 роки тому
Setting a static ip is SUPER IMPORTANT. I didn't do that first time and my router thought my mac mini and pi were the same person and immediately took down my access to the internet.
@MichaelKlements
@MichaelKlements 2 роки тому
Yes you really need to set a fixed IP address for a Pi-hole.
@lrellim7269
@lrellim7269 2 роки тому
@@MichaelKlements and how do you do that? Can you set up a static even if your internet provider doesnt allow
@ShyneflowLC
@ShyneflowLC 3 роки тому
My Pi zero w is on the way!
@ShyneflowLC
@ShyneflowLC 3 роки тому
Ended up doing it with a different pi zero w case that was clear and made it look cool
@acorchia
@acorchia 2 роки тому
Thanks Michael! This was a great vid to follow up on! I think if I leave some secondary dns it should be a good backup in the rare case the pi doesn't come up, right?
@MichaelKlements
@MichaelKlements 2 роки тому
Yes if your router allows for it that'll be good. Just be aware that some routers just use the two interchangeably, so it doesn't try the primary and if that fails it tries the secondary, it just sends some requests to the primary and some to the secondary.
@acorchia
@acorchia 2 роки тому
@@MichaelKlements Thanks for the extra info!
@MikeWeids
@MikeWeids 2 роки тому
Thanks for the tutorial! The only problem now is actually finding a Zero W to use for it :) Any reason you opted for wireless vs wired (with an ethernet attachment)? Have you experienced any notable decrease in speeds or WiFi connectivity issues after installing?
@MichaelKlements
@MichaelKlements 2 роки тому
I don't have an USB Ethernet dongle, so tried with the WiFi connection and it has worked really well. I haven't had any issues with it or noticed any decrease in internet speed since installing it. The DNS lookup portion of a page load is miiliseconds, so even if the wireless connection is half as fast as wired, you likely won't notice the extra 50-100 or so milliseconds added to the load speed.
@Hexavelli
@Hexavelli 8 місяців тому
*Thank You.*
@ozbayalperen1
@ozbayalperen1 2 роки тому
thanks for tutorial
@fotografm
@fotografm 2 роки тому
That was very helpful. Thank you !!! One thing I may have missed and needed to look up elsewhere was how to change the passord supplied for the pihole. This is done via the ssh command line and "pihole -a -p (password)".
@MichaelKlements
@MichaelKlements 2 роки тому
Thanks for the tip, I'll add this to the blog post.
@samuelfarrar8954
@samuelfarrar8954 3 роки тому
thank you so much
@YXHYX
@YXHYX 2 роки тому
Why it don't block UKposts ads on Android and laptop even after I set up the DNS Configuration but it works on speed test
@valeriopampanoni3573
@valeriopampanoni3573 3 роки тому
Thanks, I set everything up in roughly half an hour following your guide. I used an old 8GB microSD, and I can confirm that it's enough for the purpose.
@MichaelKlements
@MichaelKlements 3 роки тому
That’s great!
@einhalbesbrot
@einhalbesbrot 10 місяців тому
Thank you so much i was wondering since i heard 4 should also be enough and in the video he says 16. Im gonna buy a bunch of 8 GBs now
@WakeUpAmerican000s
@WakeUpAmerican000s 3 роки тому
Great video, thank-you. What is the process to enhance and update the block lists? The Pi is only as effective as the currency and completeness of the block lists used and there doesn't seem to be a lot of info on where to get block lists to beef up one's Pi-hole.
@MichaelKlements
@MichaelKlements 3 роки тому
You just need to go to settings in the UI and you can add and remove lists there. It's as simple as pasting the web address for the new list and clicking save. Lists are auto-updated every Sunday morning by default. There are loads of forums which provide resources for additional lists and recommendations, the Pi-hole Reddit group is a good place to start.
@WakeUpAmerican000s
@WakeUpAmerican000s 3 роки тому
@@MichaelKlements - Thank you for your reply. I've seen references to installing a database on the Pi to handle the blacklists etc. so wasn't sure how complex it is. Waiting for my hardware to arrive now and I'm sure it'll all come clear once I actually start playing with it. Thank you again for your efforts.
@Backedone-ss5vw
@Backedone-ss5vw Місяць тому
Hi man , much appreciated Any new updates March 2024 on the topic?
@johnhusband924
@johnhusband924 2 роки тому
Hi Michael great video and thank you for sharing. My network consists of a virgin hub 3 modem and a Archer A7 router connected by ethernet cable. I am assuming I need to change my DNS settings on the Virgin router and Archer router A7. I am assuming I do not need to change any setting on devices connecting to the Wi Fi from the Archer router A7.
@MichaelKlements
@MichaelKlements 2 роки тому
Thanks John! You'd most likely need to update the DNS settings in your virgin hub 3 modem - but this depends on how your network is set up. Yes, if you modify the DNS settings in your modem then this will be applied to all devices accessing the internet through this modem, you don't need to do it on the devices as well.
@anonymous39400
@anonymous39400 3 роки тому
very nice, very clear. Thanks so much.
@MichaelKlements
@MichaelKlements 3 роки тому
Glad it was helpful!
@itsjfam
@itsjfam Рік тому
Can confirm this will work on a pi 1, and I used a ethernet cable and just skipped the wireless.txt part. also have it plugged into the modem, everything seems to be working just fine.
@PedroNuno
@PedroNuno 2 роки тому
Just done it will test now :-)
@DD8842
@DD8842 Рік тому
The best part is that they named it "pi hole" god I hope that never changes.
@natonion1154
@natonion1154 3 роки тому
Great short video and gets to the point. I was successful in setting up my pi-hole, but after few days I was not able to login to my pi zero...(reinstalled the OS again and setup for SSH...then my Putty just shows inactive of pi zero and aborts...)
@natonion1154
@natonion1154 3 роки тому
Also, some internet company who provides 2.4 and 5 GHz...may actually be more troublesome because you can't block both...and pi zero does not work on 5 GHz...
@MichaelKlements
@MichaelKlements 3 роки тому
What SD card are you using? I've seen a couple of people say that their Pi-holes ran for a few days or weeks and then froze or crashed due to failure of the SD card.
@WakeUpAmerican000s
@WakeUpAmerican000s 3 роки тому
@@natonion1154 - I would personally not use a wireless connection to do this. Spend an extra $10 to get a Pi 3 or 4 and connect a CAT 6 cable from your router to the Pi-hole device. It'll cut your latency for every (of thousands) of DNS queries by two-thirds or more.
@savourymilkman8147
@savourymilkman8147 2 роки тому
@@WakeUpAmerican000s you know, or a dongle....
@VagabondGFG
@VagabondGFG 2 роки тому
Thanks for the clear tutorial. Will an 8 GB SD card be enough?
@MichaelKlements
@MichaelKlements 2 роки тому
16GB is usually recommended by you might be able to use an 8GB with an install of Raspberry Pi OS Lite
@ahtzee9078
@ahtzee9078 3 роки тому
The irony of the mid rolls in this tutorial...
@Lazerscythe
@Lazerscythe 3 роки тому
It is so you can check if your Pi Hole works ;)
@realcartoongirl
@realcartoongirl 3 роки тому
but pihole doesn't block video youtube ads since its from same domain
@klarname
@klarname 7 місяців тому
Thanks for your work. Do you know if your instruction can also be used for a Rasperry Pi 1?
@MichaelKlements
@MichaelKlements 7 місяців тому
Yes you can run Pihole on the original Raspberry Pi as well
@klarname
@klarname 7 місяців тому
@@MichaelKlements , you are right thats what i also found out but thanks for for answering!
@chubbyelf5094
@chubbyelf5094 Рік тому
Hey, thanks for the video, but you are missing a direct link to the wpa_supplicant text file in the video description. Had to jump through some hoops to find it on your personal website, it would be better in the description!
@krishnakanthcake
@krishnakanthcake 2 роки тому
thanks man
@DJDashzn
@DJDashzn 2 роки тому
Fantastic tutorial. Do you know where we can get South Africa black list or regex
@timothyvo3749
@timothyvo3749 2 роки тому
Great helpful video! Really easy to follow, but I found out my Xfinity modem/router won't let me change DNS, is there a work around besides using my own modem?
@MichaelKlements
@MichaelKlements 2 роки тому
You can set the DNS at device level. It’s a lot more effort but is a work-around in this case. So point each device (iPhone, computer etc) to the Pi for its DNS
@jacktherabbit2238
@jacktherabbit2238 Рік тому
This work with the pi-zero w 2?
@stackpop3715
@stackpop3715 3 роки тому
Thanks for this video, very easy to follow! Seems to be blocking ads embedded on websites, I'm still getting ads in mobile aps and video ads in UKposts and Twitch. Did I miss a step?
@MichaelKlements
@MichaelKlements 3 роки тому
The ad blocker can only block dns requests to ad serving domains. So if a website serves its own ads from its own domain (like UKposts does) or the ad server is not on your blocked list then it won’t block ads on the site.
@aelecx9083
@aelecx9083 2 роки тому
You can manually get rid of the ads like I did for UKposts. But it’s pretty tedious and with each and every ad my soul burned until I was a husk of once I once was.
@shilankalhor2072
@shilankalhor2072 2 роки тому
How manually? You mean you bought the subscription?
@dannythomas1100
@dannythomas1100 2 роки тому
Hi Michael, really good and informative video! But isn't it dangerous to store your network password (or any password for that matter) in plain text in a .txt file and not have it encrypted? Thank you for the vod!
@MichaelKlements
@MichaelKlements 2 роки тому
The Pi deletes this file after first boot, so it's not actually left in the boot directory as a .txt file afterwards
@dannythomas1100
@dannythomas1100 2 роки тому
@@MichaelKlements Ahhhhhhhh smart! Thank you!
@eRflol
@eRflol 2 роки тому
@@MichaelKlements Pressing Ctrl+Shift+X while in the raspberry pi imager gives you advanced options to configure ssh access and wireless access without having to create/edit the image files. Save you a few steps
@casey7223
@casey7223 3 роки тому
Towards the end you mentioned the USB from the router may/may not power the pi. Do I not need the supplied power cord?
@MichaelKlements
@MichaelKlements 3 роки тому
Yes, you'll need to run a USB cable between the router and the Pi to power it. Some router's supply enough power through this port to power a Pi and some don't. So it doesn't always work.
@YouTubeDave-tp7ij
@YouTubeDave-tp7ij Рік тому
Any hints on getting ads blocked better on IOS and MacOS devices? I've set my Pihole as the DNS server, but doesn't block very well. Seems like there's something about IOS and MacOS that makes Pihole less efficient. I've got mine installed on my Pi 4. It's a waste of a Pi, but I do like Pihole a lot.
@joeschmo622
@joeschmo622 2 роки тому
Noice! I saw a few tutorials to make a PiHole out of a 3, etc., but wondered if I could just do it on a 0W. You answered that question, thanks!
@MichaelKlements
@MichaelKlements 2 роки тому
Definitely give it a try!
@summerbee80
@summerbee80 Рік тому
can i use the new RISC-V mango as an addblocker?
@ChrisPavlides
@ChrisPavlides 2 роки тому
is there any difference on latency btw the wired and the Wireless Pi-Zero ?
@MichaelKlements
@MichaelKlements 2 роки тому
There is definitely a difference, but you're talking about 5 milliseconds or so on the WiFi and maybe 0.5 milliseconds on Ethernet. I doubt that a couple of thousandths of a second would make much difference for most people who would be using Pi-hole for web browsing, streaming etc.
@IBurnThings90
@IBurnThings90 8 місяців тому
It won't show up on my network at all.
@philipperino7094
@philipperino7094 3 роки тому
i think this was the best tutorial on this. so now i got everyhting setup BESIDES, that my provider does not allow custom DNS Servers... does anybody know a workaround?
@MichaelKlements
@MichaelKlements 3 роки тому
Thanks Philipperino. You can set your DNS server at device level (on each phone or laptop). It's a lot more work to set up, but you still get a similar result in the end.
@winandd8649
@winandd8649 2 роки тому
No problem to use a smaller SD card than 16Gb. Rpi OS lite and PiHole only takes up 3 Gb..
@carokann1802
@carokann1802 2 роки тому
I heard you have to think about the log files that will be created. ofc you can define how long logs are kept and whether you want to log in the first place. if you accept recommended options during the configuration the pi will log ... a lot ...
@TheCorpsegrinder21
@TheCorpsegrinder21 3 роки тому
does it works the same with the classic raspberry pi 0 with a wifi adapter?
@MichaelKlements
@MichaelKlements 3 роки тому
Yes it will, although if you're adding an adapter then you should try get an Ethernet one rather, its just a bit more robust and reliable.
@um8778
@um8778 2 роки тому
I took a shot every time I heard "raspberry pah", and now I'm soosafjasfja drruuuuahfnnnk
@maman89
@maman89 2 роки тому
Thanks man. Was thinking about getting the pi 4 but the pricing is stupid in my country. Around 120USD for 4GB and almost 200USD for the 8GB version
@MichaelKlements
@MichaelKlements 2 роки тому
They've become really expensive around the world, unfortunately re-sellers are capitalizing on the shortage by selling them way over their recommended price
@BL1TZED101
@BL1TZED101 2 роки тому
Dose this work with a windows 10 pc for set up I live in Australia
@MichaelKlements
@MichaelKlements 2 роки тому
If you set this up through your router then it'll block ads across all devices on the network regardless of the OS.
@shresthishigwcivpadt9713
@shresthishigwcivpadt9713 3 роки тому
Can you set cloudfare or google as the secondary DNS provider to still have access in case the pi is turned off?
@MichaelKlements
@MichaelKlements 3 роки тому
This would depend on your router, but is usually possible.
@savourymilkman8147
@savourymilkman8147 2 роки тому
theres alwayus the chance that the router will redirect straight to secondary and not even consider the pi as the primary dns. you are alwyas conneceted to your router, theres no reason to do it otherwise as theres always the ability to logi n and change it again
@JungleIsMassiv
@JungleIsMassiv 2 роки тому
good tutorial... did all this just to find my internet supplier (optus) blocks the DNS customise feature. otherwise would work perfectly!
@MichaelKlements
@MichaelKlements 2 роки тому
That's frustrating!
@ianwilsonT00x
@ianwilsonT00x 2 роки тому
I've literally done this exact thing like 4 times and no matter what pi image i put on my cd card, when i ssh in it doesn't like the password.
@Nykzom
@Nykzom 2 роки тому
same here. Do you got it working without setting it up on a keyboard, mouse and desktop. I think thats the only way to reset the pw..sadly
@toblerone3202
@toblerone3202 2 роки тому
Im having trouble finding my pi's IP address, i use xfinity and have netgear as my modem, where can I find this info?
@zecouto8058
@zecouto8058 7 місяців тому
i have a question, if you turn off you PI and turn back on will it automatically start blocking new traffic? or will i need to reset everything back again??
@MichaelKlements
@MichaelKlements 7 місяців тому
If you reboot the Pi it'll start blocking traffic again. The only issue is that if your router doesn't have a secondary DNS server setting then when the Pi is off you won't be able to access any sites.
@GlassICE
@GlassICE 2 роки тому
Seeing Ads isn't a bad thing however when an App has Ads it pisses me off cause it's using my bandwidth so i don't like it But i won't be bothered if i see Ads on a website i browse cause i know i'm supporting them
@jackalzombiie282
@jackalzombiie282 3 роки тому
So if you can't change the DNS provider from the Modem/Router to the Pi Zero you have to select it manually in every device you want to use Pi hole?
@MichaelKlements
@MichaelKlements 3 роки тому
Yes that’s correct
@luisoquendo4488
@luisoquendo4488 2 роки тому
How do these instruction change when working on a Mac? I am having trouble with the wpa_supplicant part and changing it to .conf
@MichaelKlements
@MichaelKlements 2 роки тому
It shouldn't change. You'll just need to make sure that your computer settings as such that it is not hiding the file extension.
@erlendtk85
@erlendtk85 3 роки тому
Protip: After choosing image and storage in the imager, press ctrl+shift+x to set up ssh and wlan.
@MichaelKlements
@MichaelKlements 3 роки тому
I'll definitely give that a try, thank you!
@jeffamsbaugh6018
@jeffamsbaugh6018 2 роки тому
yea i think thats the issue that im running in to because i cant ssh from putty
@hanac5586
@hanac5586 Рік тому
awesome
@inigomontoya8599
@inigomontoya8599 2 місяці тому
Hey Man great Tutorial! However, I am getting stuck at the DHCP Table. the Pi is not showing up, I have reimaged the pi several times and verified the network address and name everytime but the pi never shows on the network. Do you know if there is some setting or file that may need to be installed for it?
@MichaelKlements
@MichaelKlements 2 місяці тому
Can you connect to your network if you use a desktop version of the OS and do it through the WiFi settings?
@Ivan-kh4kh
@Ivan-kh4kh 2 роки тому
Thanks for the video! I have connected it to the router and found the network address but cant connect through putty. The connection times out. Any ideas how to fix this?
@MichaelKlements
@MichaelKlements 2 роки тому
Are you sure SSH has been turned on on your Pi?
@Ivan-kh4kh
@Ivan-kh4kh 2 роки тому
@@MichaelKlements I figured it out! My laptop was on the 5G band and the Pi was on the 2.4G band. Once I changed my laptop to the matching band it worked just as you described. Thanks again!
@MichaelKlements
@MichaelKlements 2 роки тому
Ah yes, glad you've managed to find the issue. It's a pity the Pi 4 doesn't support 5G WiFi, hopefully the next generation will!
@GreenSwede
@GreenSwede 3 роки тому
You mention a Micro SD card with at least 16 GB. How much storage space do you have left after a lite install of Raspberry Pi OS and Pi-Hole?
@JordanII.
@JordanII. 3 роки тому
I just did this and it says 12GB
@winandd8649
@winandd8649 2 роки тому
I used a 8GB card, i have 5.1 Gb free space left..
@sc0or
@sc0or 3 роки тому
It would be great to add couple of words to this video about setting a static IP with using OS only. 'cause some time user has no access to a router.
@MichaelKlements
@MichaelKlements 3 роки тому
The problem is that almost every platform has a different process to configure the DNS. It’s usually a quick google search though.
@sc0or
@sc0or 3 роки тому
​@@MichaelKlements well.. not so many OSes are able to install on Pi Zero and pi-hole after that ) In fact, only Raspian is a good choice (and some old ubuntu servers) imho. But I've got your point
@MichaelKlements
@MichaelKlements 3 роки тому
The OS I’m referring to is on your device which you’re using to access your wifi (like your phone or iPad). The dns server is set on each of these, not on the Pi-hole. If you can access your router then changing anything in Pi-hole isn’t going to help.
@Beatfreax
@Beatfreax 2 роки тому
Do we need to set firewall rules to make it more secure?
@MichaelKlements
@MichaelKlements 2 роки тому
This doesn't change or enhance your network security at all, if you were using a firewall before then you should continue after installing this.
@pivot9965
@pivot9965 Рік тому
If you put your secondary dns with out the raspberry pi ip. when the raspeberry gets offline will it still run on the web just with ads?
@MichaelKlements
@MichaelKlements Рік тому
That's the intention. It depends on your router though as some seem to split traffic between primary and secondary rather than use secondary as a fallback.
@clit24eugen
@clit24eugen 2 роки тому
I did flow all steps however my pi won't connect to the wifi with the light os version only with the full os version ... is this a known issue ?!
@roelvanhaandel
@roelvanhaandel Рік тому
Hey man, great totorial. But one thing is going wrong on my end. I am unable to get it to connect to the network using your method. Now i am just setting it up with the full Raspberry OS. Do you know what i could be doing wrong?
@MichaelKlements
@MichaelKlements Рік тому
There is probably an issue with your WPA supplicant file, check that you've got the correct SSID and password - they're also case sensitive.
@roelvanhaandel
@roelvanhaandel Рік тому
@@MichaelKlements hi, thanks for the answer. I don’t know, tried it like 10 times. Knowing for sure I am using the right login. Now i got it running on the normal RBPi OS. Only downside is that the 16gb flashdrive is already pretty full, 91%. First ran it with a connected display, but now I managed to connect it trough Remote Desktop.
@khalidalmeerani7336
@khalidalmeerani7336 3 роки тому
Hi Michael. I got everything to work so far but it seems like my moderm/router does not allow me to change any DNS settings. this is true with the service provider i have. Is there another way to get around this without buying another router? Can I manually adjust my dns server on my devices (iphone) so it can get a connection from the raspberryPi and not the moderm/router? Thank you
@MichaelKlements
@MichaelKlements 3 роки тому
Hi KA Photography, Yeah, some service providers lock certain settings in their routers, so you can't make the required changes. Yes, you can adjust your DNS settings at device level, just point your iPhone to your Pi-hole as the DNS server. This is a bit more effort to set up and obviously isn't automatic for new devices joining the network, but it is a workable solution.
@khalidalmeerani7336
@khalidalmeerani7336 3 роки тому
@@MichaelKlements thank you for the great video it works great so far 🙌🏼.
@mikelowry2254
@mikelowry2254 7 місяців тому
I know i'm three years late but would this tutorial work the same now with a 2w?
@MichaelKlements
@MichaelKlements 7 місяців тому
There might be one or two update steps that have change but you should still be able to follow the tutorial.
@ekka1790
@ekka1790 3 роки тому
Hi, will my internet get slower if I route my modem dns from the raspberry pi trough wifi?
@MichaelKlements
@MichaelKlements 3 роки тому
In theory it's a bit slower, in practice you probably wouldn't notice any difference unless you have lots of devices (15+) all making requests on your network at the same time.
@shashwatshah2132
@shashwatshah2132 2 роки тому
Do I really need a raspberry Pi in order achieve this goal, coz I have a laptop similar to raspberry Pi spec's. Can I use the laptop instead of raspberry Pi??
@MichaelKlements
@MichaelKlements 2 роки тому
You can apparently run Pi-hole on Docker on a Windows PC or Mac although I've never tried this. For the $15 cost of a Pi Zero W I'd probably still try get one of these rather than running a laptop as you'd probably save more in the long run with electricity costs.
@patricklomasney
@patricklomasney 2 роки тому
If I am connecting it with an Ethernet cable will I need to add the extra config file and SSH file?
@MichaelKlements
@MichaelKlements 2 роки тому
You'll still need to add the SSH file, but won't need the config file.
@patricklomasney
@patricklomasney 2 роки тому
@@MichaelKlements okay, thanks
@MrMan-sy4ev
@MrMan-sy4ev 3 роки тому
So the PuTTY emulator is meant to access the pi’s terminal from your own computer? Is that right?
@MichaelKlements
@MichaelKlements 3 роки тому
Yes that's correct. You only need this to set it up initially though, once Pi-hole is loaded and running then you just access the Pi through a browser on your network.
@AjvarRelish
@AjvarRelish 3 роки тому
I can't change my DNS on my ISP provided modem/router. So i've had to change the DNS on each device I wan't Pi-Hole to work on, that is connected to my wifi, right?
@MichaelKlements
@MichaelKlements 3 роки тому
Yeah if you aren't able to configure the settings on your router then you'll need to configure the individual devices on your network.
@leaf9164
@leaf9164 3 роки тому
@@MichaelKlements could you explain on how to configure the individual devices?
@MichaelKlements
@MichaelKlements 3 роки тому
I can't really do that as almost every device/manufacturer has a different process. You typically do this in the network/WiFi settings of the device. For example on an iPhone you'd go to the WiFi network, tap the icon next to it to open the settings for the network, then tap DNS and then set the DNS server to the IP address of the Pi Hole.
@WakeUpAmerican000s
@WakeUpAmerican000s 3 роки тому
Jonas - you would probably be better off to purchase your own router for $60-100. When you stop paying "rent" every month to your ISP, you'll end up saving money after a few months. Then you can set up your router the way that you want to. And you'll have Pi-hole protection for ALL devices, even those where you can't set a DNS setting (like IoT devices)
@zucker5310
@zucker5310 2 роки тому
What did you use to plug the as card into the computer
@zucker5310
@zucker5310 2 роки тому
Sd*
@MichaelKlements
@MichaelKlements 2 роки тому
Just a small micro sd card reader that came with a 3D printer of mine.
@leryeo
@leryeo 2 місяці тому
Can you make a video or instruct me as to how to unpair and remove pihole from my router as I no longer use it to block domains?
@MichaelKlements
@MichaelKlements 2 місяці тому
Just change the DNS on your router back to what is was originally e.g. Cloudfare - 1.1.1.1
@Nykzom
@Nykzom 2 роки тому
when i try to login with "pi" and "raspberry" it dont work. I have a DE Layout on my keyboard. but even when i try to type Z for Y it dont work. Any solution? Thx for this awsome tutorial and your blog post!
@darkm3m0ry
@darkm3m0ry Рік тому
Hopefully you figured it out, it's where I'm stuck at can't log in
@nykz8043
@nykz8043 Рік тому
@@darkm3m0ry yes. When you configure the piHole there is a little button next to the install button. Click there and you can change the password, set up your router password and so on (:
@akshayaradjou8508
@akshayaradjou8508 2 роки тому
would i be able to do this using a raspberry pi pico ?? for a small network with 5 users and under 20 devices
@MichaelKlements
@MichaelKlements 2 роки тому
The Pico is a microcontroller, it doesn't run an operating system and so can't run something like Pi-hole
@saifty2007
@saifty2007 Рік тому
If the SSID is A apple 1, should it be just that inside the quotes or should it be "A_apple_1" ????
@MichaelKlements
@MichaelKlements Рік тому
Yes it should be US. The Pi only has 2.4Ghz WiFi, that may be something to check. Also check that the SSID and password are correct, they're also case and space sensitive.
@agoogolofgeese
@agoogolofgeese 2 роки тому
Is the Zero W still the best one to use? They're going for like $75 used on eBay now. Figured I might as well get a more recent model at that price..
@MichaelKlements
@MichaelKlements 2 роки тому
This will run on most Raspberry Pi's available at the moment - Pi 3, Pi 4, Zero and Zero 2 are all good for this project.
@agoogolofgeese
@agoogolofgeese 2 роки тому
@@MichaelKlements awesome! Thank you. I think I’m actually going to go for the Pi 400, after doing some more research. Could use it for other things as well.
@agoogolofgeese
@agoogolofgeese 2 роки тому
@@MichaelKlements also thanks for the video! Subscribed to your channel :)
3 HACKING gadgets you have to TRY!!
19:34
NetworkChuck
Переглядів 1,4 млн
Pi-hole Made EASY - A Complete Tutorial
22:15
Tech Craft
Переглядів 74 тис.
How to get a FREE HYPERCHARGE SKIN!
02:07
Brawl Stars
Переглядів 11 млн
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Переглядів 785 тис.
How to Set Up a Pi-Hole System on a Raspberry Pi - Block Ads and More!
13:32
Core Electronics
Переглядів 323 тис.
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
my SUPER secure Raspberry Pi Router (wifi VPN travel router)
30:57
NetworkChuck
Переглядів 1,5 млн
USB4 is a Glorious Mess
17:06
Linus Tech Tips
Переглядів 2 млн
Battle of the Zeros
19:44
Maker by Mistake
Переглядів 31 тис.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Переглядів 3,2 млн
I Tried a Disney Secret Project!
11:33
Marques Brownlee
Переглядів 4,8 млн
Adding 10 Gigabit Ethernet to my 129-Year-Old House!
24:45
Snazzy Labs
Переглядів 2,6 млн
We’re running out of internet - Steam Game Caching Server
21:09
Linus Tech Tips
Переглядів 2,9 млн
5 минусов отношений с китаянкой!
0:58
Petya English
Переглядів 1,8 млн
McDonald’s MCNUGGET PURSE?! #shorts
0:11
Lauren Godwin
Переглядів 9 млн
Спрятал кольцо в вафлю💍
0:50
WORLD TOP
Переглядів 3,8 млн
Bat Pod first test drive!
0:42
Grind Hard Plumbing Co
Переглядів 8 млн