cbuijs / unbound-dns-firewall

DNS-Firewall Python script for UNBOUND
GNU General Public License v3.0
25 stars 8 forks source link

Use file for multiple/types of lists #17

Closed cbuijs closed 6 years ago

cbuijs commented 6 years ago

Use a file or configuration options to use more then one black or whitelist. Consolidate/Undup entries across lists during startup.

See also #16 to configure usage.

See also #19 to use URL's.

cbuijs commented 6 years ago

Syntaxed like:

<Identifier/Category>,[blacklist|whitelist],<file-or-url>

Identifier/Category will be shown in logging next to which entry was hit in the list.

Example:

default-blacklist,blacklist,/etc/unbound/black.list
default-whitelist,whitelist,/etc/unbound/white.list
porn,blacklist,/etc/unbound/porn.list
ads,blacklist,/etc/unbound/ads.list
goodguys,whitelist,/etc/unbound/goodguys.list
chris-regex,blacklist,/etc/unbound/regex-test.list
etc ...
cbuijs commented 6 years ago

File-part done in v5.x.

cbuijs commented 6 years ago

Done in 5.2