So I’m a bit new to the homenetworking and homelab situation but I have a Unifi DM-SE as my router and I’m trying to establish the best way to block ads at home and away.
So I am currently primarily using either extensions or content blocking apps on my devices to block ads but I’ve been looking into DNS based solutions lately.
I’ve looked into setting up PiHole and it looks pretty simple to do and I have a dedicated small computer with Proxmox that I use for things like Homebridge, Scrypted and I think could set it up easily on there. But it looks like it only works at home. A lot of people say you can set up a VPN but I’d rather not have to turn on and off my VPN on my phone whenever I leave home.
I also looked into Next DNS which seems also pretty easy to setup, but I couldn’t tell if it’s better to set this up per device or network wide via my router.
There’s also the extensions and content blocking apps which would be device specific.
Which is the fastest, performance wise, and easiest to interact with daily?
uBlock origin + Pihole. uBlock covers just about everything on your PC but I mainly use Pihole for mobile devices and as a “catch all net”
I’m running unbound. I have a cronjob (bash+python) that downloads StevenBlack’s blacklist (https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts), turns it into an unbound config file, and restarts unbound.
Happy to provide a copy if anyone is interested.
Some script that parses blocklists into unbound local-data statements, combined with cron and unbound-control
At home I’m in the process of moving from Pihole to pfblockerNG for DNS blocking. On all my machines (including my phone) I use Firefox with Ublock Origin.
unbound adblock is what I’m using. Hand it a couple of pihole lists and it fits the same thing without the fancy gui.
This is still only locally like Pihole though right?
Correct*, unless you vpn home. Please don’t run a publicly accessible dns server. It’s going to get used in a dns amplification attack.
*And even then only for devices that use your dns server. Many iot devices have hard coded dns servers to use. And with dns-over-https (DoH) they will get pretty close to unblockable.
What is a publicly accessible DNS server? Would something like NextDNS count as that?
If you’re on android you can use tasker to automatically connect to VPN when not at home
adguard+ublock origin pretty much does it for me.
My firewall (opnsense) does this… With very little configuration. Using UnboundDNS with its block list features makes filtering most ads out rather easy.
I can’t use any of this stuff, my ISP router is so shit that changing the DNS to Cloudflare or Google’s breaks my internet =|
I use AdGuard Home, in a Linode instance, and point my pfsense box to it.
Technitium with block lists + OPNSense ZenArmor as a NGFW. Doesn’t block everything, but still as good as you’re going to get.
AGH on a raspberry pi. Super fast with caching and other setting enabled.
Pihole v6 Beta (and I have a fallback to v5). Runs together with unbound in recoursive mode. Super slick and fast!
I have multiple layers of ad blocking.
- Pihole for DNS
- Firefox w/uBlock Origin & SponsorBlock (YouTube) on every PC
- Brave browser on iPhones.
- SmartTubeNext (YouTube) on Chromecast
- All of my mobile devices are connected by VPN to utilize Pihole when I’m not home
I just use AdGuard Home. For me it works better then PiHole and runs native on my opnsense box.

