Adblock support thread

Yup i did, its enabled. Even before i installed simple-adblock; adblock didn't work. Thats why i temporarily installed simple-adblock while i try to fix Adblock. I disabled Simple-adblock then tried to disable and enable Adblock. Still have the same results.

I see. Why would the router have a DNS server? I thought AdBlock acts as the hosts file on a Windows machine - taking precedence over whatever DNS server the router is setup to use. Can I use my VPN provider's DNS server and still block domain names on the router?

Upgraded to a newer snapshot build and now I'm getting:

user.info adblock-3.8.6[10297]: your adblock config seems to be too old, please update your config with the '--force-maintainer' opkg option

Can someone please tell me right command to update my adblock config?

edit: nvm, reinstalled adblock and everything is working now.

1 Like

enable debug logs in adblock and provide the logfile of a full run.

I started the use "DNS Query Report" feature and I really like it but for some reason it does only work for clients on my br-lan interface. My guest clients on br-guest are not showing up in the summary. Any ideas?

Yep, set the additional option "Report Interface" accordingly ... set it to "any" in your case:

1 Like

I've missed that option, thanks for the quick reply. It's working now! :slight_smile:

My Adblock is not working at all!

Here is my config with Blocklist and Extra Option : https://imgur.com/a/uv6AeLN

My current version of Adblock is 3.5.2-1 and I don't know how to update it... I went here: https://downloads.openwrt.org/releases/packages-18.06/x86_64/packages/
But I don't know how to do it...

Please if someone have any thoughts :heart_eyes:

How did you check that? Many of the online available “ad block testers” check only HTTP level ad blocking and not DNS-based blockers like adblock. So many of those sites will provide false positives. As a quite simple test run nslookup doubleclick.net and it should return NXDOMAIN, e.g.

dirk@t480s:~$ nslookup doubleclick.net
Server:		192.168.254.100
Address:	192.168.254.100#53

** server can't find doubleclick.net: NXDOMAIN

Noob user here. I've installed Adblock via the Package Manager and the Luci admin package. Adblock status is this:

root@OpenWrt:~# /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 3.5.5-2
  + overall_domains : 0 (normal mode)
  + fetch_utility   : /bin/uclient-fetch (-)
  + dns_backend     : dnsmasq (/tmp)
  + last_rundate    : 27.09.2019 11:01:42
  + system_release  : BT Home Hub 5A, OpenWrt 18.06.4 r7808-ef686b7292

How do I trigger a blocklist download? Thanks.

see online readme in the first post. You need to install an appropriate ssl library, via ssh opkg install libustream-mbedtls or via LuCI System => Software

Many thanks for the quick reply. Your instructions worked (NB for Noobs - click the update list button in the Luci 'Software' interface), so I now get:

root@OpenWrt:~# /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 3.5.5-2
  + overall_domains : 32491 (normal mode)
  + fetch_utility   : /bin/uclient-fetch (libustream-ssl)
  + dns_backend     : dnsmasq (/tmp)
  + last_rundate    : 27.09.2019 13:27:25
  + system_release  : BT Home Hub 5A, OpenWrt 18.06.4 r7808-ef686b7292

However I haven't

at minimum configure the appropriate DNS backend ( dnsmasq
by default), the download utility

I have done my due diligence, but Mr Google doesn't guide my eyeballs to instructions for these tasks beyond advice such as:

Configuration

The configuration is done with help of the uci-configuration file: /etc/config/dhcp , but >you can use this together with the file /etc/dnsmasq.conf .

Please direct me to instructions suitable for the lazy and hopeless. Thanks, Spongiform.

root@OpenWrt:~# service adblock status
running
root@OpenWrt:~# /etc/init.d/adblock status
running

Is this normal for adblock - 3.8.6-1?

At the moment, yes. The addition of generic status reporting has broken the custom status reporting of individual init scripts (affecting half a dozen packages in the archive), a patch for that is on the mailing list (and waiting in a staging tree).

Edit: It's http://lists.infradead.org/pipermail/openwrt-devel/2019-September/019035.html and https://gitlab.com/ynezz/openwrt-packages/commit/79270c139f166550c8fcf89cc8f18135e3173ce5

3 Likes

Hi guys!
Sorry for the silly question but I'm totally new to Openwrt. I've recently installed adblock on LuCi and I see that there's a moltitude of list that I could choose, at the same time I've read that selecting all of them could have a huge impact on my router's performaces (256Mb of RAM), so the question is: what's a minimal set of well maintained lists that could provide protection against ads and malware?

Thanks a lot!

I've set up 5 Archer C7s for friends/family and maintain my own blocklist which is an aggregate of other blocklists and has nightly dead domain scans and updates: https://gitlab.com/andryou/block (use the "Compressed" version, they're specifically compiled for Adblock/simple-adblock)

Kouhai is what I use on the C7s (128mb of RAM) - I feel your router would also support the larger Senpai lists - but if you're aiming for minimalism Chibi would work as well. Note there are Strict versions for each of the three where Rakuten (Ebates) and RedFlagDeals affiliate links are blocked.

You can check the table at the bottom of the page if you'd like to use those instead.

EDIT: Sorry I should note that in adblock, you'll need to edit the /etc/config/adblock file and add a new entry for my list:

config source 'andryou'
	option adb_src 'https://gitlab.com/andryou/block/raw/master/kouhai-compressed'
	option adb_src_rset '/^0\.0\.0\.0[[:space:]]+([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$2)}'
	option adb_src_desc 'unified blocklist, daily updates, approx. 23.000 entries'
	option enabled '1'

And remember to add a Scheduled Task for OpenWRT to refresh the blocklists (whichever you decide to go with) regularly, e.g. 0 10 * * 0 /etc/init.d/adblock reload to update at 10am every Sunday.

Hey @andryou! Thanks a lot, your list looks great so far (Picked kouhai to start).
Cheers!

Thanks, looks good to me - I'll include your source with the next config update (adblock 4.x).

1 Like

Personally I use these lists since years (plus local blacklist): adaway, adguard, bitcoin, disconnect, rasomware, winspy, yoyo.

What an honour, thank you! Please let me know if you have any questions about the lists.

EDIT:

@colmoschin94, below is an updated config you can use which uses the new domain-only version of the list which excludes 0.0.0.0 for every line, saving 30% which adds up over time in terms of bandwidth assuming weekly refreshes. Note this assumes adb_dnsvariant is set to nxdomain (in order to support TLD compression). I've also updated https://gitlab.com/andryou/block with adblock configuration examples:

config source 'andryou'
	option adb_src 'https://gitlab.com/andryou/block/raw/master/kouhai-compressed-domains'
	option adb_src_rset '/^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}'
	option adb_src_desc 'unified blocklist, daily updates, approx. 23.500 entries'
	option enabled '1'

And @dibdot, I was thinking and it may be best to include the non-compressed version of my list just in case users have adb_dnsvariant set to something other than nxdomain:

config source 'andryou'
	option adb_src 'https://gitlab.com/andryou/block/raw/master/kouhai-domains'
	option adb_src_rset '/^([[:alnum:]_-]+\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower(\$1)}'
	option adb_src_desc 'unified blocklist, daily updates, approx. 36.000 entries'
	option enabled '0'

A bit of background on how I keep my lists lean: dead/invalid domains are scanned a couple hours before sources for my lists are refreshed and merged. Any domains that have been dead/invalid for 2 consecutive days are removed from the merged list. Currently this number is ~19,000.