From 9aba9ac5628b201258d96ba017621ac93b188f46 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Fri, 4 Aug 2017 11:01:15 +0200 Subject: adblock: update 2.8.5 * add preliminary kresd dns backend support for turris devices, see readme (experimental / untested!) * use tld compression for overall list, too * cosmetics Signed-off-by: Dirk Brenken --- net/adblock/files/README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'net/adblock/files/README.md') diff --git a/net/adblock/files/README.md b/net/adblock/files/README.md index 74b3d6928..14b74bfa0 100644 --- a/net/adblock/files/README.md +++ b/net/adblock/files/README.md @@ -57,7 +57,7 @@ A lot of people already use adblocker plugins within their desktop browsers, but * => daily updates, approx. 440 entries * zero-conf like automatic installation & setup, usually no manual changes needed * simple but yet powerful adblock engine: adblock does not use error prone external iptables rulesets, http pixel server instances and things like that -* automatically selects dnsmasq, unbound or bind as dns backend +* automatically selects dnsmasq, unbound, bind or kresd (experimental!) as dns backend. * automatically selects uclient-fetch or wget as download utility (other tools like curl or aria2c are supported as well) * support http only mode (without installed ssl library) for all non-SSL blocklist sources * automatically supports a wide range of router modes, even AP modes are supported @@ -157,6 +157,32 @@ create the new file '/etc/bind/db.rpz' and add: $INCLUDE /var/lib/bind/adb_list.overall +**change default dns backend to 'kresd':** +

+The knot-resolver (kresd) support is only available to turris omnia users. At this stage there's no package for kresd in the official LEDE / OpenWrt package repository.
+Adblock deposits the sorted and filtered block list (adb_list.overall) in '/tmp/kresd' where kresd can find them.
+To use the block list please modify the following kresd configuration files (experimental / untested!):
+
+edit '/etc/config/resolver' and uncomment the following option:
+  option include_config '/etc/kresd/custom.conf'
+
+in the same file change the 'forward_upstream' option like that:
+  forward_upstream '0'
+
+edit '/etc/kresd/custom.conf' and add:
+  policy.add(policy.rpz(policy.DENY, '/etc/kresd/db.rpz'))
+  policy.add(policy.all(policy.FORWARD('8.8.8.8')))
+  policy.add(policy.all(policy.FORWARD('8.8.4.4')))
+
+create the new file '/etc/kresd/db.rpz' and add:
+  $TTL 2h
+  $ORIGIN rpz.
+  @ SOA localhost. root.localhost. (1 6h 1h 1w 2h)
+  NS localhost.
+
+  $INCLUDE /tmp/kresd/adb_list.overall
+
+ **configuration for different download utilities:**

 wget (default):
-- 
cgit v1.2.3