diff --git a/README.md b/README.md index 9acd5a4..0e1d0b6 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,4 @@ Query # Recommendation 1. [knot-resolver](https://knot-resolver.cz) **Recommend** using upstream repository on debian +2. Download.sh **Recommend** if you want to download all the default filters used in kresd.conf(knot-resolver configuration) diff --git a/configuration/kresd.conf b/configuration/kresd.conf index fefa221..03af617 100644 --- a/configuration/kresd.conf +++ b/configuration/kresd.conf @@ -15,13 +15,16 @@ modules = { } -- Cache size https://knot-resolver.readthedocs.io/en/stable/daemon-bindings-cache.html#sizing - +-- "For personal and small office use-cases cache size around 100 MB is more than enough." -cz.nic cache.size = 100 * MB -- policy help : https://knot-resolver.readthedocs.io/en/stable/modules-policy.html -- This is Just a Blocklist -policy.add(policy.rpz(policy.DENY, '/etc/knot-resolver/list/energized-ultimate.rpz',true)) -policy.add(policy.rpz(policy.DENY, '/etc/knot-resolver/list/denylist.rpz',true)) -policy.add(policy.rpz(policy.DENY, '/etc/knot-resolver/list/oisd.rpz',true)) +policy.add(policy.rpz(policy.REFUSE, '/etc/knot-resolver/list/energized-ultimate.rpz',true)) +policy.add(policy.rpz(policy.REFUSE, '/etc/knot-resolver/list/denylist.rpz',true)) +policy.add(policy.rpz(policy.REFUSE, '/etc/knot-resolver/list/oisd.rpz',true)) +policy.add(policy.rpz(policy.REFUSE, '/etc/knot-resolver/list/pgl-adserver.rpz',true)) +policy.add(policy.rpz(policy.REFUSE, '/etc/knot-resolver/list/energized-social.rpz',true)) +policy.add(policy.rpz(policy.REFUSE, '/etc/knot-resolver/list/energized-regional.rpz',true)) policy.add(policy.rpz(policy.PASS, '/etc/knot-resolver/list/allowlist.rpz',true)) policy.add(policy.all(policy.QTRACE)) diff --git a/download-filters.sh b/download-filters.sh new file mode 100644 index 0000000..a876f34 --- /dev/null +++ b/download-filters.sh @@ -0,0 +1,8 @@ +#!/bin/sh +wget -O /etc/knot-resolver/list/energized-ultimate.rpz https://block.energized.pro/ultimate/formats/rpz.txt +wget -O /etc/knot-resolver/list/oisd.rpz https://rpz.oisd.nl +wget -O /etc/knot-resolver/list/allowlist.rpz https://raw.githubusercontent.com/minoplhy/doh-dot-haproxy/beta-expos/filters/allowlist.rpz +wget -O /etc/knot-resolver/list/denylist.rpz https://raw.githubusercontent.com/minoplhy/doh-dot-haproxy/beta-expos/filters/denylist.rpz +wget -O /etc/knot-resolver/list/pgl-adserver.rpz https://pgl.yoyo.org/adservers/serverlist.php?hostformat=rpz&showintro=1&mimetype=plaintexthttps://pgl.yoyo.org/adservers/serverlist.php?hostformat=rpz&showintro=1&mimetype=plaintext +wget -O /etc/knot-resolver/list/energized-social.rpz https://block.energized.pro/extensions/social/formats/rpz.txt +wget -O /etc/knot-resolver/list/energized-regional.rpz https://block.energized.pro/extensions/regional/formats/rpz.tx diff --git a/filters/lists.txt b/filters/lists.txt index 427335e..5825519 100644 --- a/filters/lists.txt +++ b/filters/lists.txt @@ -1,3 +1,6 @@ # List of third party filters besides my personal list https://block.energized.pro/ultimate/formats/rpz.txt https://rpz.oisd.nl/ +https://pgl.yoyo.org/adservers/serverlist.php?hostformat=rpz&showintro=1&mimetype=plaintext +https://block.energized.pro/extensions/social/formats/rpz.txt +https://block.energized.pro/extensions/regional/formats/rpz.txt