Post by @greylinux
What Ad blocker do you self host ?
If you use dnsmasq how have you set it up to block ads?
Boosts welcome.
@greylinux the router device now does limited blocking by itself, however neither statistics nor allow lists nor rewrites are built in (yet).
@greylinux I just use dnsmasq with Adguard DNS as upstream currently. I had Adguard Home for some time but then did some networking changes and never set it up again afterwards because for me the current solution is satisfactory.
@abraemer@mathstodon.xyz
So Adguard for DNS queries upstream and dnsmasq with scripts for adblocking ? Do i understand that, right ?
Currently I have Quad9 as upstream from my router and Pi Hole using the router for upstream but I want to overhaul this setup.
@greylinux dnsmasq as local DNS resolver on the router (OpenWRT) and using Adguard DNS as sole upstream via DoH. No additional scripts currently
@paul@fedi.paulwilde.uk @paul@fedi.paulwilde.uk
interesting do you have a write up or blog of your setup ?
@greylinux@mylittlefedi.capella-ember.uk it's not really too much to do, but maybe a blog post is a good idea.
Anyway, it's basically unbound running and referencing some other config files I parse and convert from StevenBlacks block lists
Generally works fine, it's just the parsing the hosts list to a .conf file that takes the work.
@greylinux@mylittlefedi.capella-ember.uk absolutely!
I found my original reference point for this too... It's on the alpine Linux wiki!
https://wiki.alpinelinux.org/wiki/Using_Unbound_as_an_Ad-blocker
@greylinux Unbound with https://hagezi-mirror.dnsbunker.org/ (RPZ format) and Unbound runs in a FreeBSD jail
@greylinux Self built system, pulls several ad blocklists from various sources, loads them into unbound to always return NXDOMAIN.
Also pull in several malicious prefix lists, those get loaded into bird2/BGP, and my firewall peers with it, and null routes them.
@alelab@bsd.cafe