Adblock support thread

@dibdot, the old utility that worked on 4.0.6-1 was uclent-fetch, here is what I get after /etc/init.d/adblock restart with "Enable verbose debug logging in case of any processing errors" enabled

Sun Aug 23 15:54:02 2020 user.debug adblock-4.0.6[8864]: f_uci    ::: config: dhcp, change:
Sun Aug 23 15:54:02 2020 user.debug adblock-4.0.6[8864]: f_uci    ::: config: firewall, change:
Sun Aug 23 15:54:02 2020 user.debug adblock-4.0.6[8864]: f_temp   ::: tmp_base: /mnt/sda1/adblock, tmp_dir: /mnt/sda1/adblock/tmp.HEfIFC, cores: 2, sort_options: --temporary-directory=/mnt/sda1/adblock/tmp.HEfIFC --compress-program=gzip --batch-size=32 --parallel=2, pid_file: /var/run/adblock.pid
Sun Aug 23 15:54:02 2020 user.debug adblock-4.0.6[8864]: f_main   ::: memory: 478/342/342, max_queue: 16, safe_search: 0, force_dns: 0, awk: /usr/bin/awk
Sun Aug 23 15:54:02 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: blacklist, mode: blacklist, cnt: 0, in_rc: 0, out_rc: 0
Sun Aug 23 15:54:03 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: whitelist, mode: whitelist, cnt: 0, in_rc: 0, out_rc: 0
Sun Aug 23 15:54:04 2020 user.info adblock-4.0.6[8864]: preparation of 'disconnect' failed, rc: 2
Sun Aug 23 15:54:04 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: disconnect, mode: restore, cnt: 0, in_rc: 2, out_rc: 4
Sun Aug 23 15:54:05 2020 user.info adblock-4.0.6[8864]: preparation of 'yoyo' failed, rc: 2
Sun Aug 23 15:54:05 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: yoyo, mode: restore, cnt: 0, in_rc: 2, out_rc: 4
Sun Aug 23 15:54:05 2020 user.info adblock-4.0.6[8864]: preparation of 'adaway' failed, rc: 2
Sun Aug 23 15:54:05 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: adaway, mode: restore, cnt: 0, in_rc: 2, out_rc: 4
Sun Aug 23 15:54:07 2020 user.info adblock-4.0.6[8864]: preparation of 'adguard' failed, rc: 2
Sun Aug 23 15:54:07 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: adguard, mode: restore, cnt: 0, in_rc: 2, out_rc: 4
Sun Aug 23 15:54:09 2020 user.info adblock-4.0.6[8864]: archive preparation of 'shallalist' failed, categories: adv, entries:  BL/adv/domains, rc: 2
Sun Aug 23 15:54:09 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: shallalist, mode: restore, cnt: 0, in_rc: 2, out_rc: 4
Sun Aug 23 15:54:09 2020 user.debug adblock-4.0.6[8864]: f_list   ::: name: -, mode: merge, cnt: 0, in_rc: 4, out_rc: 2
Sun Aug 23 15:54:16 2020 user.debug adblock-4.0.6[8864]: f_dnsup  ::: lookup_util: /usr/bin/nslookup, lookup_domain: example.com, restart_rc: 0, dns_timeout: 20, dns_cnt: 0, in_rc: 0, out_rc: 0
Sun Aug 23 15:54:16 2020 user.debug adblock-4.0.6[8864]: f_jsnup  ::: status: enabled, cnt: 0, mail: 0, mail_service: /etc/adblock/adblock.mail, mail_cnt: 0, mail_pid: -

