How to add my own blocklist to Unbound?

Started by viktorshutov, August 29, 2025, 01:35:22 PM

Previous topic - Next topic
Hello everyone,

I'm new here and have a question about configuring Unbound in OPNsense.

I see that Unbound has a feature to easily select from predefined DNS blocklists in the "Type of DNSBL" field (/ui/unbound/dnsbl/index), and I would like to add my own custom blocklist.

From my research, I found that the blocklist URLs are stored in the following file:
/usr/local/opnsense/service/templates/OPNsense/Unbound/core/blocklists.conf

However, this file only contains the URLs, not the friendly names that appear in the webGUI. Simply adding a new line to this file doesn't make the list appear as a selectable option.

Could someone please point me in the right direction? Where do I need to add the friendly "name" for a custom blocklist to make it appear in the GUI dropdown?

Thank you in advance for your help!

I believe what you are looking for is under advance mode - URL of Blocklists