dwyl / learn-raspberry-pi

šŸ„§ Learn how to get started with a Raspberry Pi so you can use your imagination to build/make *ANYTHING*!
GNU General Public License v2.0
7 stars 1 forks source link

Pi-hole #26

Open nelsonic opened 2 years ago

nelsonic commented 2 years ago

Considering setting up a Pi-hole on the @home network to eliminate ads: https://github.com/pi-hole/pi-hole https://en.wikipedia.org/wiki/DNS_sinkhole

Todo

nelsonic commented 2 years ago

How to Set Up a Pi-Hole System on a Raspberry Pi: https://youtu.be/roYduABVjo8

image

nelsonic commented 1 year ago

Read through the site and code ... šŸ‘€ This feels "too good to be true" ... šŸ’­ Like there must be a catch or lax security ... šŸ¤·ā€ā™‚ļø

nelsonic commented 1 year ago

I'm really sick of Ads ... šŸ˜¢ ā³ just trying to research something for work and being subjected to garbage that I can't skip!

image

I understand that's how some content creators get paid for their work. šŸ™„ But they are everywhere and so distracting / time consuming.

I'm Seriously considering setting up a pi-hole on our @home network. šŸ’­

nelsonic commented 1 year ago

World's Greatest Pi-hole Tutorial: https://youtu.be/cE21YjuaB6o

nelsonic commented 1 year ago

Want to try and pick this up tonight.šŸ¤žšŸ¼ Going to run it on a RPi 4. But if I can downgrade to a lower resource/power RPi 3 I will; later. šŸ¤žšŸ¼

nelsonic commented 1 year ago

https://www.crosstalksolutions.com/the-worlds-greatest-pi-hole-and-unbound-tutorial-2023/

nelsonic commented 1 year ago

While searching for Landry Room layouts https://github.com/dwyl/home/issues/240 I was served this obnoxious Ad:

image

This is getting a bit rediculous ...

I've never searched for anything remotely related to this Ad but it's taking up 1/3 of my screen ... šŸ¤¦ā€ā™‚ļø

nelsonic commented 1 year ago

High Availability Pi-Hole? https://youtu.be/IFVYe3riDRA

nelsonic commented 1 year ago

I have a million better things to be doing than this. šŸ™„ But sadly so many of the useful websites I try to visit have obnoxious Ads on them that I'm forced to block them at the network level.

nelsonic commented 1 year ago

Just tried to run:

git clone git@github.com:dwyl/learn-raspberry-pi.git

Got the following strange warning:

Cloning into 'learn-raspberry-pi'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in /Users/n/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/n/.ssh/known_hosts:1
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
nelsonic commented 1 year ago

Apparently a known + recent issue: https://stackoverflow.com/questions/75830783/why-are-connections-to-github-over-ssh-throwing-an-error-warning-remote-host ... šŸ™„

nelsonic commented 1 year ago

Solution:

ssh-keygen -R github.com
nelsonic commented 1 year ago

Using Raspberry PI Imager (v1.7.5), flashing Raspberry Pi OS (32-bit) to a freshSanDisk Ultra MicroSDHC UHS-1 Card`:

image

image

image

image

While that is writing I'm going to head over to the "networking area" of the workshop and connect the Raspberry PI v3 B (ancient, but apparently more than adequate for Pi-hole) to the Switch and get everything ready so I can plug-in the MicroSD and get started.

nelsonic commented 1 year ago

image

image

nelsonic commented 1 year ago

RPi3B booted and is currently updating ā€¦

IMG_7170

this might take a while so Iā€™m going back to my desk to do something else ā€¦

nelsonic commented 1 year ago

Iā€™d forgotten how slow RPi3 is ā€¦ ā³

IMG_7174 IMG_7173

nelsonic commented 1 year ago

Obvs, but is going to require more effort ā€¦

IMG_7179

nelsonic commented 1 year ago

Configuring static up address on ISP router: IMG_7214

nelsonic commented 1 year ago

The ISP Router is garbage it does not allow a private DNS on the internal network. šŸ¤¦ā€ā™‚ļø

nelsonic commented 1 year ago

Starting again from scratch. ā³

image

nelsonic commented 1 year ago

Updating ā€¦ ā³šŸ™„

IMG_7221

nelsonic commented 1 year ago

Installing ā€¦ IMG_7222

nelsonic commented 1 year ago

Configured and already blocking requests to Ads! šŸŽ‰

IMG_7225

nelsonic commented 1 year ago

Added more blocked lists: IMG_7226

nelsonic commented 1 year ago

quick test: visit youtube in chrome incognito

image image

No ad.

nelsonic commented 1 year ago

Need a more comprehensive list ... https://github.com/Ewpratten/youtube_ad_blocklist Add: http://gh-pages.ewpratten.com/youtube_ad_blocklist/hosts.ipv4.txt

nelsonic commented 1 year ago

when I visit some sites I see a few of these: image

But it's a lot better than an obnoxious ad. šŸŽ‰

nelsonic commented 1 year ago

I don't usually go looking for websites that have ads on them ... obvs ... But the random site I was viewing last week for my research https://github.com/dwyl/home/issues/240#issue-1712141703 is not clean as a whistle. No more annoying/irrelevant ads; just content. I'm happy.

nelsonic commented 1 year ago

Just visited BuzzFeed (notorious for ads): https://www.buzzfeed.com/kristinchirico/surprisingly-gorgeous-homes-made-from-shipping-containers didn't see a single one. šŸŽ‰

nelsonic commented 1 year ago

By far the biggest advantage of having a DNS server on our internal network is query caching! It makes the initial page load for the pages we visit frequently noticeably faster. šŸŽ

nelsonic commented 1 year ago

@iteles please confirm if you are seeing ads tomorrow when connected to the @home network. šŸ‘Œ

nelsonic commented 5 months ago

The Pi-hole has been working fine for the past 11 months. āœ… Recently moved it to the "closet": https://github.com/dwyl/learn-computer-networking/issues/20 It's using a Raspberry Pi 3 which is quite "old" at this point. But I haven't noticed a delay in accessing any sites. šŸ’­

Ned a way to monitor it. šŸ“Š

nelsonic commented 4 months ago

Switched to the MEO network briefly to click on a product link in Google SERP (researching a workshop tool) Then checked the BBC news and see a massive ad for a combustion engine motorcycle:

image

Obviously Google Knows my approximate age, gender and income so they are serving me mid-life-crisis motorcycles ... šŸ¤£ Love Ducati, and if I was going to burn non-renewable fossil fuels for thrill-seeking, Multistrada for sure! šŸļø Switching back to home so I don't have to waste my time seeing ads for stuff I'm never gonna buy ... šŸ™ƒ

Much sooner buy a silent yacht and go sailing around the world! ā›µ But they don't need to advertise ... if you can afford it, you know where to find one. šŸ˜‰ Anyway ... back to work!!