Adblock support thread

I have 764K adblock entries on my R7800 but it is noticably slower than an external Pi-Hole with 3.1M enties on a Banana Pro (DNS cache set to 0 in OpenWrt).

Most probably the connected clients don't use your adblock enabled dns server for resolving. Repeat the following nslookup tests on your router and on a connected client, you should receive something like that:

local output on your router:

root@blackhole:~# nslookup example.com
Server:		127.0.0.1
Address:	127.0.0.1#53

** server can't find example.com: NXDOMAIN
** server can't find example.com: NXDOMAIN
local output on a connected client:

root@t480s:/home/dirk# nslookup example.com
Server:		192.168.1.254
Address:	192.168.1.254#53

** server can't find example.com: NXDOMAIN

The second test should always return the ip address of your gateway/router/dns resolver ... if not, your clients are using a different one ...

Huge blocklists (about 1Mio. entries) to be managed on backend server, similar to openDNS.
This is what I did in a commercial project, for "Parental Control".
Or as private alternative to openDNS, for public (free) hotspot systems.

Hi,

I'm getting a lot log entries, is this normal? Also why twice in same minute?

logread | grep "more local addresses"
Sun May  5 20:30:42 2019 daemon.info dnsmasq[12181]: using 74099 more local addresses
Sun May  5 20:31:21 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:35:42 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:35:43 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:40:43 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:40:44 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:45:44 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:45:45 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:50:45 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:50:46 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:55:46 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 20:55:47 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:00:47 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:00:48 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:05:48 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:05:49 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:10:49 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:10:50 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:15:50 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:15:51 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:20:51 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:20:52 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:25:52 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:25:53 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:30:53 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:30:54 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:35:54 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:35:55 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:40:55 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:40:56 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:45:56 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:45:57 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:50:57 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:50:58 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:55:58 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 21:55:59 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 22:00:59 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 22:01:00 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 22:06:00 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 22:06:01 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 22:11:01 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 22:11:02 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses
Sun May  5 22:16:02 2019 daemon.info dnsmasq[12181]: using 74120 more local addresses

No, it's part of the normal dnsmasq startup ... check the (logread) context to figure out why dnsmasq gets restarted every 5 minutes, maybe an out of memory condition or something like that!?

Sorry, you are correct, this is not Adblock issue. But there is no context why this is happening in logs

I believe I'm seeing this issue:

Bug link

@dibdot Dirk, I was just wondering if you could help me to figure out a proper parsing line for the Ebates whitelist. This is something that I don't know how to do at all, unfortunately.

Link: https://www.ebates.com/whitelist/ebates-cash-back-shopping.txt

So I would like to add that to Adblock but I need a suggestion for a proper parsing "option adb_src_rset" line to add to the config. I tried the parsing line for Adguard but it found 0 domains. Thank you for your time.

Hi Dave, try this ruleset (untested!):

option adb_src_rset 'BEGIN{FS=\"[|^]\"}/^@@\|\|([[:alnum:]_-]+\.)+[[:alpha:]]+\^/{print tolower(\$3)}'

Thank you so much for your quick response. I appreciate it.

I made a silly mistake lastnight by trying to put this in the blacklist along with the rest of the blacklists. However, after the fact, I realized that this was intended to be a whitelist to allow specific domains related to Ebates for proper functionality. So I copied those domains over to whitelist now and all is well.

This is the one and only thing that I used to have to disable Adblock in the router for; Ebates. So this is great because now I will no longer need to disable/pause Adblock in the router.

I'm having trouble with Adblock 3.5.5-2. Maybe I am doing something wrong but although most of the time Adblock seams to work I am unable to get blacklist to work for me.
Query domain feature from Luci doesn't show the match and it is possible to open blacklisted sites in a browser.
Any suggestions?
Here are relevant config files:

config adblock 'global'
	option adb_fetchutil 'uclient-fetch'
	option adb_trigger 'wan'
	option adb_dns 'dnscrypt-proxy'
	option adb_enabled '0'

config adblock 'extra'
	option adb_forcesrt '0'
	option adb_forcedns '0'
	option adb_maxqueue '4'
	option adb_nice '0'
	option adb_debug '0'

