Adblock-fast: ad-blocking service for dnsmasq, smartdns and unbound

The latest available versions are 1.1.3-r11 adblock-fast (1.1.3.-r13 is on its way #26672 ) and 1.1.2-r18 respectively for the luci-app-adblock-fast.

Also, provide information about your OpenWRT version, router model, and architecture (execute the command below)

cat /etc/os-release

And the output from installed packages:

opkg list-installed | grep -iE 'awk|curl|sed|sort'

The router is a Dynalink WRX36

cat /etc/os-release
NAME="OpenWrt"
VERSION="23.05.3"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 23.05.3"
VERSION_ID="23.05.3"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r23809-234f1a2efa"
OPENWRT_BOARD="ipq807x/generic"
OPENWRT_ARCH="aarch64_cortex-a53"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 23.05.3 r23809-234f1a2efa"
 opkg list-installed | grep -iE 'awk|curl|sed|sort'
coreutils-sort - 9.3-1
curl - 8.6.0-1
gawk - 5.2.1-2
libcurl4 - 8.6.0-1
sed - 4.9-1

The only upgradeable one is curl, should I upgrade?

When I check the version of adblock-fast, opkg only offers 1.1.2, as you can see

opkg update
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/ipq807x/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/ipq807x/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
root@RobcaWRX36:~# opkg list-installed | grep -iE 'adblock'
adblock-fast - 1.1.2-20
luci-app-adblock-fast - 1.1.2
root@RobcaWRX36:~# opkg upgrade adblock-fast
root@RobcaWRX36:~# opkg list-installed | grep -iE 'adblock'
adblock-fast - 1.1.2-20
luci-app-adblock-fast - 1.1.2

You're using the previous major version of OpenWRT 23.05.3. I'm not sure that @stangri will backport adblock-fast version 1.1.3 for 23.05. And this is the reason why you don't see it. I doubt that you are hitting this bug #26228, but a fix was introduced in version 1.1.3

Also, if I'm not mistaken, your router Dynalink DL-WRX36 supports the latest OpenWRT 24.10 and after the upgrade, you'll be able to see the latest version 1.1.3-r11

Yes, the router supports the latest version, it's just that for that router there has been a naming change (For 23.05: ipq807x-generic. For Snapshots/24.10 onward: qualcommax-ipq807x.) and it will take me time to ensure it all works (including fail safe). Being the main router, any downtime will cause problems with the other users

I will upgrade as soon as possible

But, stepping back a moment: that bug doesn't seem to apply (my allow list is not empty), and the other fix referenced is for swap memory, also unlikely to happen in my case (the router is very lightly loaded). So updating to 24.10 is unlikely to help

Adblock-fast was working until I made the allow-list bigger. All I need is a way to find what line is causing problems. I looked at the adblock-fast configuration file with "view symbol" enabled in Notepad++, and there is nothing out of character (pun intended)

Adblock-fast creates a long debug log file. There has to be a way to parse that file and find the offensive item in the list

Unfortunately, I don't have the original configuration file on hand. If it’s not too much trouble, could you archive your configuration file (like tar or gzip) and upload it here? I’m not able to reproduce the error with the setup from the previous post.
If you want, you can also grab the latest version straight from the official repository and apply it manually on your router.

cd /tmp; curl -fsSL https://raw.githubusercontent.com/stangri/adblock-fast/refs/heads/main/files/etc/init.d/adblock-fast -O

@robca, in addition to what @justops1337 has said (directly downloading an updated init-script), you can try adding my repo with the newer adblock-fast to your 23.05 set-up and updating adblock-fast (and corresponding luci app) from my repo. I don't think there's anything in 1.1.3 that wouldn't work on 23.05.

@justops1337 the version stamping of the init script happens during install, so anyone just copying the init-script from github to their device would have the version of adblock-fast shown as dev-test. :wink:

I forgot the option with your repo which will be the cleanest way to install the package on 23.05. I'm fully aware about "version stamping", but this was the quickest option I could think of at that moment. :blush:

@stangri Just to mention that there is a broken link to the default config file in the DOC page.

1 Like

@stangri do you have plans to equalize the versions of luci-app-adblock-fast because they have "a few version" difference depending on where are you checking?
Luci repo - master 1.1.3-r1
Luci repo - branch 24.10 1.1.2-r18
Upstream repo - master 1.1.3-r13