Jump to content

Recommended Posts

Posted

My only concern would be constant small writes killing the cards, as you've mentioned. I use RPis for door control, and even then the cards will die eventually. Quality cards make a big difference, but in the chain where you've placed yours I'd definitely use an NVMe SSD.

 

Next step - document the hell out of it, for your piece of mind and sanity if it dies and you need to rebuild it!

Posted

I have documented it.

It has a good quality card in there at the moment (extreme pro), a high-endurance one is going in tomorrow.

I am 95% sure I am going to go with a USB SSD when the card dies. Failing that I may try a BRIX pc with denbian on it.

Posted

This may become more and more relevant given Google's intent to cripple ad-blocker extensions.

 

https://arstechnica.com/gadgets/2023/11/google-chrome-will-limit-ad-blockers-starting-june-2024/

 

Google originally went with a completely crippling limit of 5,000 "dynamic" rules, and after the widespread outrage during its first attempt to push Manifest V3, the company upgraded filtering to a "more generous" limit of 30,000 rules. uBlock Origin comes with about 300,000-plus filtering rules you can enable, and you can also import additional blocking lists and have that number skyrocket.
  • Thanks 1
Posted

I would probably just spin you a Ubuntu VM on Hyper-V and add pihole to that if you are worried longevity.

 

The DNS forwards order thing might be some confusion between forwards and "Primary/Secondary" DNS servers. Certainly Primary and Secondary DNS doesn't repect "order/fail over" quite like you'd imagine.

  • Thanks 1
Posted
There is a way I have seen on YouTube to get some sort of sync I think it was Jeff Geerling. I run 2 at home but I have not setup any update syncing yet everything goes through them at home and they are configured for DNS over HTTPS.
Posted
I would probably just spin you a Ubuntu VM on Hyper-V and add pihole to that if you are worried longevity.

 

The DNS forwards order thing might be some confusion between forwards and "Primary/Secondary" DNS servers. Certainly Primary and Secondary DNS doesn't repect "order/fail over" quite like you'd imagine.

 

I checked the documentation. They go through the forwarders in order on the Domain DNS servers.

This has been confirmed on the PIs as the second one has not had any queries apart from dns checking it is alive.

 

VM is probably the way to go. But then again, you should see the DC budget :-)

Posted

Did this at my last place of work.

 

Installed both Pi-hole and Adguard in 2 separate VMs, which drastically reduced the amount of ads end users were seeing.

 

Additionally, uBlock Origin and Ghostery extensions were deployed to both Chrome and Edge to mitigate further ads from being loaded and seen.

 

All in all we had 3 DNS forwarders: Pi-hole, Adguard and Sophos UTM. The latter just about upgraded to XG prior to my leaving.

  • Thanks 1
Posted
Yeah.. if I was running these in "enterprise" I wouldn't be running them on pi's - Slap up a Linux VM and run it on proper hardware.

It's a Primary school.

We work with the budget we have.

:-)

Posted
What sort of overall bandwidth savings have you noticed?

 

It's blocking around 19% of all queries, bandwidth wise couldn't give you exact numbers. However, websites are faster to load and no penis enlargement adverts. Though to be fair we didn't get to much of that, swgfl filtering is not terrible. It's more about stopping distracting adverts, giving a little bit of protection from dodgy websites and improving user experience.

  • Thanks 2
Posted
If it's a disposable device, with fallback, I don't see the harm of using something like a Pi. Anything you can do to make it a bit more reliable is good, and obviously it needs to fit into patch and update management (which it should with this software!)
  • Thanks 1
Posted
It's a Primary school.

We work with the budget we have.

:-)

 

ah :p Fair enough. I would just have an SD card ready to go, or run it via an SSD/NvMe to avoid the write limits.

Posted
If it's a disposable device, with fallback, I don't see the harm of using something like a Pi. Anything you can do to make it a bit more reliable is good, and obviously it needs to fit into patch and update management (which it should with this software!)

 

Its also sitting in an air conditioned server room with in a fanless case. To be fair PIs can run for 5 - 10 years without a hardware failure. It's a £35 device so you are right it is disposable.

 

The weakest link will be the micro SD card and I am swapping that out today.

 

And if it fails the network keeps going and its only two settings to change and it was never there. I agree with you, if it works and is reliable its good enough for primary work.

Posted

Mixed brands of standard. Poor results with Kingston, decent with Sandisk (but not dodgy Amazon copies of either!)

 

Eventually they fail to boot with bad sectors and won’t reformat.

 

Biggest PITA is rebuilding, so reliability is desirable!

Posted
I have a few docker hosts at home running on Lenovo ThinkStation Tiny PCs with PiHole containers on each host amongst other things. Using Docker compose then backing up the config files should mean easy restore in the event of host failure.
Posted

So i've just come off a job (I now work in events) where I was running PiHole as our internal DNS, (main and backup in VM's on different hosts) - it wasn't my original plan but we were where we were.

 

We weren't doing Ad filtering - but some local redirects and then forward to upstream.

 

FTL was quite happy with the load (which was in the millions of requests a day) but over 6 weeks, the SQLite db became large, and the PiHole interface (or rather PHP) would run out of RAM processing long term data. I was able to query the db from command line directly, and yeah I did increase the mem lim to 2048 without fix.

 

Host's was an EPYC 32c/64t, 256GB DDR4 RAM, NVME storage with the VM's getting 4 cores, 8 GB RAM and a 50 GB disk.

 

We also saw that the windows DNS was an ordered list, so no client side load ballance.

  • Thanks 1
  • 2 weeks later...
Posted

Well its been working for two weeks.

With the lists below 36% of all forwarded dns queries are being blocked. Installing a fresh copy of PIHOLE from scratch is now down to around 15 minutes. Keeping in mind that if it fails everything keeps working, just without the ad blocking.

Loading on the 1GB pi4 is virtually non-existent. 16% memory and hovering around 1%cpu.

 

The lists I am using, have a mixture of privacy, anti-malware, and safeguarding. It's not perfect, just an added layer of protection and quality of life improvement.

https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/pro.txt

https://raw.githubusercontent.com/RPiList/specials/master/Blocklisten/child-protection

https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt

https://v.firebog.net/hosts/Prigent-Ads.txt

https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts

https://adaway.org/hosts.txt

https://v.firebog.net/hosts/Easylist.txt

https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

Posted

https://docs.pi-hole.net/main/basic-install/

I used the lite version of pi os.

I am assuming you are aquainted with linux command line.

You can SSH straight into the pi from windows command line ussing ssh username@ipaddress

Set the options when you use the pi imager, enable SSH, set username and password.

sudo raspi-config to set proxy settings if at work, not needed at home.

export http_proxy=http://insert schools proxy preferably a system unfiltered one again if at work.

Follow the guide I linked to which will get you 99% there.

sudo pihole -a -p to reset the web interface password.

Thats all you really need to get started.

  • Thanks 2

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



×
×
  • Create New...