TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Beauty of Having a Pi-Hole (2024)

325 pointsby mpweiher10 days ago

37 comments

h4kunamata9 days ago
I run PiHole for years in my home network, I cannot live without it. With the years, I have made small changes to increase my control over it.<p>I have a recursive DNS setup, PiHole filters everything, and what is left is processed locally via Unbound which in turn, contacts the 13 root nameservers for DNS resolution. I don&#x27;t use any third party DNS.<p>Add PiHole&#x2F;Unbound caching capabilities, surfing on the internet is bloody fast.<p>Now, they alone cannot block everything like smartTV with hardcoded DNS, DNS-Over-TLS, DNS-Over-HTTPS, etc.<p>That is where OPNSense comes to play...<p>I have firewall rules in place that nobody but PiHoles can request name resolution. My Samsung smarTV trying to use Google DNS?? Blocked, PiHole takes over.<p>Devices trying to use DoT or DoH??? Blocked, PiHoles take over.<p>You can create dynamic firewall rule with OPNSense so it will only block 443 and 853 if the host match the list which is updated diary.<p>To make everything even better, OPNSense firewall makes sure no IoT can access the local network but I can access them like wireless printer, etc, and if I need to access anything while on road like my cat&#x27;s cam or my Voron 3D printer camera, WireGuard VPN makes sure of that. No VPN equals no network access.<p>It is just me and my devices, at the time of this writing:<p>* Domains on List: 500k<p>* Total queries: 43k<p>* Queries Blocked: 17k<p>* Percentage Blocked: 39%<p>I run GrapheneOS on my Pixel phone and very limited apps, I prefer web version. The apps themselves are fully controller and 99% of the access blocked. That is why I have a fairly low numbers after purging all the logs a few days ago.
评论 #43902274 未加载
评论 #43902176 未加载
评论 #43919835 未加载
mikestew10 days ago
In case you’re like a lot of folks in HN, read the title, and say to yourself “already have one”, read TFA for the <i>iptables</i> config that fixes those apps and devices that bypass local DNS. For example, the New York Times app seems to now use its own hard-coded DNS servers. Without having tried it, it looks like TFA has the fix for that.<p>EDIT: replies indicate that I, a person who is barely competent at many network tasks, might be off-base on this one. Grain of salt, and all.
评论 #43896522 未加载
评论 #43896742 未加载
评论 #43897424 未加载
评论 #43896501 未加载
评论 #43896999 未加载
评论 #43901813 未加载
评论 #43896584 未加载
everdrive10 days ago
My router just ate itself after the breaker on the house got cycled a few times in rapid succession. The router is almost a decade old, so perhaps it&#x27;s not surprising. As a consequence, my pihole is temporarily out of commission. When we first set it up, we had IOT, android, chromebook, etc. Currently the whole household is on Linux and we just have a couple of smartphones. (plus a steamdeck) My wife has a few ugly apps (facebook, instagram, etc) but outside of that we&#x27;re in much better shape network-wise.<p>I used to spend a lot of time on my pihole trying to &quot;fight the internet,&quot; but with this recent breakage, it just feels like what I need to be doing is just visiting fewer websites, owning less connected tech, and doing other things such as working outside or reading books. Blocking javascript goes a long way, but just avoiding bad websites, web apps, etc seems to be the only long-term solution.
评论 #43907459 未加载
xracy10 days ago
Disclaimer: The below is not a complaint about the pi-hole itself, but the ways in which companies integrate ads into their online presence.<p>I&#x27;ve found my complaint about having a pi-hole is there are a number of services I use that expect&#x2F;depend on ads existing in order to function. Things like, some shows on paramount+ (as an example) will fail to play (hang indefinitely) if an ad hasn&#x27;t run before one of their shows, even though it theoretically shouldn&#x27;t have ads?<p>Additionally, the other thing I run into, is that the first page of google is basically useless to me, even when the top result is an ad to the thing that I want, because when I click on the ad link, the pi-hole doesn&#x27;t route me to the link I want. So I find I have to scroll down a half-page to get to the regular link I googled for.<p>If anyone has any workarounds for these issues, I&#x27;ve otherwise really enjoyed having a pi-hole. (Though my friends frequently tell me to stop talking about it, they&#x27;ll say &quot;shut your pi-hole&quot;, really weird).<p>Edit: Seems like they recommend tailoring the list of accepted domains for things in the article. (Will do this for paramount, I guess).<p>For Google, I separately stopped using an ad-blocker because it broke youtube when I did, even though I shouldn&#x27;t get ads on youtube to begin with... God I hate the internet some days. But I imagine the easiest thing to do is to add that back so I can ignore those links.
评论 #43897849 未加载
评论 #43901606 未加载
评论 #43905157 未加载
itchyouch10 days ago
For the cost and simplicity, NextDNS is way easier IMO. Nice quality of life apps that install on your phone and computer to toggle it on&#x2F;off while on-the-go, while also being able to be setup on the router.<p>Makes it nice and easy for the non-technical members of the fam.
评论 #43898028 未加载
评论 #43901150 未加载
评论 #43901411 未加载
perdomon9 days ago
I love my pi-hole but am surprised to see him recommending a $155 kit + keyboard, mouse, and monitor. My pi-hole runs on a Pi Zero 2W and connects via USB for power. The entire setup process happens over SSH and it cost me about $25. If someone can figure out how to configure their network for the pi-hole, I’m sure they can also figure out SSH.
评论 #43906745 未加载
评论 #43905296 未加载
iramiller10 days ago
What I want is something that amounts to a stateful firewall&#x2F;allow list on top of PiHole ... if a device is attempting to connect to an ip address which was not resolved by PiHole then it gets blocked ... Similarly if the RDNS for an address resolves to a domain PiHole would block it gets dropped as well.<p>Far too many apps&#x2F;IoT&#x2F;appliances have gotten smart and use DoH (or similar methods of circumventing network control). Despite that they all require routing and can still be forcibly cut off.
dend10 days ago
Author of the article here (thank you mpweiher for the submission). Pi-Hole has been, hands-down, the best infrastructure investment in our household. At this point I have 2MM+ domains blocked and the performance has been great.
jstanley10 days ago
I really don&#x27;t understand why people go to the trouble of using Pi-hole that only blocks at the DNS level, instead of using uBlock Origin which can block at the DOM level.<p>uBlock Origin is easier and cheaper to set up, less maintenance, and more effective.
评论 #43896911 未加载
评论 #43896808 未加载
评论 #43897308 未加载
评论 #43899798 未加载
评论 #43896755 未加载
评论 #43896934 未加载
评论 #43896828 未加载
评论 #43897342 未加载
评论 #43896831 未加载
评论 #43898818 未加载
评论 #43899264 未加载
评论 #43897012 未加载
评论 #43896823 未加载
imgabe9 days ago
I had been meaning to do this for the longest time. I even had a couple spare raspberry Pis laying around, but didn&#x27;t want to set it up. Finally, I realized you don&#x27;t need a raspberry pi at all. It&#x27;s running in docker on my plex server. Much less friction. Don&#x27;t get hung up on needing to run it on a raspberry pi.
parpfish10 days ago
i&#x27;d love a pihole, but networking has always been a bit of a blindspot for me. i never really understand what i&#x27;m doing, and when things break it&#x27;s a game of guess&#x27;n&#x27;check which stackoverflow&#x2F;gpt answer will fix it.<p>these walkthroughs always make it look easy, but no matter how easy the set up is you can&#x27;t escape the fact that you&#x27;re adding a layer of complexity to the network and i just don&#x27;t want to maintain it. i fully expect that there&#x27;d be some weird conflicts that come up with work VPNs and I&#x27;d just have to disable it because i don&#x27;t know what i&#x27;m doing.
评论 #43897213 未加载
评论 #43897448 未加载
lambdaba10 days ago
Tailscale with NextDNS is a simpler alternative to this and is easy to set up on all your devices.
评论 #43897000 未加载
评论 #43896899 未加载
whalesalad10 days ago
My power went out today. Which means at some point my UPS&#x27; run out of capacity and my core infra VM host has to shut down. I run Adguard on that device ... so once it is gone, my ad-blocking is gone.<p>I loaded a few websites during the interim period between DNS services going down, and the entire core infra going down (about 30 mins of just rawdog internet usage) and it is truly unusable. I don&#x27;t know how people use the modern internet without network-wide ad blocking.
ryandrake10 days ago
Standard reminder for whenever Pi-Hole gets brought up: You don&#x27;t actually need a physical Raspberry Pi for this functionality, and you don&#x27;t even need the Pi-Hole software. It&#x27;s all just wrappers around dnsmasq[1], which every Linux distribution makes available via their package manager. If you have an old spare Linux system on your LAN already, doing whatever, you can just install and set up dnsmasq and point your clients&#x27; DNS settings at it! You can run it on your Internet gateway or rooted WiFi router, too.<p>1: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Dnsmasq" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Dnsmasq</a>
评论 #43896670 未加载
评论 #43896681 未加载
评论 #43897221 未加载
评论 #43897718 未加载
dark-star10 days ago
&gt; 66.6% of all traffic is blocked<p>I hear things like this a lot from PiHole users. But it&#x27;s incorrect.<p>Correct would be: 66.6% of DNS requests have been blocked. This says nothing about the actual volume of traffic&#x2F;data that has been blocked
评论 #43899031 未加载
评论 #43897819 未加载
Dries00710 days ago
After having some persistent issues with my previous pi-hole setup, running as an add-on on my Home Assistant rPi 5, I moved to AdGuard Home on dedicated hardware.<p>I run it on a rPi Zero 2W (15$), with the Waveshare Ethernet &#x2F; USB HUB BOX (16$). Together with a power brick (5$) and a meh µSD card, it&#x27;s very affordable. I did add a small heatsink on the CPU and left the lid off the box to improve the temperature situation (it&#x27;s in a small room that easily gets warm).<p>Software wise I&#x27;ve opted for DietPi, which works great for this kind of &quot;dedicated device&quot; pi setup. Current up-time is 135 days, with the last reboot being likely due to a power&#x2F;breaker issue. It&#x27;s truly become a set and forget thing now. It also runs Tailscale (not as exit node due to USB 2.0 limited bandwidth for Ethernet) and a dynamic DNS refresh script on a timer. It still has some headroom, but I prefer to keep it rock solid and do more fancy stuff on my Home Assistant pi, which gets rebooted&#x2F;updated more frequently.<p>I do have the option to set my DNS settings in my router (ISP provided routers don&#x27;t have that option here typically), so all of my devices follow.<p>In combination with µBlock Origin and SponsorBlock in my browser, I almost cry every time I see the &quot;raw&quot; internet on other people&#x27;s devices. The only remaining source of ads is if I watch YT via my TV, so if someone has ideas to make that stop, I&#x27;m all ears. (I used to pay for the discontinued Premium Basic, but I refuse to pay double for a bunch of crap &quot;features&quot; I don&#x27;t want&#x2F;need.)
评论 #43897752 未加载
vagab0nd3 days ago
How do folks deal with Pi-hole unintentionally breaking normal websites? I used it for a couple of months until one day I spent 30 minutes trying to log in to a payment website with no success. Then I remembered I had Pi-hole running. I know the solution was probably to whitelist certain URLs, but at the time I just gave up and disabled Pi-hole.
the_dude_10 days ago
it&#x27;s a good post, however I agree with the comments there and here that a raspberry pi 5 with 8gb ram is an overkill for just running pihole. a good old Raspberry Pi 3 Model B with 1gb ram it&#x27;s enough and it will still have capacity to run other things there. And of course pihole can run on an old laptop or desktop box you already have so no need to buy a device just for the sake of it. I would rather not run it as a docker container thou but that&#x27;s just my preference
评论 #43898974 未加载
评论 #43902751 未加载
rockbruno10 days ago
Setting up a Pi-Hole taught me a ton about how networks work. It&#x27;s a really cool thing to setup for fun.
107292879 days ago
&gt; (You will need) A monitor, mouse, and keyboard that you can plug into the Raspberry Pi as you set it up.<p>Raspberry pi can be set up to boot with ssh login&#x2F;password, so you don&#x27;t even need wired mouse and keyboard.
incomingpain10 days ago
&lt;3 my pihole.<p>Currently im at 28% blocked. Typically im above 50% like OP.<p>They have significantly higher number of domains blocked. time to update my lists: <a href="https:&#x2F;&#x2F;firebog.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;firebog.net&#x2F;</a>
评论 #43898625 未加载
firesteelrain10 days ago
Always wanted to do this but if I get a call from home and I am either<p>1) at work 2) out of town 3) or just not home<p>Then, my family&#x27;s ability to troubleshoot if PiHole goes down is extremely limited. Even if I had two.
评论 #43899560 未加载
评论 #43899733 未加载
评论 #43899937 未加载
评论 #43900117 未加载
jerome-jh9 days ago
+1 for using a picture of &quot;the little mole&quot; <a href="https:&#x2F;&#x2F;www.ceskatelevize.cz&#x2F;porady&#x2F;898287-o-krtkovi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.ceskatelevize.cz&#x2F;porady&#x2F;898287-o-krtkovi&#x2F;</a> <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;channel&#x2F;UC8ZKvF049Iku9y41WpIUUCA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;channel&#x2F;UC8ZKvF049Iku9y41WpIUUCA</a>
lproven9 days ago
I did this in March:<p><a href="https:&#x2F;&#x2F;www.theregister.com&#x2F;2025&#x2F;03&#x2F;08&#x2F;pi_hole_6_flyby&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.theregister.com&#x2F;2025&#x2F;03&#x2F;08&#x2F;pi_hole_6_flyby&#x2F;</a><p>TBH I was surprised how easy it was, how unobtrusive it is, and how a bit of borderline e-waste that was in my spares box now helps every device on the network, including things like phones where I can’t so easily add ad-blocking.
flaburgan10 days ago
Does it really have to be installed in the local network? I would like to set it once in a server and then be able to configure the box of all my friends, family, etc.
评论 #43897780 未加载
评论 #43897360 未加载
评论 #43897919 未加载
评论 #43897210 未加载
评论 #43897372 未加载
HelloUsername10 days ago
Posted on 28-aug-2024<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41382231">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41382231</a>
chilldsgn9 days ago
I used to have one on my network. Then I wanted to use my RPi for some other experimentation and just kind of forgot about it. I run adblockers on my browsers anyway, but been feeling the need to start using pi-hole again recently.
duckkg510 days ago
$155 seems like a lot. I do this with a $5 pi zero and a $5 adapter and it works flawlessly.
nicoloren9 days ago
Some years ago I used Privoxy on my computer to filter unecessary request. It worked great and is an alternative to consider if you don&#x27;t want a computer plugin 24&#x2F;24 on your network.
chaoskitty10 days ago
I wonder if anyone has made it easy to run the Pi Hole software on regular Unix-like systems without containers and without machine specific binaries. Perhaps I&#x27;ll have to give that a try some time.
评论 #43899758 未加载
评论 #43900084 未加载
评论 #43900610 未加载
more_corn10 days ago
One problem I have is that o can’t get my pihole to stop blocking archive links. Can’t find it in the blacklist, whitelisting doesn’t work.
wvenable9 days ago
I love having an Eero router for the simplicity but I hate that I cannot do all the Linux routing tricks that I used to do.
M95D10 days ago
For those who think DNS-over-HTTPS can&#x27;t be blocked: just disable routing and use a whitelist filtering proxy server instead.
评论 #43900042 未加载
roydivision9 days ago
I choose browser plugins instead for a more consistent experience, at home or anywhere.
wkat424210 days ago
I wouldn&#x27;t bother buying a raspberry pi 5 to run this shit though, as the article suggests. It&#x27;s way overkill.<p>Just run the docker on another server you&#x27;re running anyway, or run it on a raspberry pi zero 2W for $15. A pihole does so little work, it doesn&#x27;t benefit from a pi 5.<p>I just run it on a VPS that costs me 3€ per month and runs lots of other stuff too like an IRC bouncer. That way I can access it from everywhere.
评论 #43900483 未加载
评论 #43901600 未加载
troebr10 days ago
I like the idea, but also it wouldn&#x27;t feel fair for some services that I use like Twitch, or some cooking websites. I get that they sometimes really abuse all that stuff, but also I feel like they deserve some kind of compensation.
评论 #43900373 未加载
danielovichdk9 days ago
Listen. Pi-Hole is forever something I resemble with American Pie.<p>Good luck with whatever it is. Can&#x27;t go there.
评论 #43903488 未加载