Hello there,
I am trying to setup Adblock with unbound (dnsmasq removed). My problem is that the backup list (from the previous session) does not work (or is not used) on a cold start -while- the new list is constructed. In the time the new list is being constructed - no blocking takes place at all; certainly not with the previous session's block list. My understanding is that the backup block list from the previous session is to be used while generating a new list -if- option adb_backup is set to '1'. If I have that wrong let me know.
My test was:
- Reboot my router
- Once the router issues a DHCP address and is accessible (the minimum is ready), I can ping a site that should be blocked.
- Once the -new- list is ready the same ping fails as expected. This rebuild can take around 10 minutes or so. Occasionally the rebuild locks up for hours, or it finishes with no blocked sites.
I have fiddled with several options and scenarios. I see there are more options in /etc/config/adblock than are documented on:
https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md
On another machine I have used the same basic approach on OpenBSD for a good year now (I know it is BSD vs Linux etc)
https://codeberg.org/unixsheikh/dnsblockbuster
For an half baked solution I am pondering using the same basic script form this codeberg.org page and just making a fixed blacklist. I know it will not update with each boot, but it can be updated manually once a month or so.
Naturally I have searched and looked over this forum (and a few others that are related). There are a few closely related cases, but not exactly this issue; adblock backup problem with unbound.
What have I overlooked?
Or does the use unbound make adblock awkward?
Thanks for time and effort folks.
George
Netgear Nighhawk R7200, AC2100, V1
Powered by LuCI openwrt-22.03 branch (git-24.048.61459-e4b384c)
OpenWrt 22.03.5 r20134-5f15225c1e
System
Hostname test
Model Netgear R7200
Architecture MediaTek MT7621 ver:1 eco:3
Target Platform ramips/mt7621
Firmware Version OpenWrt 22.03.5 r20134-5f15225c1e / LuCI openwrt-22.03 branch git-24.048.61459-e4b384c
Kernel Version 5.10.176
Local Time 2024-02-26 15:13:44
Adblock
Configuration of the adblock package to block ad/abuse domains by using DNS. For further information check the online documentation
Information
Status / Version enabled / 4.1.5
Blocked Domains 141,514
Active Sources easylist, notracking, stevenblack
DNS Backend unbound (unbound-control), /var/lib/unbound
Run Utils download: /bin/uclient-fetch, sort: /usr/libexec/sort-coreutils, awk: /bin/busybox
Run Interfaces trigger: lan, report: br-lan
Run Directories base: /tmp, backup: /tmp/adblock-Backup, report: /tmp/adblock-Report, jail: /tmp
Run Flags backup: ✔, flush: ✘, force: ✔, search: ✘, report: ✔, mail: ✘, jail: ✘
Last Run start, 12m 53s, 250/149/133, 2024-02-26T15:01:02-05:00
config adblock 'global'
option adb_enabled '1'
option adb_debug '0'
option adb_safesearch '0'
option adb_dnsfilereset '0'
option adb_mail '0'
option adb_backup '1'
option adb_dns 'unbound'
option adb_fetchutil 'uclient-fetch'
list adb_sources 'easylist'
list adb_sources 'notracking'
list adb_sources 'stevenblack'
list adb_stb_sources 'alternates/porn/hosts'
list adb_stb_sources 'hosts'
list adb_stb_sources 'alternates/gambling/hosts'
list adb_stb_sources 'alternates/porn-social/hosts'
list adb_stb_sources 'alternates/gambling-porn-social/hosts'
option adb_forcedns '1'
list adb_zonelist 'lan'
list adb_portlist '53'
list adb_portlist '853'
list adb_portlist '5353'
option adb_trigger 'lan'
option adb_report '1'
option adb_repiface 'br-lan'