Adblock-lean: set up adblock using dnsmasq blocklist

Which lists are you using? Clearly that domain is included in one of them.

Using the “default” list. Thing is, that’s just one of many sites.

Also seems to be an issue with some emails getting downloaded.

I think it might be a configuration issue with OpenWRT

I suppose: acxiom.com is present in the Hagezi pro list?

1 Like

adblock-lean does not have one default list. It does have presets. The automated setup recommends one of the presets, depending on the memory capacity of the device. Each preset features a different selection of lists. Please post the output of

ls /etc/adblock-lean/
cat /etc/adblock-lean/config
service adblock-lean status

Please specify more examples of sites which are not working. Also, are any websites working at all?

Edit: in the meantime, I checked: acxiom.com is included in both hagezi:pro and hagezi:pro.mini

@antonk @Lynx Hello I'm new at adblock-lean. Can i ask what is “Create missing addnmount entries automatically?” if this is yes or no? Thanks

Hi and welcome. addnmount entries in /etc/config/dhcp are required to enable final blocklist compression and/or adblocking on multiple dnsmasq instances. So if you need either functionality (or if unsure), answer y.

2 Likes

Hi there, I been using the Adblock-lean for many months now and I noticed that the blocking list is getting smaller and smaller, before was something like 800 thousands and now is 620 thousands, I’m not complaining or anything, I was just wondering if somehow was losing performance, before in the adblock test it had a result of 70% or so blocked ads, I haven't notice any ad not being blocked

Hi, Hagezi lists have indeed gone down in size. At some point Hagezi Pro + Hagezi TIF was 1.2 million. I don't know what drives this change. Much work and thought goes into compiling these lists and Hagezi must have changed something in some of the compilation steps.

3 Likes

@antonk i’m only using mobile ssh. Is it ok that i set Random_delay to zero? Btw this the cron_schedule= and this is what looks like in scheduled tasks.

Random delay simply delays the automatic lists update by some random number of minutes (0-60), in order to prevent everyone loading the servers at the same time. The automatically created cron job sets the RANDOM_DELAY environment variable to 1 and this enables the delay. Manually changing the value to 0 disables the delay. This should not cause any problems for you.

I'm not sure what you are saying. If your config file has this line:

cron_schedule=""

and you are pointing out that despite cron_schedule being set to empty string, the cron job exists nevertheless, then the reason is that adblock-lean does not automatically update the cron job when you change the schedule in the config. Updating the cron job requires a flash write and adblock-lean is very conservative in regards to flash writes, in order to prevent flash wear.

If you run the command service adblock-lean upd_cron_job (or when you update adblock-lean), adblock-lean will create/update/remove the cron job, depending on the schedule set in the config. Empty string is not a valid setting for cron job schedule, and if this is what you have in your config then the above command will cause an error to be printed, and your existing cron job will not be changed. If you want to disable the automatic cron job then set cron_job="disable" in your config, then use the command service adblock-lean upd_cron_job.

2 Likes

Another great feature of adblock-lean! Not so great if setting up an adblock service inadvertently gives the router flash a daily thrashing.

4 Likes

can anyone help me with this

<>

root@RARHGBK00053919:~# service adblock-lean gen_config

Based on the total usable memory of this device (477.75 MiB), the recommended preset is 'large':
Elements count: ~1200k
blocklist_urls="hagezi:pro hagezi:tif"
max_file_part_size_KB="24000"
max_blocklist_file_size_KB="29000"
min_good_line_count="340000"

[C]onfirm this preset or [p]ick another preset?
c|p: c
Selected preset 'large'.

Checking dnsmasq instances.
Failed to parse message data

Error: Failed to detect dnsmasq instances or no dnsmasq instances are running.

Stopping adblock-lean.

Error: Invalid entry in config: .
Fix your config file '/etc/adblock-lean/config' or generate default config using 'service adblock-lean gen_config'.
Removing any adblock-lean blocklist files in dnsmasq config directories.

Restarting dnsmasq.

Waiting for dnsmasq initialization.
Restart of dnsmasq completed.

Stopped adblock-lean.

Checking dnsmasq instances.
Failed to parse message data

Error: Failed to detect dnsmasq instances or no dnsmasq instances are running.

</>

Did you try generating new config?

Hi, please post the output of

ubus call system board

{
"kernel": "5.4.225",
"hostname": "RARHGBK00053919",
"system": "ARMv8 Processor rev 4",
"model": "MediaTek MT7986a RFB",
"board_name": "mediatek,mt7986a-spim-snand-rfb",
"release": {
"distribution": "OpenWrt",
"version": "ARCNJIO_JIDU6101_R2.0.9",
"revision": "r0-6757f9e5a",
"target": "mediatek/mt7986",
"description": "OpenWrt ARCNJIO_JIDU6101_R2.0.9 r0-6757f9e5a"
}
}

yes i did but same result

This is an outdated (from 2021) and vendor-modified version of Openwrt. Sorry but adblock-lean will not work on it.

I wonder if a newer version of OpenWrt can be flashed to his device?

dont know i am willing to try if you can assist

I don't think official OpenWrt is supported for this device, and looking at the vendor's forum, to me it looks like vendor's firmware is stuck on that 2021 OpenWrt branch. Anyway, this is far outside of the scope of adblock-lean.

1 Like