Skip to content

4 : Black and White lists

Chris Buijs edited this page Dec 28, 2017 · 12 revisions

Lists are processed in the order of "Whitelist" first, and when not matched, blacklists are checked. When whitelisted it always go "passthru". E.g. you cannot blacklist a whitelisted entry.

There are four lists (text-files) to consider (this repo provides them, see disclaimer. They are updated at least once per 24 hours):

  • Blacklist (default: /etc/unbound/blacklist)
  • Whitelist (default: /etc/unbound/whitelist)

Note: Use one entry (Domain, IP or Regex) per line. Examples:

A whole subnet: 10.1.1.0/22

An IP: 192.168.1.1

A Domain (and all its sub-domains): bad.company.com

A Regex (start and ends with forward-slash): /^(ad|banner)[s]*\./

Note: Subnet/IP's are only checked in RESPONSES (more processing, can be switched off by setting "checkresponse" to False).

Clone this wiki locally