How to Set Up a Pi-Hole System on a Raspberry Pi - Block Ads and More!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey gang Tim here at core electronics and today we're creating a little red advertisement devouring monster all thanks to pie hole and a Raspberry Pi single ball computer this will be a self-hosted network-wide ad blocking system running on a Raspberry Pi single board computer pie hole will create and operate as a domain name system DNS pathway or your internet system your Raspberry Pi single ball computer will take all the internet data coming in filter it meticulously and only display what you actually want to see you set this up once and then any internet connected device be it a phone iPad Smart TV home computer or your iot toaster is going to have its internet requests pass through the pie hole system and filtered the flow of data in a pie hole system is as follows you the client requests a web page the pie hole acts as a domain name system logging all the DNS requests and filtering the primary domain request if something found was on the block list that information is stopped here the DNS request is then sent through to your router and out into the internet an online DNS will then serve the DNS request and shoot it back to your router your router then passes the information to the pi hole and checks any secondary domains that have been sent back any of those secondary domains are on the block list they've filtered out now then the filtered information from the DNS request is provided to the client materializing as an ad free website this all happens in a blink of an eye this system is more efficient and better than downloading ad blocking browser add-ons for each of your devices one by one it will also stop access to malware sites and phishing websites furthermore pie hole will stop all devices from linking personal information out of your network so if your iot fridge is spying on you you're going to be able to find out this can also preemptively stop hidden crypto coin mining from taking advantage of your network this will protect your entire local network and data you can even set up parental controls to censor adult material pie hole also Auto caches so the response time of your internet browser can be significantly faster if it has already cached the desired web page information to your system for today I'm going to provide the most direct path to get pie hole running to do this you're going to need everything to run this Raspberry Pi as a desktop computer this video will also assume you know how to flash Raspberry Pi OS onto a new micro SD card check the description for that if you need naturally to filter the internet with pie hole we need access to the internet so an operational Internet connected router is needed to we will set up our Raspberry Pi as a desktop computer as the desktop UI is a much more friendly experience for the everyday maker insert the micro SD card flashed with Raspberry Pi OS then add a mouse and a keyboard and HDMI out to a monitor connect up the ethernet cable to go from the Raspberry Pi ethernet connector straight into one of your Wi-Fi router connectors then power up the Raspberry Pi system by plugging in the USBC connector some packages will need to be installed on your fresh version of Raspberry Pi OS this will allow correct operation of our pie hole system with power into the system and the new first boot up wizard complete you're going to be welcomed by the Raspberry Pi desktop open up a new terminal window by pressing the black button on the top left of the screen this will open a terminal window this terminal window will enable us to download from the internet the exact packages we require jump to the main article to find these commands linked down below copy and paste them into the terminal to fully update your Pi system and obtain all the packages that you will need for pie hole if prompted type and enter y to continue and confirm installation [Music] the pile software will now be on your hardware and it's time to run through a quick installation wizard the highlighted cursor can be moved around with the arrow keys and by pressing enter on the keyboard you can select an option the first page simply States the installation purpose so you can just press enter on this one next it informs you that you're going to need a static address for your pie hole we will address that in our router settings after this installation wizard next it wants you to choose between an Ethernet tethered connection or a wireless local area connection as I have connected the ethernet directly to my router we will use this preferred method ether next is to confirm that we will use and lock our current network settings as a static address we'll make sure that it says yes and then press continue then there's a little IP warning message stating that we need to adjust our router which we will do in just a sec then we have to select a DNS provider Google is a great choice here next it wants us to confirm that the default third-party block list is what we want to initially set this pie hole up with and that suits us just fine we will add to this block list once everything is fully set up all those extra pie hole features like phishing malware and parental controls are going to be unlocked by adding the appropriate block list the next two pages have to do with the web interface and we definitely want to have it so we're going to say yes to the admin web interface and we're going to say yes to the web server then it will ask if we want to enable query logging say yes here as it makes troubleshooting much easier then it has a privacy mode section where I will simply select show everything if you're concerned with privacy choose Anonymous and prevent query logging having pressed enter on the continue we are now going to see a small command script run thank you with that complete it provides you with IP addresses and the URL and password to access the web interface pull out your pen and paper because it's time to record this information so having done all this you will now be able to access the web interface of your Raspberry Pi whole system it will then request the pie hole password to access the web interface here you can have an overview of your entire system as well as the leaderboards for the top locked domains also be aware that you can go into the settings menu and update the style section to have a Star Trek theme if you're a fan you got to switch it on it might just make your day the first goal here is to lock your Raspberry Pi's IP address so that way if it or the router ever drops out be it from a blackout or a tsunami it will come back alive and connect to your Raspberry Pi single book computer with the correct IP address the same one that the pie hole software has set the second goal is to change the default DNS server in your router to steer data flow only through the pie hole there are different ways of achieving this depending on the router check the description because I have links to help you do this everyone has a different router and different routers have different menus for their settings it's not feasible for me to show you how to do this for every single possible router so if you're having issues a speedy Google web search along the lines of how do I assign a static IP address to a device connected to my specific modem this will almost always provide step-by-step instruction specific to your Hardware now once you've done those two things your pie hole is good to go we can see if our pie hole system is working simply by jumping onto a favorite website that just before had some sneaky ads and we're going to see if it still has them nothing beats hackaday so that's where I'm going to take you as you can see the very top Banner is missing as well as the ads on the side the rest of the website has been formatted correctly advertisers and ad blockers are always engaged in a game of cat and mouse and do you want to be the cat in this equation the default block list is well maintained and provides good blocking without breaking normal functionality of most websites and for some that might be enough but to Future proof this content I'm going to demonstrate how to add more third-party verified lists or enhanced blocking capabilities a fantastic website that offers great third-party verified block lists is via bog this website offers huge collections of block lists organized into categories these are suspicious lists for blocking potential phishing websites advertising lists tracking and Telemetry lists for wrenching back personal privacy when using the web malicious lists for blocking malware websites and other lists for preventing background coin mining or preventing websites that are not for the eyes of little Tuckers the lists that are highlighted in green are third-party verified and are least likely to interfere with General browsing lists that are blue are deemed generally safe and lists with strikes through them are not recommended now let's jump into the website user interface and click on group management and then add lists from the drop down menu now we will identify a new desirable block list from fireblock in my case I'm going to choose this ad guide DNS this is found under the advertising lists simply copy and paste that URL into the address input text box feel free to add some comments as well this will make it easier for you to remember at a later date exactly what you have done now simply press the add but you're going to see a little pop-up saying that this add list has been successfully added now you can see down here there's a little question mark that's because we need to do one more step open up a new terminal window and type and enter the following pie hole Dash G we type this pie hole Dash G command into the terminal so that way we can update pie hole's gravity gravity's main purpose on pie hole is to retrieve the block lists and then consolidate them into one unique list the built-in DNS server to use it also serves to complete the process of manual blacklisting and manual whitelisting this script is run automatically each week and can be manually updated from the web use interface if you'd prefer and you can see over here the domains on our ad list have increased if you select query log you will receive a nearly real-time update on which domains being accessed and by what device on your network you will not have access to this if you chose the anonymous mode during the installation process this page will allow you to see the pull requests green means the connection was allowed and the pie hole successfully requested the DNS from the DNS server red means the requested domain was blacklisted and the pie hole provided no data you can use this query log to help find the domains to block if you find an ad sneaking past your block list and hitting your retinas for example let's say that you're viewing a news page and an advert starts playing you can then sleuth through the query log and see exactly which domains were accessed at that time then you can Blacklist the ad serving domains by clicking on The Blacklist button on the right thus adding it to the total block list if you find websites are not loading properly you can instead do the reverse process you can then locate the blocked domain in the query log and allow it thus you'll have all the missing pieces for the web page to be able to work perfectly this is referred to as whitelisting something and that's it my little red advertisement devouring monster is ready to eat and hungry and you have all the tools to make it the best possible version or you so with that until next time stay cozy [Music]
Info
Channel: Core Electronics
Views: 332,363
Rating: undefined out of 5
Keywords: How to set up a RasPI with Pi-Hole, How to add third party block lists to pi hole, pii-hole, What is the purpose of a pi Hole, Add Block List to Raspberry pi, Does running Pi hole slow my system down, black hole for all ads, block smart TV ads, block mobile phone ads, block youtube ads, how do i find out if my internet is spying on me, domain name system, DNS, block cryto coin mining, pi hole parental settings, block adult content RASPI, docker, kubernetes, virtual machine, simple
Id: roYduABVjo8
Channel Id: undefined
Length: 13min 31sec (811 seconds)
Published: Tue Sep 13 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.