Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2019 10:13:17 +1000
From:      Felix Hanley <felix@userspace.com.au>
To:        freebsd-ports@freebsd.org
Subject:   Re: A port like pi-hole?
Message-ID:  <20190906001317.c3iz6ojiazvgf4np@zappa.yelnah>
In-Reply-To: <5F0DC2BC-2F69-4D84-8AE7-F81116CBE3FA@kreme.com>
References:  <5F0DC2BC-2F69-4D84-8AE7-F81116CBE3FA@kreme.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190906001317.c3iz6ojiazvgf4np>