OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: blacksteel1288 on September 03, 2020, 02:17:44 am

Title: Unbound Whitelist Domains?
Post by: blacksteel1288 on September 03, 2020, 02:17:44 am
Hi all,

On 20.7, I'm using Unbound Blacklists for ads and malware from the publicly shared lists like AdAway and the blocklistproject, but I'm not clear on exactly how to use the "Whitelist Domains" entry to add back access to sites I need to use for work.

The help text just says "List of domains to whitelist. You can use regular expressions."

I first tried just entering a list of domains into that entry field, but that doesn't work.  Next I tried a list of FQDNs, but that didn't work either.

I am able to get the whitelist to work with a single RegEx, but not multiple RegEx's which I would need to be able to whiltelist multiple domains in a manageable way.

Has anyone figured out a simple way to just add a list of domains to whitelist?

Thank you!
Title: Re: Unbound Whitelist Domains?
Post by: jassonmc on September 03, 2020, 09:30:54 pm
If I recall correctly, you have to enter something in blacklist and whitelist.
Just use a dummy entry in the otherwise empty list, like dummy.xyz

Cheers
Juri
Title: Re: Unbound Whitelist Domains?
Post by: blacksteel1288 on September 05, 2020, 02:39:01 pm
The whitelist field label only says "Whitelist Domains", not "URLs of Whitelists" in the way the blacklists data entry field works.

Are you saying I can enter the URLs of a text file containing hostnames for the whitelist?  If so that's great!

Is there an easy place to host a single .txt file on Opnsense for this purpose?