Adblock support thread

Does this mean normally all list backups are not saved over a restart of the router? The documentation has suggested that backup mode covers the first time after the restart so I assumed the block list was saved. Or do I confuse things?

By default, it's saved on the /tmp folder of openwrt. This folder (as it's name implies) is a temporary folder mapped in memory which means it doesn't survive on reboot or after turning off the router.

There are ways to make the backup folder of adblock survive a reboot/restart by pointing it on a location that is stored permanently in the router. Now, it is not advisable (on most routers) to save this backups in base folders (other folders away from /tmp) of openwrt since this is mapped into the NAND/ROM portion of the router which has a limited (and small) maximum write/read cycles. It is best to store this to external storage (like a usb drive).

Unless your using an x86 machine or a router that uses storage mechanism (ex: BananaPI routers) like eMMC, SSD or MicroSD (or something similar which has way more maximum read/write cycles), it is ok to point it to a location on any of the base folders/drives of openwrt.


but in the first post the latest version is 4227

That's correct.. that's the latest version 4.2.2-8. That is actually just hours newer than the 2-7.

Log View now shows "DEBUG ::: 234 packages". (In my case anyway)

Is this something new?

Hello i've just done a clean install of OpenWRT 23.05.5 on a R7800 and installed Adblock 4.2.2-8 with my normal settings i use ie Enabled, Force Local DNS and DNS Report with tcpdump-mini installed and for some strange reason it's not blocking anything on any device ie PC, Phone and Tablet

Before i did a clean install of OpenWRT i updated Adblock like normal a few times and then onto the latest version 4.2.2-8 and everything was working ok so confused as been using Adblock for a few years now without any problems

Has something changed or am i having brain fade :slight_smile:

Thu Nov 7 14:52:05 2024 user.info adblock-[4895]: backup directory '/tmp/adblock-Backup' created
Thu Nov 7 14:52:05 2024 user.err adblock-[4895]: download utility with SSL support not found, please install 'uclient-fetch' with a 'libustream-*' variant or another download utility like 'wget', 'curl' or 'aria2'
Thu Nov 7 14:52:47 2024 user.info adblock-4.2.2-8[5274]: DEBUG ::: 172 packages
Thu Nov 7 14:52:47 2024 user.info adblock-4.2.2-8[5274]: adblock instance started ::: action: restart, priority: 0, pid: 5274
Thu Nov 7 14:52:54 2024 user.info adblock-4.2.2-8[5274]: blocklist with overall 56731 blocked domains loaded successfully (Netgear Nighthawk X4S R7800, ipq806x/generic, OpenWrt 23.05.5 r24106-10cc5fcd00 )
Thu Nov 7 14:53:25 2024 user.info adblock-4.2.2-8[5580]: report directory '/tmp/adblock-Report' created
Thu Nov 7 14:53:25 2024 user.info adblock-4.2.2-8[5580]: DEBUG ::: 172 packages
Thu Nov 7 14:53:25 2024 user.info adblock-4.2.2-8[5580]: adblock instance started ::: action: reload, priority: 0, pid: 5580
Thu Nov 7 14:53:33 2024 user.info adblock-4.2.2-8[5580]: blocklist with overall 56731 blocked domains loaded successfully (Netgear Nighthawk X4S R7800, ipq806x/generic, OpenWrt 23.05.5 r24106-10cc5fcd00 )
Thu Nov 7 14:55:18 2024 user.info adblock-4.2.2-8[6068]: DEBUG ::: 172 packages
Thu Nov 7 14:55:21 2024 user.info adblock-4.2.2-8[6180]: DEBUG ::: 172 packages
Thu Nov 7 14:55:23 2024 user.info adblock-4.2.2-8[6323]: DEBUG ::: 172 packages

Something i just noticed DNS Backend raw (-), /tmp shouldn't that be dnsmasq ?

1 Like

Please PM me your adblock config and the output of ...

ubus call rpc-sys packagelist '{ "all": true }'

To fix your problem just set the required options manually, e.g.

Yep, it will be removed with the next update ...

1 Like

Thanks for the reply all working now when i changed to dnsmasq which is something i've never had to set before so was a bit confused why it wasn't working

Ok great. BTW...thanks for all you do!!! :+1:

I've used AGH in the past, and it was very easy to define different clients, and disable/enable entries against each user, or even disable blocking all together for one or more clients..

How could you do this with Adblock? Basically I would need different clients to have a different setup based on who they are (for example, I would like disable adblocking for a number of clients, while others will go through adblocking). (While still be on the same subnet/ssid, etc)

Hi, I would like to give a very small feedback...

With apk version on luci I didn't see the version.
Here a screenshoot to understand better.

Thanks

This is for @dibdot, might save him some time fiddling around:

$ apk list --installed --manifest
adblock 4.2.2-r8
apcupsd 3.14.14-r5
apk-mbedtls 3.0.0_pre20241108-r1
attendedsysupgrade-common 9
base-files 1631~cdfe413d26
bind-dig 9.20.0-r1
...

Thanks, thats a known bug since the apk switch in master, see

1 Like

yep, thanks that would work, but I'm not willing to add an apk dependency to my packages I'll wait for the ubus service fix.... :wink:

1 Like

Hah, I didn't even notice you were the one who posted that bug report. Still working on it...

EDIT:
Took me friggin' long enough, eh? :grinning:

1 Like

Hello! I recently installed OpenWrt and Adblock on two routers (Fritz!Box 4040). Unfortunately, adblock does not block advertising. No matter what I set, all DNS requests seem to bypass adblock. What do I have to set to make the filters work?

Set the dns server to your used backend - default on OpenWrt is dnsmasq, e.g.

Restart adblock after that change.