Adblock support thread

Hi,

it seems I have been able to fix the situation. The prob was not in the config of adblock, but in the config of dnsmasq.

I have configured dnsmasq in "Network/DHCP and DNS/Advanced/Additional servers file" to the file /tmp/dnsmasq.d/adb_list.overall, but according to the manpage of dnsmasq this setting is only a directory with files in it dnsmasq reads. So I changed this setting to /tmp/dnsmasq.d/ and voila, it works:

/etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 4.0.7
  + blocked_domains : 148807
  + active_sources  : adaway adguard android_tracking disconnect firetv_tracking gaming openphish phishing_army reg_cn reg_cz reg_de reg_es reg_fi reg_fr reg_id reg_it reg_kr reg_nl reg_pl1 reg_pl2 reg_ro reg_ru reg_vn smarttv_tracking spam404 stopforumspam wally3k whocares winhelp winspy yoyo 
  + dns_backend     : dnsmasq, /tmp/dnsmasq.d
  + run_utils       : /usr/bin/wget, /usr/bin/gawk
  + run_ifaces      : trigger: -, report: br-lan
  + run_directories : base: /tmp, backup: /tmp, report: /tmp, jail: /tmp
  + run_flags       : backup: 1, reset: 0, flush: 0, force: 0, search: 0, report: 1, mail: 0, jail: 0
  + last_run        : reload, 2m 40s, 253/164/154, 27.10.2021 20:45:25
  + system          : OpenWrt 19.07.8 r11364-ef56c85848

Maybe I have changed this setting to a "better one", in my imagination. But not according to the docu of dnsmasq. Maybe the description of the point in the menu of luci is unclear "Additional servers file", and the help text below is also not constructive: "This file may contain lines like.. ". That sounds like you can specify a file but not a directory.

Anyway. It seems to work now. Holy shit. But at least this explains the message in the error log:

Wed Oct 27 13:24:23 2021 user.err adblock-4.0.7[12762]: dns backend restart with adblock blocklist failed

dnsmasq was not able to open a file when it was expecting a directory !

Thanks for your assistance :slight_smile:

And thanks a lot to the devs for this nice piece of software with an outstanding functionality :cowboy_hat_face:

Great that you've fixed your issue! :slight_smile:
The directory will be set by adblock automatically, there is no need to specify adblock related things on the dnsmasq config page in LuCI. The "serversfile" syntax was used by former adblock releases. The current 4.x don't need/support this syntax.

@dibdot,

maybe I have overspecified the config relating to this topic, I can't remember. But the texts are irritating. And my adblock releases are 4.0.7, I have never used older ones.

Anyway.

I like the project, it is very valuable. I like the idea to have a line of defense in my DNS, so that the whole traffic related to AD's is routed to > /dev/null

@dibdot or everyone can confirm have's the same problem or not?
I would like to understand if it's only my problem or if others have it too. Thanks.

Provide your adblock config please.

::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 4.1.3
  + blocked_domains : 84013
  + active_sources  : adaway, adguard, android_tracking, bitcoin, disconnect, gaming, reg_it, smarttv_tracking, stopforu
                      mspam, winhelp, winspy, yoyo
  + dns_backend     : dnsmasq (-), /tmp/dnsmasq.d
  + run_utils       : download: /bin/uclient-fetch, sort: /usr/libexec/sort-coreutils, awk: /bin/busybox
  + run_ifaces      : 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        : reload, 0m 27s, 509/390/375, 28.10.2021 07:55:28
  + system          : Linksys MR8300 (Dallas), OpenWrt 21.02.0 r16279-5cc0535800

In green in works, in red are not

Sorry, that doesn't help. I need the config (/etc/config/adblock) - thanks.

@dibdot this may be you want . List updated.


config adblock 'global'
	option adb_enabled '1'
	option adb_forcedns '0'
	option adb_safesearch '0'
	option adb_dnsfilereset '0'
	option adb_mail '0'
	option adb_backup '1'
	option adb_maxqueue '4'
	option adb_trigger 'lan'
	option adb_dns 'dnsmasq'
	option adb_fetchutil 'uclient-fetch'
	option adb_report '1'
	option adb_repiface 'br-lan'
	list adb_sources 'adaway'
	list adb_sources 'adguard'
	list adb_sources 'android_tracking'
	list adb_sources 'bitcoin'
	list adb_sources 'disconnect'
	list adb_sources 'gaming'
	list adb_sources 'reg_it'
	list adb_sources 'smarttv_tracking'
	list adb_sources 'stopforumspam'
	list adb_sources 'winhelp'
	list adb_sources 'winspy'
	list adb_sources 'yoyo'
	option adb_debug '1'
	list adb_sha_sources 'adv'
	list adb_sha_sources 'gamble'
	list adb_sha_sources 'fortunetelling'
	list adb_sha_sources 'remotecontrol'
	list adb_sha_sources 'spyware'

Thanks! You haven't selected shallalist as a adblock source (in the first listbox) ... you've only configured the categories you are interested in.

So, any idea why the SSL problem? Are you saying that I should be using curl, or that there might be an issue if I did?

I have both the ca-certificate files installed, and I believe one of the lib* files, or I'd have many of them rather than this one not downloading, correct?

This did start after I moved to 21.02.0, BTW. Anything else I should look into?

Just wait for 21.02.1 which includes a fix for this (see https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=4b212b1306a93b6ebd450a4b1066ddf906035f4d for reference). In the meantime you could disable certificate checking in adblock ...

Or make your own build with openssl as your ssl backend (I'm using this lib in all of my builds).

I understand now how the variable lists work that must first be enabled in the sources. If I can make a suggestion, I would move the flag to enable variable lists out of the sources. It could be more intuitive. Anyway thanks!.

Is there a switch for Adblock in the CLI for seeing live DNS request and blocked request like Pihole ?

I believe the switch in pihole is "pihole -t"

@dibdot
hello!
i tried and force reinstall the coreutils-sort but i still get
Mon Nov 1 15:50:43 2021 user.err adblock-4.1.3[3381]: coreutils sort not found or not executable
on the log view.
im using uCI Master (git-21.226.86205-376af36) / OpenWrt SNAPSHOT r17554-da5bb885e1
on a Mi router 4a gigabyte version.
something with busybox ?
but i dont know how to fix it, to make it at last workable.
it would be great if you can help me with this one.
Thnks!!!

This should help:

opkg update
opkg install coreutils-sort --force-reinstall

Thanks for taking the time to help me out.
I tried that one and it seems i get the same error on view log.

Please post the output of ls -la /usr/bin/sort it should point to your coreutils installation, e.g.

root@blackhole:~# ls -la /usr/bin/sort
lrwxrwxrwx    1 root     root            27 Nov  1 18:19 /usr/bin/sort -> /usr/libexec/sort-coreutils

sure its this on the picture bellow

and this is the interface inside the package luci app