This tutorial by user ProToxin will show you how to set up a DNS adblocker on FreeBSD. Please note that he uses a DigitalOcean droplet in his example, and an SSH key is required. Follow the link below for the full set of instructions.
I’ve come across a few sites that will instruct you with how to setup an adblock dns server on FreeBSD. Unfortunately, many of them are either out of date, over complicated, request referral clicks, or aren’t whole. Now, I’m not saying that mine will be any better, but, here we go.
The DNS service I help run use both Ubuntu with Bind9 and FreeBSD with Unbound. In this post, we will talk about setting up a FreeBSD-based DNS adblocker running Unbound.
UPDATE: If you’re interested in adding DNSCrypt to this server, I’ve added a post on setting up DNSCrypt with this Unbound configuration: https://protoxin.net/adding-dnscrypt-to-unbound/
Full tutorial: https://protoxin.net/setting-up-a-freebsd-dns-adblocker/