From aead1994020e41122c27c442caacbe97e383e4f9 Mon Sep 17 00:00:00 2001 From: Minoplhy Date: Sat, 2 Jan 2021 21:35:18 +0700 Subject: [PATCH] Change policy.DENY >> policy.REFUSE --- configuration/kresd.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configuration/kresd.conf b/configuration/kresd.conf index fefa221..527d72e 100644 --- a/configuration/kresd.conf +++ b/configuration/kresd.conf @@ -15,13 +15,15 @@ modules = { } -- Cache size https://knot-resolver.readthedocs.io/en/stable/daemon-bindings-cache.html#sizing - 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))