config source 'adguard'
	option adb_src 'https://filters.adtidy.org/windows/filters/15.txt'
	option adb_src_rset 'BEGIN{FS=\"[/|^|\r]\"}/^\|\|([[:alnum:]_-]+\.)+[[:alpha:]]+[\/\^\r]+$/{print tolower(\$3)}'
	option adb_src_desc 'combined adguard dns filter list, frequent updates, approx. 17.000 entries'
	option enabled '1'

config source 'blacklist'
	option adb_src '/etc/adblock/adblock.blacklist'
	option adb_src_rset '/^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}'
	option adb_src_desc 'static local domain blacklist, always deny these domains'
	option enabled '1'

config source 'youtube'
	option adb_src 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com'
	option adb_src_rset 'BEGIN{FS=\",\"}/^(r[0-9]+\.){1,1}([[:alnum:]_-]+\.)+[[:alpha:]]+/{sub(/\./,\"---\");print tolower(\$1)}'
	option adb_src_desc 'focus on youtube ad-related subdomains, dynamic request API, approx. 150 entries'
	option enabled '1'

config source 'yoyo'
	option adb_src 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext'
	option adb_src_rset '/^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}'
	option adb_src_desc 'focus on ad related domains, weekly updates, approx. 2.400 entries'
	option enabled '1'


and DNSCrypt-proxy config:

config global

config dnscrypt-proxy 'ns1'
	option address '127.0.0.1'
	option port '5353'
	option resolver 'adguard-dns-family-ns2'

Based on your configuration you haven't enabled adblock at all! :wink:
As long as you don't use a custom compiled build, you shouldn't use 'dnscrypt-proxy' as backend, for details check the online readme. Just enable adblock & use the default 'dnsmasq' as backend.

Good luck!

This is what I've done already. Thank you for confirmation!

Thanks for the rpely had the same problem in my PC

Hello guys im newbie to openwrt, and tried adblock and seems working good. it is posible to separate child wifi and adult wifi using 2 interface lans? and using some safesearch dns to filter adult website.

here is the concept,
lan1(child)192.168.0.1 > dhcp option 6,185.228.168.168,185.228.169.168(cleanbrowsing dns)
lan2(adult)192.168.2.1 > dhcp option 6,1.1.1.1,1.0.0.1(standard cloudflare dns)

i want to run both adblock and custom dns together but adblock is working in local dns

Hello,

with v3.5.5-2 I discovered following issue:

When I refresh my "Blocklist sources", the amount of loaded "Overall Domains" differs from time to time. It seems that Adblock is sometimes not loading all blocklist updates and loaded ones are getting removed.

For example, I have 1064 domain entries with following filter lists:

  • Blacklist (my own entries, they work all the time)
  • adaway
  • winspy (Works most times, but also loaded not every time)
  • youtube (this one seems to not be loaded many times when I refresh, sometimes it works)

This is especially an issue since I added a cron entry for adblock. Today I discovered, that only 466 of my 1064 domains were loaded.

I never had this issue before with old adblock versions and can reach all of the blocklist entries all the time on my PC for example.

Could you please check what is wrong here?

Edit 1: I use CURL for downloading the blocklist updates
Edit 2: Same issue with uclient-fetch
Edit 3: Same issue when the download Queue is increased from 4 to 16

Sounds like "normal" download errors during update, just enable "debug" in adblock and check the logs. To prevent such errors during update, use the backup function. BTW, don't use this youtube source ... it's an experimental list ... quite unstable & it doesn't help - this source will be removed in a future version.

Is blocking youtube ads bit feasible anymore? I read that few months ago it became from the same domain, but was going there might be some solution.

I don't mind an ad in the video, but multiple ads (or actually same ad repeating) in a 5 minutes video is just too much

Ad-blocker plugins for your browser (e.g. uBlock origin) do easily block all youtube ads.

'youtube premium' is your friend ...:speak_no_evil:

Ad-Blocker plugins are only solution; thanx to the https-paranoia, which (first of all ?) was caused by goggle etc. to make ad-blocking much more difficult.