Adblock support thread

No, most probably a sort problem, please provide the output of:

sort --version
sort: unrecognized option: version
BusyBox v1.30.1 () multi-call binary.

Usage: sort [-nru] [FILE]...

Sort lines of text

        -n      Sort numbers
        -r      Reverse sort order
        -s      Stable (don't sort ties alphabetically)
        -u      Suppress duplicate lines
        -z      Lines are terminated by NUL, not newline

The adblock package depends on gnu sort (coreutils-sort, it's a dependency during package installation) ... it doesn't work with busybox sort, cause it uses a mergesort.

I've noticed that Adblock has changed the Dnsmasq config method from addnhosts to confdir.

However, there's an opinion:

@dibdot, could you clarify which method is more effective from the point of blocklist processing speed and RAM consumption.

The adblock package depends on gnu sort (coreutils-sort, it's a dependency during package installation) ... it doesn't work with busybox sort, cause it uses a mergesort.

I reinstalled adblock and package coreutils-sort. Now adblock works fine. Thank you!

Hi,

sorry I've never tested that - and adblock never used addnhosts ... cause it's not flexible enough (e.g. you have to block each host separately for IPv4 and IPv6, no domain wildcards, no selective whitelisting etc.). The now used "address" method is quite flexible and should be a bit faster than the formerly used "serversfile" method. If there are concerns regarding performance it should be addressed upstream IMHO.

I know that the pihole guys are proud of blocklists with multi-zillions entries ... but that's not my playground.

1 Like

I hope someday it works for youtube of the smart tv, as it does in windows

Hi,
Could anyone help me?
Adblock always automatically clear all filters I have added in Advanced\ Edit Configuration.
Anyway to fix this?
Best regards.

Hello, i dont seem to be able to make adblock work on my archer C7, simple adblock works out of the box tho.

I'm looking for an step by step on how to use adblock and enforce regex blocking settings, can i have help please? thanks in advance

@edneyhelene

I had to set Cloudflare and Google DNS under WAN and Wan6, using my provider DNS(not really a good idea) I could not get AdBlock working.
After that is working pretty well.

1 Like

I will try again with these tips but im almost sure im already using google dns.

Thanks

Hey,

is this just me or is there something wrong with these sources:

Thu Aug 20 15:26:43 2020 user.info adblock-4.0.6[2093]: adblock instance started ::: action: start, priority: 0, pid: 2093
Thu Aug 20 15:29:53 2020 user.info adblock-4.0.6[2093]: download of 'anti_ad' failed, url: https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-domains.txt, rule: /^([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}, categories: -, rc: 6, log: curl: (6) Couldn't resolve host 'raw.githubusercontent.com'
Thu Aug 20 15:29:53 2020 user.info adblock-4.0.6[2093]: download of 'adguard' failed, url: https://filters.adtidy.org/windows/filters/15.txt, rule: BEGIN{FS="[/|^|\r]"}/^\|\|([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+[\/\^\r]+$/{print tolower($3)}, categories: -, rc: 6, log: curl: (6) Couldn't resolve host 'filters.adtidy.org'
Thu Aug 20 15:29:53 2020 user.info adblock-4.0.6[2093]: download of 'andryou' failed, url: https://gitlab.com/andryou/block/raw/master/kouhai-compressed-domains, rule: /^([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}, categories: -, rc: 6, log: curl: (6) Couldn't resolve host 'gitlab.com'
Thu Aug 20 15:29:53 2020 user.info adblock-4.0.6[2093]: download of 'adaway' failed, url: https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt, rule: /^127\.0\.0\.1[[:space:]]+([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}, categories: -, rc: 6, log: curl: (6) Couldn't resolve host 'raw.githubusercontent.com'

Then use simple-adblock or provide debug logs of an adblock run at minimum. BTW, please don't mix/use both tools at the same time.

which adblock version? Current adblock doesn't have such section.

nope, you'll need browser plugins for that.

Works for me.

will a future be possible? openwrt has a lot of power.

@dibdot can you please help troubleshooting these errors surfacing after upgrading from 4.0.6-1 to 4.0.6-2?

Sun Aug 23 14:05:40 2020 user.info adblock-4.0.6[941]: adblock instance started ::: action: start, priority: 0, pid: 941
Sun Aug 23 14:05:41 2020 user.info adblock-4.0.6[941]: download of 'adaway' failed, url: https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt, rule: /^127\.0\.0\.1[[:space:]]+([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}, categories: -, rc: 4, log: Downloading 'https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt' Failed to send request: Operation not permitted
Sun Aug 23 14:05:41 2020 user.info adblock-4.0.6[941]: download of 'yoyo' failed, url: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext, rule: /^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}, categories: -, rc: 4, log: Downloading 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext' Failed to send request: Operation not permitted
Sun Aug 23 14:05:41 2020 user.info adblock-4.0.6[941]: download of 'adguard' failed, url: https://filters.adtidy.org/windows/filters/15.txt, rule: BEGIN{FS="[/|^|\r]"}/^\|\|([[:alnum:]_-]+\.)+[[:alpha:]]+[\/\^\r]+$/{print tolower($3)}, categories: -, rc: 4, log: Downloading 'https://filters.adtidy.org/windows/filters/15.txt' Failed to send request: Operation not permitted
Sun Aug 23 14:05:41 2020 user.info adblock-4.0.6[941]: download of 'disconnect' failed, url: https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt, rule: /^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}, categories: -, rc: 4, log: Downloading 'https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt' Failed to send request: Operation not permitted
Sun Aug 23 14:05:41 2020 user.info adblock-4.0.6[941]: download of 'shallalist' failed, url: http://www.shallalist.de/Downloads/shallalist.tar.gz, rule: /^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}, categories: adv, rc: 4, log: Downloading 'http://www.shallalist.de/Downloads/shallalist.tar.gz' Failed to send request: Operation not permitted
Sun Aug 23 14:05:58 2020 user.info adblock-4.0.6[941]: blocklist with overall 0 blocked domains loaded successfully (Netgear Nighthawk X4S R7800, OpenWrt 19.07.3 r11063-85e04e9f46)

Tried selecting wget for download utility and got bund of

Sun Aug 23 14:37:17 2020 user.info adblock-4.0.6[4159]: adblock instance started ::: action: reload, priority: 0, pid: 4159
Sun Aug 23 14:37:17 2020 user.info adblock-4.0.6[4159]: download of 'adaway' failed, url: https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt, rule: /^127\.0\.0\.1[[:space:]]+([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}, categories: -, rc: 1, log: /usr/bin/wget: unrecognized option: no-cache Usage: /usr/bin/wget [options] <URL> Options: 	-4				Use IPv4 only 	-6				Use IPv6 only 	-q				Turn off status messages 	-O <file>			Redirect output to file (use "-" for stdout) 	-P <dir>			Set directory for output files 	--user=<user>			HTTP authentication username 	--password=<password>		HTTP authentication password 	--user-agent|-U <str>		Set HTTP user agent 	--post-data=STRING		use the POST method; send STRING as the data 	--post-file=FILE		use the POST method; send FILE as the data 	--spider|-s			Spider mode - only check file existence 	--timeout=N|-T N		Set connect/request timeout to N seconds 	--proxy=on|off|-Y on|off	Enable/disable env var configured proxy  HTTPS options: 	--ca-certi

switched back to uclient-fetch, ran reload command got these:

Sun Aug 23 14:44:56 2020 user.info adblock-4.0.6[5107]: adblock instance started ::: action: reload, priority: 0, pid: 5107
Sun Aug 23 14:44:57 2020 user.info adblock-4.0.6[5107]: preparation of 'disconnect' failed, rc: 2
Sun Aug 23 14:44:58 2020 user.info adblock-4.0.6[5107]: preparation of 'adaway' failed, rc: 2
Sun Aug 23 14:44:58 2020 user.info adblock-4.0.6[5107]: preparation of 'yoyo' failed, rc: 2
Sun Aug 23 14:45:01 2020 user.info adblock-4.0.6[5107]: preparation of 'adguard' failed, rc: 2
Sun Aug 23 14:45:02 2020 user.info adblock-4.0.6[5107]: archive preparation of 'shallalist' failed, categories: adv, entries:  BL/adv/domains, rc: 2
Sun Aug 23 14:45:09 2020 user.info adblock-4.0.6[5107]: blocklist with overall 0 blocked domains loaded successfully (Netgear Nighthawk X4S R7800, OpenWrt 19.07.3 r11063-85e04e9f46)

Is full wget installed (see readme)? Please provide the output of wget --help. Anyway, please switch back to your old/working download utility and run /etc/init.d/adblock restart