A port like pi-hole?

Felix Hanley felix at userspace.com.au
Fri Sep 6 00:21:31 UTC 2019


On Thu, Sep 05, 2019 at 08:50:10AM -0600, @lbutlr wrote:
> I’ve been running pi-hole on my home LAN and would like to run something like it on my FreeBSD machines as well. There isn’t a pi-hole port, but is there something like it that lets you easily setup blacklists to block DNS queries for adware/malware servers?

Run unbound and then pull a blacklist. You will need to include the
blacklist into your unbound config (this is actually taken from OpenBSD
but just change the path):

    curl -s 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts' \
        |awk '/^0\.0\.0\.0/ { printf "local-zone: \"\%s\" redirect\nlocal-data: \"\%s A 0.0.0.0\"\n", $2, $2 }' \
        >/var/unbound/etc/black.conf \
        && rcctl reload unbound \
        >/dev/null

-felix


More information about the freebsd-ports mailing list