That means that the downloads now OK again. The remaining error is sort related (you've updated your busybox binary as well). Please re-install coreutils-sort to fix this.

I uninstalled coreutils-sort which caused adblock, luci-app-adblock, coreutils, and ca-bundle to be removed, so, ended up pretty much reinstalling adblock, but it works now, thank you.

Could've I just run this command instead?

opkg install coreutils-sort --force-reinstall

Yep, that's the easier approach ... :wink:

1 Like

One of the worst sites for mass advertising and popups is dailymail.com (there are of course others).
I installed Adblock and the DNS report clearly states that www.google-analytics.com is blocked. I am running Firefox with Privacy Badger installed.
Privacy Badger is reporting that www.google-analytics.com is blocked.
If Adblock is blocking www.google-analytics.com, I would have assumed there would be no entry in Privacy Badger.
As a test, I disabled Privacy Badger and enabled Ublock Origin and it advised me that www.google-analytics.com is being blocked.
Have I misunderstood something?

Well adblock didn't change the page structure with multiple (ad related) sub request to other ad networks ... it changes only the answer (NXDomain than the real IP), therefore it's OK that other browser addons still "thinking" they have to block these kind of domains.

2 Likes

Thank you for the response.

I want to block gaming website, because now is school from home due to covid pandemic, however, the reality, children are playing more games than usual.

i want to use this:
https://raw.githubusercontent.com/stopgaming/pihole-blocklist/master/game.txt
from = https://github.com/abyssin/pihole-blocklist

how to add it into the adblock in the easy way.
i try to copy paste the above list into the adblock blacklist, it not working.

Regard the different format:

https://forum.openwrt.org/t/tp-link-tl-wr841n-d-wa701n-d-wr740n-d-wr741n-d-wr743n-d-wr940n-wr941n-d-ladus-julia-ultra-lite-vpn-builds/1158/97

1 Like

I'll add your source with this PR (https://github.com/openwrt/packages/pull/13283). Thanks for your input!

1 Like

Thank for this, hope it can be more updated to block all gaming sites, especially the online one.
I prefer my child play with offline game one.

Is there any benefit to using gawk over the version of awk with busybox?

Nope, not really - all awk strings in adblock are compatible/tested with both versions.

1 Like

Just wanting to report that I was running into a problem with Adblock breaking videos on The Weather Channel app on Android, and videos on weather[dot]com in all browsers in Windows 10.

A few months ago I upgraded the firmware on a wrt1200ac to the latest image from dc502wrt.org (2020-05-24). Unwittingly, this came with Adblock 4.0.5 installed and I'm pretty sure it was enabled by default, which I wasn't aware of.

With whatever the default Adblock settings were set to (I hadn't configured it), I found that video playback was broken on The Weather Channel app on Android devices, and on weather[dot]com in various browsers in Windows (to test this, you can click on "Video" at the top of the page and then try playing any of the videos on the right hand side).

I don't know if this is still the case with the latest versions of Adblock, but I just thought I'd report it in case it might help someone.

Something especially weird that I noticed was that while Adblock was running on the router, and if I was on a Windows PC, then under Network Connections -> under the WiFi adapter properties, if I unchecked Internet Protocol Version 6, then some of the videos or video thumbnails would start to work again, but if I kept IPv6 checked, then they would not work. This seems completely absurd to me, but this is what I found.

Ultimately, I just disabled Adblock on the router completely, and this fixed the problem on the Android app and on the desktop.

Hi,
any special reason to advertise the above site three times in the same post? Anyway, to fix your problem simply whitelist the domain "v.w-x.co" and you're done ... it's included the default list provider "adaway".

Sorry, just an artifact of me trying to be specific. I'm not affiliated with them or anything like that. I can at least edit out the last mention. Thanks for providing a solution for people.

Team, when a configure dhcp (dnsmasq) option serversfile '/tmp/adb_list.overall', and during the dnsmasq restart it sending the following error, and do not block any, any idea?

Fri Sep 18 07:31:33 2020 daemon.err dnsmasq[26173]: illegal option at line 40905 of /tmp/adb_list.overall

config dnsmasq
option local '/lan/'
option authoritative '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option boguspriv '0'
option nonwildcard '0'
list server '127.0.0.1#53'
option nonegcache '1'
option rebind_protection '1'
option localuse '1'
option localservice '0'
option sequential_ip '1'
option domain 'lan'
option dhcpleasemax '50'
option cachesize '5000'
option noresolv '1'
option port '1053'
#option serversfile '/tmp/adb_list.overall'
option confdir '/tmp/dnsmasq.d'

same error with addblock and luci 4.0.6 on 19.07.4

Firmware Version :
OpenWrt 19.07.4 r11208-ce6496d796 / LuCI openwrt-19.07 branch git-20.261.50352-d98fff3

root@LPM:~# opkg list-installed| grep adblock 
adblock - 4.0.6-2
luci-app-adblock - git-20.261.50352-d98fff3-1

The list format has been changed in adblock 4.x - just remove this serversfile option.

1 Like

I wondered whether anyone has done some performance testing on the Turris in terms of maximum adblock entries. Given 2GB of RAM and the 1.6 Ghz dual core I'd have thought that 500k entries should be ok.

My DNS latency has quite significantly dropped recently although the drop is not constant and I am yet to pin down the root cause.