[SOLVED] Adblock + unbound: How to make it work?

Hi! I have installed unbound, configured as described in the "parallel dnsmasq" section here.
Unbound works fine and dnsleaktest.com show me only a server (myself, my IP...).

Now I would like to use adblock and luci-app-adblock. The problem is:

  1. With DNS Backend dnsmasq I get "error". See the screenshot:

logread -e "adblock" give me: "dns backend restart with active blocklist failed".

root@Pippo3:~# logread -e "adblock"
Wed Feb  7 13:22:56 2024 user.debug adblock-3.8.15[30312]: f_dnsup  ::: inotify: false, cache_util: -, cache_flush: 0, cache_rc: 0, dns_cnt: 11, in_rc: 0, out_rc: 4
Wed Feb  7 13:22:56 2024 user.err adblock-3.8.15[30312]: dns backend restart with active blocklist failed
Wed Feb  7 13:23:06 2024 user.debug adblock-3.8.15[30312]: f_dnsup  ::: inotify: false, cache_util: -, cache_flush: 0, cache_rc: 0, dns_cnt: 0, in_rc: 4, out_rc: 0
Wed Feb  7 13:23:06 2024 user.debug adblock-3.8.15[30312]: f_rmdns  ::: status: true, dns_status: true, rc: 0, dns: dnsmasq, dns_dir: /tmp, dns_file: adb_list.overall, rt_file: /tmp/adb_runtime.json, backup_dir: /tmp
Wed Feb  7 13:23:06 2024 user.debug adblock-3.8.15[30312]: f_bgserv ::: status: stop, bg_pid: -, dns_filereset: false, ubus_service: /etc/adblock/adblock.service
Wed Feb  7 13:23:06 2024 user.debug adblock-3.8.15[30312]: f_jsnup  ::: status: error, cnt: 445497, mail: 0, mail_service: /etc/adblock/adblock.mail, mail_cnt: 0, mail_pid: -

logread -e "dnsmasq" give me: "failed to allocate X bytes".

root@Pippo3:~# logread -e "dnsmasq"
Wed Feb  7 13:22:55 2024 daemon.err dnsmasq[21964]: failed to allocate 25 bytes
[ ....   many fails .... ]
Wed Feb  7 13:22:56 2024 daemon.err dnsmasq[21964]: failed to allocate 51 bytes
Wed Feb  7 13:22:56 2024 daemon.err dnsmasq[21964]: error at line 327130 of /tmp/adb_list.overall
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain service-1caoesbn-1300733485.sh.apigw.tencentcs.com
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain service-1cao6cjs-1312654103.gz.apigw.tencentcs.com
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain service-1bz5p6pn-1308954353.kr.apigw.tencentcs.com
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain service-1bq9q5yk-1304258173.gz.apigw.tencentcs.com
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain service-1bl5ajl6-1302026685.hk.apigw.tencentcs.com
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain sataniclol.zapto.org
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain satandemantenimiento.com
Wed Feb  7 13:22:56 2024 daemon.info dnsmasq[21964]: using local addresses only for domain satancracker.no-ip.biz
Wed Feb  7 13:22:57 2024 daemon.info dnsmasq[21964]: using 318356 more local addresses
Wed Feb  7 13:22:57 2024 daemon.info dnsmasq[21964]: exiting on receipt of SIGTERM
Wed Feb  7 13:22:57 2024 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Wed Feb  7 13:22:57 2024 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: started, version 2.80 cachesize 150
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: DNS service limited to local subnets
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-nettlehash no-DNSSEC no-ID loop-detect inotify dumpfile
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq-dhcp[556]: DHCP, IP range 192.168.10.100 -- 192.168.10.249, lease time 12h
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain test
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain onion
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain localhost
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain local
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain invalid
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain bind
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain lan
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: read /etc/hosts - 4 addresses
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: read /tmp/hosts/odhcpd - 2 addresses
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq-dhcp[556]: read /etc/ethers - 0 addresses
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain test
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain onion
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain localhost
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain local
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain invalid
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain bind
Wed Feb  7 13:23:01 2024 daemon.info dnsmasq[556]: using local addresses only for domain lan
Wed Feb  7 13:23:06 2024 user.debug adblock-3.8.15[30312]: f_rmdns  ::: status: true, dns_status: true, rc: 0, dns: dnsmasq, dns_dir: /tmp, dns_file: adb_list.overall, rt_file: /tmp/adb_runtime.json, backup_dir: /tmp
  1. If I choose unbound as Backend, I lost completely the Internet connection.

Any idea?

looks like an OOM error to me.

2 Likes

looks like an OOM error to me.

Yes!!! Thank you!
With only Adaway selected it works...
Now I will see how many sources I can add by having 128 MB of RAM.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.