Adblock support thread

I've got it built on a MT3000 (gl-inet) which is using the same archi. Didn't encounter any build issues.

There must be some explanation why we don't have it in packages...

There are no adblock related faillogs: Index of /releases/faillogs-24.10/aarch64_cortex-a53/

... and yet we don't have it for some reason.

It hasn’t been built yet, but it’s in progress. The previous packages build started before this version was committed.

Thank you a lot!

Hi @dibdot

It seems that the auto-detection for adb_fetchcmd=uclient-fetch somehow started failing recently, resulting in adblock failing to start up. I can reproduce the issue with current/ unmodified OpenWrt/ snapshot x86_64 images (under qemu/ kvm).

Boring preparatory work:

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r29566-19de58edaa
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------

 OpenWrt recently switched to the "apk" package manager!

 OPKG Command           APK Equivalent      Description
 ------------------------------------------------------------------
 opkg install <pkg>     apk add <pkg>       Install a package
 opkg remove <pkg>      apk del <pkg>       Remove a package
 opkg upgrade           apk upgrade         Upgrade all packages
 opkg files <pkg>       apk info -L <pkg>   List package contents
 opkg list-installed    apk info            List installed packages
 opkg update            apk update          Update package lists
 opkg search <pkg>      apk search <pkg>    Search for packages
 ------------------------------------------------------------------

For more https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet

root@OpenWrt:~# apk update
 [https://downloads.openwrt.org/snapshots/targets/x86/64/packages]
 [https://downloads.openwrt.org/snapshots/packages/x86_64/base]
 [https://downloads.openwrt.org/snapshots/targets/x86/64/kmods/6.6.89-1-595ab123e3a82e4b99a09c759a9cc0c8]
 [https://downloads.openwrt.org/snapshots/packages/x86_64/luci]
 [https://downloads.openwrt.org/snapshots/packages/x86_64/packages]
 [https://downloads.openwrt.org/snapshots/packages/x86_64/routing]
 [https://downloads.openwrt.org/snapshots/packages/x86_64/telephony]
 [https://downloads.openwrt.org/snapshots/packages/x86_64/video]
OK: 10381 distinct packages available
root@OpenWrt:~# apk add luci-ssl
( 1/28) Installing cgi-io (2022.08.10~901b0f04-r21)
cgi-io-2022.08.10~901b0f04-r21.post-install: Executing script...
( 2/28) Installing liblucihttp0 (2023.03.15~9b5b683f-r1)
liblucihttp0-2023.03.15~9b5b683f-r1.post-install: Executing script...
( 3/28) Installing liblucihttp-ucode (2023.03.15~9b5b683f-r1)
liblucihttp-ucode-2023.03.15~9b5b683f-r1.post-install: Executing script...
( 4/28) Installing rpcd (2024.12.02~cc9a471c-r1)
rpcd-2024.12.02~cc9a471c-r1.post-install: Executing script...
( 5/28) Installing rpcd-mod-file (2024.12.02~cc9a471c-r1)
rpcd-mod-file-2024.12.02~cc9a471c-r1.post-install: Executing script...
( 6/28) Installing rpcd-mod-luci (20240305-r1)
rpcd-mod-luci-20240305-r1.post-install: Executing script...
( 7/28) Installing rpcd-mod-ucode (2024.12.02~cc9a471c-r1)
rpcd-mod-ucode-2024.12.02~cc9a471c-r1.post-install: Executing script...
( 8/28) Installing ucode-mod-html (1)
ucode-mod-html-1.post-install: Executing script...
( 9/28) Installing ucode-mod-math (2025.05.11~d5b3a9dc-r1)
ucode-mod-math-2025.05.11~d5b3a9dc-r1.post-install: Executing script...
(10/28) Installing luci-base (25.132.82424~eff3501)
luci-base-25.132.82424~eff3501.post-install: Executing script...
(11/28) Installing luci-app-package-manager (25.132.82424~eff3501)
luci-app-package-manager-25.132.82424~eff3501.post-install: Executing script...
(12/28) Installing luci-app-firewall (25.132.82424~eff3501)
luci-app-firewall-25.132.82424~eff3501.post-install: Executing script...
(13/28) Installing libiwinfo-data (2025.02.06~9cec6b4d-r1)
libiwinfo-data-2025.02.06~9cec6b4d-r1.post-install: Executing script...
(14/28) Installing libiwinfo20230701 (2025.02.06~9cec6b4d-r1)
libiwinfo20230701-2025.02.06~9cec6b4d-r1.post-install: Executing script...
(15/28) Installing rpcd-mod-iwinfo (2024.12.02~cc9a471c-r1)
rpcd-mod-iwinfo-2024.12.02~cc9a471c-r1.post-install: Executing script...
(16/28) Installing luci-mod-network (25.132.82424~eff3501)
luci-mod-network-25.132.82424~eff3501.post-install: Executing script...
(17/28) Installing luci-mod-status (25.132.82424~eff3501)
luci-mod-status-25.132.82424~eff3501.post-install: Executing script...
(18/28) Installing luci-mod-system (25.132.82424~eff3501)
luci-mod-system-25.132.82424~eff3501.post-install: Executing script...
(19/28) Installing luci-mod-admin-full (25.132.82424~eff3501)
luci-mod-admin-full-25.132.82424~eff3501.post-install: Executing script...
(20/28) Installing luci-proto-ipv6 (25.132.82424~eff3501)
luci-proto-ipv6-25.132.82424~eff3501.post-install: Executing script...
(21/28) Installing luci-proto-ppp (25.132.82424~eff3501)
luci-proto-ppp-25.132.82424~eff3501.post-install: Executing script...
(22/28) Installing luci-theme-bootstrap (25.132.82424~eff3501)
luci-theme-bootstrap-25.132.82424~eff3501.post-install: Executing script...
luci-theme-bootstrap-25.132.82424~eff3501.post-install: /luci-static/bootstrap
(23/28) Installing rpcd-mod-rrdns (20170710)
rpcd-mod-rrdns-20170710.post-install: Executing script...
(24/28) Installing uhttpd (2023.06.25~34a8a74d-r4)
uhttpd-2023.06.25~34a8a74d-r4.post-install: Executing script...
uhttpd-2023.06.25~34a8a74d-r4.post-install: 4+0 records in
uhttpd-2023.06.25~34a8a74d-r4.post-install: 4+0 records out
(25/28) Installing uhttpd-mod-ubus (2023.06.25~34a8a74d-r4)
uhttpd-mod-ubus-2023.06.25~34a8a74d-r4.post-install: Executing script...
uhttpd-mod-ubus-2023.06.25~34a8a74d-r4.post-install: 4+0 records in
uhttpd-mod-ubus-2023.06.25~34a8a74d-r4.post-install: 4+0 records out
(26/28) Installing luci-light (25.132.82424~eff3501)
luci-light-25.132.82424~eff3501.post-install: Executing script...
(27/28) Installing px5g-mbedtls (11)
px5g-mbedtls-11.post-install: Executing script...
(28/28) Installing luci-ssl (25.132.82424~eff3501)
luci-ssl-25.132.82424~eff3501.post-install: Executing script...
OK: 23 MiB in 173 packages
root@OpenWrt:~# /etc/init.d/uhttpd restart
4+0 records in
4+0 records out
Generating EC private key
Generating selfsigned certificate with subject 'C=ZZ,ST=Somewhere,L=Unknown,O=OpenWrtcf7a75da,CN=OpenWrt,' and validity 20250514070759-20260615070759

Installing luci-app-adblock:

root@OpenWrt:~# apk add luci-app-adblock
(1/9) Installing coreutils (9.6-r5)
coreutils-9.6-r5.post-install: Executing script...
(2/9) Installing coreutils-sort (9.6-r5)
coreutils-sort-9.6-r5.post-install: Executing script...
coreutils-sort-9.6-r5.post-install: add alternative: /usr/bin/sort -> /usr/libexec/sort-coreutils
(3/9) Installing terminfo (6.4-r2)
terminfo-6.4-r2.post-install: Executing script...
(4/9) Installing libncurses6 (6.4-r2)
libncurses6-6.4-r2.post-install: Executing script...
(5/9) Installing libreadline8 (8.2-r2)
libreadline8-8.2-r2.post-install: Executing script...
(6/9) Installing gawk (5.3.2-r1)
gawk-5.3.2-r1.post-install: Executing script...
gawk-5.3.2-r1.post-install: add alternative: /usr/bin/awk -> /usr/bin/gawk
(7/9) Installing rpcd-mod-rpcsys (2024.12.02~cc9a471c-r1)
rpcd-mod-rpcsys-2024.12.02~cc9a471c-r1.post-install: Executing script...
(8/9) Installing adblock (4.4.1-r2)
adblock-4.4.1-r2.post-install: Executing script...
(9/9) Installing luci-app-adblock (25.132.82424~eff3501)
luci-app-adblock-25.132.82424~eff3501.post-install: Executing script...
OK: 25 MiB in 182 packages

Checking (relevant) installed packages:

root@OpenWrt:~# apk list --installed | grep -e adblock -e uclient -e ustream -e wget -e curl
adblock-4.4.1-r2 noarch {feeds/packages/net/adblock} (GPL-3.0-or-later) [installed]
libuclient20201210-2024.10.22~88ae8f20-r1 x86_64 {feeds/base/libs/uclient} (ISC) [installed]
libustream-mbedtls20201210-2024.07.28~99bd3d2b-r1 x86_64 {feeds/base/libs/ustream-ssl} (ISC) [installed]
luci-app-adblock-25.132.82424~eff3501 noarch {feeds/luci/applications/luci-app-adblock} (Apache-2.0) [installed]
uclient-fetch-2024.10.22~88ae8f20-r1 x86_64 {feeds/base/libs/uclient} (ISC) [installed]

Checking default config and (re-)starting adblock:

root@OpenWrt:~# cat /etc/config/adblock 

config adblock 'global'
        option adb_enabled '1'
        option adb_debug '0'
        option adb_dnsforce '0'
        option adb_dnsshift '0'
        option adb_safesearch '0'
        option adb_mail '0'
        option adb_report '0'
        list adb_feed 'adguard'
        list adb_feed 'adguard_tracking'
        list adb_feed 'certpl'
        option adb_dns 'dnsmasq'


root@OpenWrt:~# /etc/init.d/adblock restart ; sleep 60 ; /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : error
  + adblock_version : 4.4.1-r2
  + blocked_domains : 0
  + active_feeds    : -
  + dns_backend     : dnsmasq (2.91-r1), /tmp/dnsmasq.cfg01411c.d, 3.59 MB
  + run_utils       : download: , sort: /usr/libexec/sort-coreutils, awk: /usr/bin/gawk
  + run_ifaces      : trigger: -, report: -
  + run_directories : base: /tmp, dns: /tmp/dnsmasq.cfg01411c.d, backup: /tmp/adblock-backup, report: /tmp/adblock-report, jail: /tmp
  + run_flags       : shift: ✘, force: ✘, flush: ✘, tld: βœ”, search: ✘, report: ✘, mail: ✘, jail: ✘
  + last_run        : -
  + system_info     : QEMU Standard PC (Q35 + ICH9, 2009), x86/64, OpenWrt SNAPSHOT r29566-19de58edaa

Setting adb_fetchcmd to uclient-fetch explicitly and (re-)starting adblock:

root@OpenWrt:~# uci set adblock.global.adb_fetchcmd='uclient-fetch'
root@OpenWrt:~# uci commit
root@OpenWrt:~# /etc/init.d/adblock restart ; sleep 60 ; /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 4.4.1-r2
  + blocked_domains : 172 312
  + active_feeds    : adguard, adguard_tracking, certpl
  + dns_backend     : dnsmasq (2.91-r1), /tmp/dnsmasq.cfg01411c.d, 16.38 MB
  + run_utils       : download: /bin/uclient-fetch, sort: /usr/libexec/sort-coreutils, awk: /usr/bin/gawk
  + run_ifaces      : trigger: -, report: -
  + run_directories : base: /tmp, dns: /tmp/dnsmasq.cfg01411c.d, backup: /tmp/adblock-backup, report: /tmp/adblock-report, jail: /tmp
  + run_flags       : shift: ✘, force: ✘, flush: ✘, tld: βœ”, search: ✘, report: ✘, mail: ✘, jail: ✘
  + last_run        : mode: restart, 2025-05-14T07:12:23+00:00, duration: 0m 4s, 3.93 MB available
  + system_info     : QEMU Standard PC (Q35 + ICH9, 2009), x86/64, OpenWrt SNAPSHOT r29566-19de58edaa

All working fine now.

Originally noticed on custom snapshot builds (with ustream-openssl and no traces of mbedtls/ wolfssl) x86_64-efi/ j1900 and ipq806x/ ASRock g10, but it reproduces on current vanilla x86_64 snapshot images.

Please provide the output of ubus call rpc-sys packagelist '{ "all": true }' on the affected machine. Thanks!

Current snapshot/ x86_64 (qemu-kvm) from above (https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-squashfs-combined.img.gz).

root@OpenWrt:~# ubus call rpc-sys packagelist '{ "all": true }'
{
        "packages": {
                "adblock": "4.4.1-r2",
                "apk-mbedtls": "3.0.0_pre20250208-r2",
                "base-files": "1658~19de58edaa",
                "bnx2-firmware": "20250509-r1",
                "busybox": "1.37.0-r4",
                "ca-bundle": "20241223-r1",
                "cgi-io": "2022.08.10~901b0f04-r21",
                "coreutils": "9.6-r5",
                "coreutils-sort": "9.6-r5",
                "dnsmasq": "2.91-r1",
                "dropbear": "2024.86-r1",
                "e2fsprogs": "1.47.2-r1",
                "firewall4": "2025.03.17~b6e51575-r1",
                "fstools": "2024.12.02~49d36ba2-r1",
                "fwtool": "2019.11.12~8f7fe925-r1",
                "gawk": "5.3.2-r1",
                "getrandom": "2024.04.26~85f10530-r1",
                "grub2": "2.12-r1",
                "grub2-bios-setup": "2.12-r1",
                "grub2-efi": "2.12-r1",
                "i915-firmware-dmc": "20250509-r1",
                "jansson4": "2.14-r3",
                "jshn": "2024.12.19~3868f47c-r1",
                "jsonfilter": "2025.04.18~8a86fb78-r1",
                "kernel": "6.6.89~595ab123e3a82e4b99a09c759a9cc0c8-r1",
                "kmod-acpi-video": "6.6.89-r1",
                "kmod-amazon-ena": "6.6.89-r1",
                "kmod-amd-xgbe": "6.6.89-r1",
                "kmod-backlight": "6.6.89-r1",
                "kmod-bnx2": "6.6.89-r1",
                "kmod-button-hotplug": "6.6.89-r3",
                "kmod-crypto-crc32c": "6.6.89-r1",
                "kmod-crypto-hash": "6.6.89-r1",
                "kmod-dma-buf": "6.6.89-r1",
                "kmod-drm": "6.6.89-r1",
                "kmod-drm-buddy": "6.6.89-r1",
                "kmod-drm-display-helper": "6.6.89-r1",
                "kmod-drm-exec": "6.6.89-r1",
                "kmod-drm-i915": "6.6.89-r1",
                "kmod-drm-kms-helper": "6.6.89-r1",
                "kmod-drm-suballoc-helper": "6.6.89-r1",
                "kmod-drm-ttm": "6.6.89-r1",
                "kmod-drm-ttm-helper": "6.6.89-r1",
                "kmod-dwmac-intel": "6.6.89-r1",
                "kmod-e1000": "6.6.89-r1",
                "kmod-e1000e": "6.6.89-r1",
                "kmod-fb": "6.6.89-r1",
                "kmod-fb-cfb-copyarea": "6.6.89-r1",
                "kmod-fb-cfb-fillrect": "6.6.89-r1",
                "kmod-fb-cfb-imgblt": "6.6.89-r1",
                "kmod-fb-sys-fops": "6.6.89-r1",
                "kmod-fb-sys-ram": "6.6.89-r1",
                "kmod-forcedeth": "6.6.89-r1",
                "kmod-fs-vfat": "6.6.89-r1",
                "kmod-hwmon-core": "6.6.89-r1",
                "kmod-i2c-algo-bit": "6.6.89-r1",
                "kmod-i2c-core": "6.6.89-r1",
                "kmod-igb": "6.6.89-r1",
                "kmod-igc": "6.6.89-r1",
                "kmod-input-core": "6.6.89-r1",
                "kmod-ixgbe": "6.6.89-r1",
                "kmod-lib-crc-ccitt": "6.6.89-r1",
                "kmod-lib-crc32c": "6.6.89-r1",
                "kmod-libphy": "6.6.89-r1",
                "kmod-mdio": "6.6.89-r1",
                "kmod-mdio-devres": "6.6.89-r1",
                "kmod-mii": "6.6.89-r1",
                "kmod-nf-conntrack": "6.6.89-r1",
                "kmod-nf-conntrack6": "6.6.89-r1",
                "kmod-nf-flow": "6.6.89-r1",
                "kmod-nf-log": "6.6.89-r1",
                "kmod-nf-log6": "6.6.89-r1",
                "kmod-nf-nat": "6.6.89-r1",
                "kmod-nf-reject": "6.6.89-r1",
                "kmod-nf-reject6": "6.6.89-r1",
                "kmod-nfnetlink": "6.6.89-r1",
                "kmod-nft-core": "6.6.89-r1",
                "kmod-nft-fib": "6.6.89-r1",
                "kmod-nft-nat": "6.6.89-r1",
                "kmod-nft-offload": "6.6.89-r1",
                "kmod-nls-base": "6.6.89-r1",
                "kmod-nls-cp437": "6.6.89-r1",
                "kmod-nls-iso8859-1": "6.6.89-r1",
                "kmod-nls-utf8": "6.6.89-r1",
                "kmod-pcs-xpcs": "6.6.89-r1",
                "kmod-phy-realtek": "6.6.89-r1",
                "kmod-phylink": "6.6.89-r1",
                "kmod-ppp": "6.6.89-r1",
                "kmod-pppoe": "6.6.89-r1",
                "kmod-pppox": "6.6.89-r1",
                "kmod-pps": "6.6.89-r1",
                "kmod-ptp": "6.6.89-r1",
                "kmod-r8169": "6.6.89-r1",
                "kmod-slhc": "6.6.89-r1",
                "kmod-stmmac-core": "6.6.89-r1",
                "kmod-tg3": "6.6.89-r1",
                "libblkid1": "2.41-r1",
                "libblobmsg-json20241219": "2024.12.19~3868f47c-r1",
                "libc": "1.2.5-r4",
                "libcomerr0": "1.47.2-r1",
                "libe2p2": "1.47.2-r1",
                "libext2fs2": "1.47.2-r1",
                "libf2fs6": "1.16.0-r3",
                "libgcc1": "14.2.0-r4",
                "libiwinfo-data": "2025.02.06~9cec6b4d-r1",
                "libiwinfo20230701": "2025.02.06~9cec6b4d-r1",
                "libjson-c5": "0.18-r1",
                "libjson-script20241219": "2024.12.19~3868f47c-r1",
                "liblucihttp-ucode": "2023.03.15~9b5b683f-r1",
                "liblucihttp0": "2023.03.15~9b5b683f-r1",
                "libmbedtls21": "3.6.3-r1",
                "libmnl0": "1.0.5-r1",
                "libncurses6": "6.4-r2",
                "libnftnl11": "1.2.8-r1",
                "libnl-tiny1": "2025.03.19~c0df580a-r1",
                "libpthread": "1.2.5-r4",
                "libreadline8": "8.2-r2",
                "librt": "1.2.5-r4",
                "libsmartcols1": "2.41-r1",
                "libss2": "1.47.2-r1",
                "libubox20241219": "2024.12.19~3868f47c-r1",
                "libubus20250102": "2025.01.02~afa57cce-r1",
                "libuci20250120": "2025.01.20~16ff0bad-r1",
                "libuclient20201210": "2024.10.22~88ae8f20-r1",
                "libucode20230711": "2025.05.11~d5b3a9dc-r1",
                "libudebug": "2023.12.06~6d3f51f9",
                "libustream-mbedtls20201210": "2024.07.28~99bd3d2b-r1",
                "libuuid1": "2.41-r1",
                "logd": "2024.04.26~85f10530-r1",
                "luci-app-adblock": "25.132.82424~eff3501",
                "luci-app-firewall": "25.132.82424~eff3501",
                "luci-app-package-manager": "25.132.82424~eff3501",
                "luci-base": "25.132.82424~eff3501",
                "luci-light": "25.132.82424~eff3501",
                "luci-mod-admin-full": "25.132.82424~eff3501",
                "luci-mod-network": "25.132.82424~eff3501",
                "luci-mod-status": "25.132.82424~eff3501",
                "luci-mod-system": "25.132.82424~eff3501",
                "luci-proto-ipv6": "25.132.82424~eff3501",
                "luci-proto-ppp": "25.132.82424~eff3501",
                "luci-ssl": "25.132.82424~eff3501",
                "luci-theme-bootstrap": "25.132.82424~eff3501",
                "mkf2fs": "1.16.0-r3",
                "mtd": "26",
                "netifd": "2024.12.17~ea01ed41-r1",
                "nftables-json": "1.1.1-r1",
                "odhcp6c": "2024.09.25~b6ae9ffa-r1",
                "odhcpd-ipv6only": "2024.05.08~a2988231-r1",
                "openwrt-keyring": "2024.11.01~fbae29d7-r1",
                "partx-utils": "2.41-r1",
                "ppp": "2.5.2-r1",
                "ppp-mod-pppoe": "2.5.2-r1",
                "procd": "2025.03.13~891094ae-r1",
                "procd-seccomp": "2025.03.13~891094ae-r1",
                "procd-ujail": "2025.03.13~891094ae-r1",
                "px5g-mbedtls": "11",
                "r8169-firmware": "20250509-r1",
                "rpcd": "2024.12.02~cc9a471c-r1",
                "rpcd-mod-file": "2024.12.02~cc9a471c-r1",
                "rpcd-mod-iwinfo": "2024.12.02~cc9a471c-r1",
                "rpcd-mod-luci": "20240305-r1",
                "rpcd-mod-rpcsys": "2024.12.02~cc9a471c-r1",
                "rpcd-mod-rrdns": "20170710",
                "rpcd-mod-ucode": "2024.12.02~cc9a471c-r1",
                "terminfo": "6.4-r2",
                "ubox": "2024.04.26~85f10530-r1",
                "ubus": "2025.01.02~afa57cce-r1",
                "ubusd": "2025.01.02~afa57cce-r1",
                "uci": "2025.01.20~16ff0bad-r1",
                "uclient-fetch": "2024.10.22~88ae8f20-r1",
                "ucode": "2025.05.11~d5b3a9dc-r1",
                "ucode-mod-fs": "2025.05.11~d5b3a9dc-r1",
                "ucode-mod-html": "1",
                "ucode-mod-math": "2025.05.11~d5b3a9dc-r1",
                "ucode-mod-ubus": "2025.05.11~d5b3a9dc-r1",
                "ucode-mod-uci": "2025.05.11~d5b3a9dc-r1",
                "uhttpd": "2023.06.25~34a8a74d-r4",
                "uhttpd-mod-ubus": "2023.06.25~34a8a74d-r4",
                "urandom-seed": "3",
                "urngd": "2023.11.01~44365eb1-r1",
                "usign": "2020.05.23~f1f65026-r1",
                "zlib": "1.3.1-r1"
        }
}
root@OpenWrt:~# ubus call system board
{
        "kernel": "6.6.89",
        "hostname": "OpenWrt",
        "system": "Common KVM processor",
        "model": "QEMU Standard PC (Q35 + ICH9, 2009)",
        "board_name": "qemu-standard-pc-q35-ich9-2009",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "firmware_url": "https://downloads.openwrt.org/",
                "revision": "r29566-19de58edaa",
                "target": "x86/64",
                "description": "OpenWrt SNAPSHOT r29566-19de58edaa",
                "builddate": "1747147729"
        }
}
1 Like

The (outdated) version string in the package name looks odd to me, maybe @efahl has an idea ...

Interestingly that is the same (apart from mbedtls vs openssl) on my self-built x86_64 and ipq806x images.

x86_64:

root@gateprotect:~# ubus call rpc-sys packagelist '{ "all": true }' | grep ustream
                "libustream-openssl20201210": "2024.07.28~99bd3d2b-r1",
root@gateprotect:~# ubus call system board
{
        "kernel": "6.12.28",
        "hostname": "gateprotect",
        "system": "Intel(R) Celeron(R) CPU  J1900  @ 1.99GHz",
        "model": "R & S Cybersecurity gateprotect GmbH GP-7543",
        "board_name": "r-s-cybersecurity-gateprotect-gmbh-gp-7543",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "firmware_url": "https://downloads.openwrt.org/",
                "revision": "r29565-26e64260e9",
                "target": "x86/64",
                "description": "OpenWrt SNAPSHOT r29565-26e64260e9",
                "builddate": "1747099946"
        }
}
root@gateprotect:~# ubus call rpc-sys packagelist '{ "all": true }' | grep ustream
                "libustream-openssl20201210": "2024.07.28~99bd3d2b-r1",
root@gateprotect:~#

ipq806x:

root@asrock-g10:~# ubus call system board
{
        "kernel": "6.6.89",
        "hostname": "asrock-g10",
        "system": "ARMv7 Processor rev 0 (v7l)",
        "model": "ASRock G10",
        "board_name": "asrock,g10",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "SNAPSHOT",
                "firmware_url": "https://downloads.openwrt.org/",
                "revision": "r29565-26e64260e9",
                "target": "ipq806x/generic",
                "description": "OpenWrt SNAPSHOT r29565-26e64260e9",
                "builddate": "1747099946"
        }
}
root@asrock-g10:~# ubus call rpc-sys packagelist '{ "all": true }' | grep ustream
                "libustream-openssl20201210": "2024.07.28~99bd3d2b-r1",
root@asrock-g10:~#

Thanks, that's just a first rough guess.
I'll take a look in the next week (currently I'm "offline" :-). Maybe you can check that on a 24.x board/build, too!?

Thanks!

Take your time, I've found my workaround (uci set adblock.global.adb_fetchcmd='uclient-fetch').

It was working until rather recently, ~6-8 weeks old main builds. And it does seem to work on 24.10.1.

Vanilla 24.10.1/ x86_64:

BusyBox v1.36.1 (2025-04-13 16:38:32 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 24.10.1, r28597-0425664679
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# ubus call system board
{
        "kernel": "6.6.86",
        "hostname": "OpenWrt",
        "system": "Common KVM processor",
        "model": "QEMU Standard PC (Q35 + ICH9, 2009)",
        "board_name": "qemu-standard-pc-q35-ich9-2009",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "24.10.1",
                "revision": "r28597-0425664679",
                "target": "x86/64",
                "description": "OpenWrt 24.10.1 r28597-0425664679",
                "builddate": "1744562312"
        }
}
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/24.10.1/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/24.10.1/targets/x86/64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.1/targets/x86/64/kmods/6.6.86-1-af351158cfb5febf5155a3aa53785982/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading https://downloads.openwrt.org/releases/24.10.1/targets/x86/64/kmods/6.6.86-1-af351158cfb5febf5155a3aa53785982/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install luci-app-adblock
Installing luci-app-adblock (25.130.38691~48b6321) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/luci/luci-app-adblock_25.130.38691~48b6321_all.ipk
Installing coreutils (9.3-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/packages/coreutils_9.3-r1_x86_64.ipk
Installing coreutils-sort (9.3-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/packages/coreutils-sort_9.3-r1_x86_64.ipk
Installing terminfo (6.4-r2) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/base/terminfo_6.4-r2_x86_64.ipk
Installing libncurses6 (6.4-r2) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/base/libncurses6_6.4-r2_x86_64.ipk
Installing libreadline8 (8.2-r2) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/base/libreadline8_8.2-r2_x86_64.ipk
Installing gawk (5.3.0-r2) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/packages/gawk_5.3.0-r2_x86_64.ipk
Installing rpcd-mod-rpcsys (2024.09.17~9f4b86e7-r1) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/base/rpcd-mod-rpcsys_2024.09.17~9f4b86e7-r1_x86_64.ipk
Installing adblock (4.4.1-r2) to root...
Downloading https://downloads.openwrt.org/releases/24.10.1/packages/x86_64/packages/adblock_4.4.1-r2_all.ipk
Configuring terminfo.
Configuring coreutils.
Configuring coreutils-sort.
Configuring libncurses6.
Configuring libreadline8.
Configuring gawk.
Configuring rpcd-mod-rpcsys.
Configuring adblock.
Configuring luci-app-adblock.

Checking (relevant) installed packages:

root@OpenWrt:~# opkg list_installed | grep -e adblock -e uclient -e ustream -e wget -e curl
adblock - 4.4.1-r2
libuclient20201210 - 2024.10.22~88ae8f20-r1
libustream-mbedtls20201210 - 2024.07.28~99bd3d2b-r1
luci-app-adblock - 25.130.38691~48b6321
uclient-fetch - 2024.10.22~88ae8f20-r1

root@OpenWrt:~# ubus call rpc-sys packagelist '{ "all": true }'
{
        "packages": {
                "kmod-drm": "6.6.86-r1",
                "terminfo": "6.4-r2",
                "liblucihttp": "2023.03.15~9b5b683f-r1",
                "luci-app-adblock": "25.130.38691~48b6321",
                "cgi-io": "2022.08.10~901b0f04-r21",
                "libc": "1.2.5-r4",
                "mkf2fs": "1.16.0-r3",
                "opkg": "2024.10.16~38eccbb1-r1",
                "kmod-dma-buf": "6.6.86-r1",
                "libpthread": "1.2.5-r4",
                "ubus": "2025.01.02~afa57cce-r1",
                "kmod-ixgbe": "6.6.86-r1",
                "rpcd": "2024.09.17~9f4b86e7-r1",
                "busybox": "1.36.1-r2",
                "libiwinfo": "2024.10.20~b94f066e-r1",
                "kmod-nft-fib": "6.6.86-r1",
                "kmod-nfnetlink": "6.6.86-r1",
                "kmod-crypto-hash": "6.6.86-r1",
                "kmod-nf-reject6": "6.6.86-r1",
                "bnx2-firmware": "20241110-r1",
                "luci-mod-system": "25.103.51521~2ac26e5",
                "kmod-nf-flow": "6.6.86-r1",
                "libnl-tiny": "2025.03.19~c0df580a-r1",
                "kmod-lib-crc-ccitt": "6.6.86-r1",
                "px5g-mbedtls": "11",
                "getrandom": "2024.04.26~85f10530-r1",
                "ucode-mod-ubus": "2025.02.10~a8a11aea-r1",
                "kmod-drm-ttm-helper": "6.6.86-r1",
                "i915-firmware-dmc": "20241110-r1",
                "r8169-firmware": "20241110-r1",
                "luci-theme-bootstrap": "25.103.51521~2ac26e5",
                "kmod-pppoe": "6.6.86-r1",
                "libuuid": "2.40.2-r1",
                "kmod-drm-kms-helper": "6.6.86-r1",
                "kmod-drm-buddy": "6.6.86-r1",
                "kmod-pcs-xpcs": "6.6.86-r1",
                "kmod-drm-exec": "6.6.86-r1",
                "kmod-pppox": "6.6.86-r1",
                "kmod-nf-reject": "6.6.86-r1",
                "procd-ujail": "2024.12.22~42d39376-r1",
                "base-files": "1658~0425664679",
                "kmod-nf-nat": "6.6.86-r1",
                "kmod-input-core": "6.6.86-r1",
                "kmod-crypto-crc32c": "6.6.86-r1",
                "ucode-mod-uci": "2025.02.10~a8a11aea-r1",
                "partx-utils": "2.40.2-r1",
                "libustream-mbedtls": "2024.07.28~99bd3d2b-r1",
                "netifd": "2024.12.17~ea01ed41-r1",
                "coreutils": "9.3-r1",
                "libf2fs": "1.16.0-r3",
                "libsmartcols": "2.40.2-r1",
                "kmod-backlight": "6.6.86-r1",
                "kmod-r8169": "6.6.86-r1",
                "firewall4": "2024.12.18~18fc0ead-r1",
                "adblock": "4.4.1-r2",
                "dnsmasq": "2.90-r4",
                "kmod-mii": "6.6.86-r1",
                "procd": "2024.12.22~42d39376-r1",
                "ubusd": "2025.01.02~afa57cce-r1",
                "kmod-fb-sys-fops": "6.6.86-r1",
                "kmod-crypto-acompress": "6.6.86-r1",
                "rpcd-mod-ucode": "2024.09.17~9f4b86e7-r1",
                "ucode-mod-math": "2025.02.10~a8a11aea-r1",
                "kmod-lib-crc32c": "6.6.86-r1",
                "libubus": "2025.01.02~afa57cce-r1",
                "luci-mod-status": "25.103.51521~2ac26e5",
                "kmod-i2c-core": "6.6.86-r1",
                "kmod-fb": "6.6.86-r1",
                "kmod-drm-display-helper": "6.6.86-r1",
                "kmod-fs-vfat": "6.6.86-r1",
                "kmod-nft-nat": "6.6.86-r1",
                "kmod-phy-realtek": "6.6.86-r1",
                "luci-app-firewall": "25.103.51521~2ac26e5",
                "grub2-efi": "2.12-r1",
                "libmbedtls": "3.6.3-r1",
                "libblkid": "2.40.2-r1",
                "libmnl": "1.0.5-r1",
                "jansson": "2.14-r3",
                "kmod-fb-sys-ram": "6.6.86-r1",
                "grub2-bios-setup": "2.12-r1",
                "odhcp6c": "2024.09.25~b6ae9ffa-r1",
                "fstools": "2024.07.14~408c2cc4-r1",
                "uclient-fetch": "2024.10.22~88ae8f20-r1",
                "kmod-acpi-video": "6.6.86-r1",
                "uci": "2025.01.20~16ff0bad-r1",
                "grub2": "2.12-r1",
                "ucode-mod-fs": "2025.02.10~a8a11aea-r1",
                "luci-ssl": "25.103.51521~2ac26e5",
                "dropbear": "2024.86-r1",
                "kmod-hwmon-core": "6.6.86-r1",
                "kmod-nls-utf8": "6.6.86-r1",
                "libnftnl": "1.2.8-r1",
                "kmod-drm-ttm": "6.6.86-r1",
                "kmod-nls-cp437": "6.6.86-r1",
                "rpcd-mod-file": "2024.09.17~9f4b86e7-r1",
                "mtd": "26",
                "odhcpd-ipv6only": "2024.05.08~a2988231-r1",
                "procd-seccomp": "2024.12.22~42d39376-r1",
                "coreutils-sort": "9.3-r1",
                "libjson-script": "2024.03.29~eb9bcb64-r1",
                "libiwinfo-data": "2024.10.20~b94f066e-r1",
                "ucode": "2025.02.10~a8a11aea-r1",
                "rpcd-mod-luci": "20240305-r1",
                "kmod-nf-log": "6.6.86-r1",
                "luci-app-package-manager": "25.103.51521~2ac26e5",
                "libuci": "2025.01.20~16ff0bad-r1",
                "kmod-fb-cfb-imgblt": "6.6.86-r1",
                "urandom-seed": "3",
                "luci-proto-ppp": "25.103.51521~2ac26e5",
                "libcomerr": "1.47.0-r2",
                "luci-mod-admin-full": "25.103.51521~2ac26e5",
                "ppp": "2.5.1-r1",
                "luci-base": "25.103.51521~2ac26e5",
                "logd": "2024.04.26~85f10530-r1",
                "kmod-nf-log6": "6.6.86-r1",
                "libreadline": "8.2-r2",
                "librt": "1.2.5-r4",
                "kmod-tg3": "6.6.86-r1",
                "luci-proto-ipv6": "25.103.51521~2ac26e5",
                "openwrt-keyring": "2024.11.01~fbae29d7-r2",
                "kmod-fb-cfb-copyarea": "6.6.86-r1",
                "kmod-fb-cfb-fillrect": "6.6.86-r1",
                "kmod-libphy": "6.6.86-r1",
                "libext2fs": "1.47.0-r2",
                "jshn": "2024.03.29~eb9bcb64-r1",
                "nftables-json": "1.1.1-r1",
                "e2fsprogs": "1.47.0-r2",
                "kmod-e1000": "6.6.86-r1",
                "kmod-nft-offload": "6.6.86-r1",
                "kmod-ppp": "6.6.86-r1",
                "kmod-drm-suballoc-helper": "6.6.86-r1",
                "kmod-pps": "6.6.86-r1",
                "libncurses": "6.4-r2",
                "gawk": "5.3.0-r2",
                "libss": "1.47.0-r2",
                "libjson-c": "0.18-r1",
                "kmod-phylink": "6.6.86-r1",
                "uhttpd": "2023.06.25~34a8a74d-r4",
                "kmod-nf-conntrack": "6.6.86-r1",
                "usign": "2020.05.23~f1f65026-r1",
                "libblobmsg-json": "2024.03.29~eb9bcb64-r1",
                "rpcd-mod-rpcsys": "2024.09.17~9f4b86e7-r1",
                "ca-bundle": "20241223-r1",
                "kmod-forcedeth": "6.6.86-r1",
                "libuclient": "2024.10.22~88ae8f20-r1",
                "kmod-nls-iso8859-1": "6.6.86-r1",
                "kmod-amd-xgbe": "6.6.86-r1",
                "ucode-mod-html": "1",
                "kmod-ptp": "6.6.86-r1",
                "kmod-dwmac-intel": "6.6.86-r1",
                "luci": "25.103.51521~2ac26e5",
                "kmod-nf-conntrack6": "6.6.86-r1",
                "luci-light": "25.103.51521~2ac26e5",
                "libgcc": "13.3.0-r4",
                "kmod-drm-i915": "6.6.86-r1",
                "kmod-lib-lzo": "6.6.86-r1",
                "ubox": "2024.04.26~85f10530-r1",
                "kmod-amazon-ena": "6.6.86-r1",
                "kernel": "6.6.86~af351158cfb5febf5155a3aa53785982-r1",
                "kmod-e1000e": "6.6.86-r1",
                "rpcd-mod-iwinfo": "2024.09.17~9f4b86e7-r1",
                "luci-mod-network": "25.103.51521~2ac26e5",
                "kmod-nft-core": "6.6.86-r1",
                "libucode": "2025.02.10~a8a11aea-r1",
                "kmod-button-hotplug": "6.6.86-r3",
                "kmod-nls-base": "6.6.86-r1",
                "uhttpd-mod-ubus": "2023.06.25~34a8a74d-r4",
                "kmod-stmmac-core": "6.6.86-r1",
                "fwtool": "2019.11.12~8f7fe925-r1",
                "jsonfilter": "2024.01.23~594cfa86-r1",
                "kmod-mdio": "6.6.86-r1",
                "liblucihttp-ucode": "2023.03.15~9b5b683f-r1",
                "kmod-igb": "6.6.86-r1",
                "libubox": "2024.03.29~eb9bcb64-r1",
                "kmod-igc": "6.6.86-r1",
                "libe2p": "1.47.0-r2",
                "kmod-i2c-algo-bit": "6.6.86-r1",
                "kmod-bnx2": "6.6.86-r1",
                "libudebug": "2023.12.06~6d3f51f9",
                "kmod-mdio-devres": "6.6.86-r1",
                "urngd": "2023.11.01~44365eb1-r1",
                "kmod-slhc": "6.6.86-r1",
                "rpcd-mod-rrdns": "20170710",
                "ppp-mod-pppoe": "2.5.1-r1"
        }
}
root@OpenWrt:~#

Checking default config and (re-)starting adblock:

root@OpenWrt:~# cat /etc/config/adblock 

config adblock 'global'
        option adb_enabled '1'
        option adb_debug '0'
        option adb_dnsforce '0'
        option adb_dnsshift '0'
        option adb_safesearch '0'
        option adb_mail '0'
        option adb_report '0'
        list adb_feed 'adguard'
        list adb_feed 'adguard_tracking'
        list adb_feed 'certpl'
        option adb_dns 'dnsmasq'
        option adb_fetchcmd 'uclient-fetch'

root@OpenWrt:~# /etc/init.d/adblock restart ; sleep 60 ; /etc/init.d/adblock status
::: adblock runtime information
  + adblock_status  : enabled
  + adblock_version : 4.4.1-r2
  + blocked_domains : 172 419
  + active_feeds    : adguard, adguard_tracking, certpl
  + dns_backend     : dnsmasq (2.90-r4), /tmp/dnsmasq.cfg01411c.d, 16.34 MB
  + run_utils       : download: /bin/uclient-fetch, sort: /usr/libexec/sort-coreutils, awk: /usr/bin/gawk
  + run_ifaces      : trigger: -, report: -
  + run_directories : base: /tmp, dns: /tmp/dnsmasq.cfg01411c.d, backup: /tmp/adblock-backup, report: /tmp/adblock-report, jail: /tmp
  + run_flags       : shift: ✘, force: ✘, flush: ✘, tld: βœ”, search: ✘, report: ✘, mail: ✘, jail: ✘
  + last_run        : mode: restart, 2025-05-14T08:18:44+00:00, duration: 0m 2s, 6.23 MB available
  + system_info     : QEMU Standard PC (Q35 + ICH9, 2009), x86/64, OpenWrt 24.10.1 r28597-0425664679 

I didn't set adb_fetchcmd manually.

Maybe I didn't notice the issue earlier as I could retain my old /etc/config/adblock until the adb_sources --> adb_feed switch, which 'forced' me to refresh my config.

That looks OK, than it seems to be a snapshot problem. Thanks for testing!

Hmm, hard to say as uclient-fetch (actually libuclient) has that runtime dependency on its tls package. If you check apk info --all libuclient*, it does not show any mention of a tls lib, but if you run it with an https: target, it complains if one isn't available. Not sure how it handles the ABI versions, hardcoded into the ld call when it's built???

I notice in the Hagezi dropdown - his NSFW feed is not available for selection. Is there a specific reason why? If not - can it be added? Thanks!

Installed Adblock today and it seems to be working well; thank you!

The certpl feed times out with:

Thu May 22 02:17:29 2025 user.info adblock-4.4.1-r2[1817]: download of 'certpl' failed, url: https://hole.cert.pl/domains/v2/domains.txt, rule: /^([[:alnum:]_-]{1,63}\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}, categories: -, rc: 4

Checking their website with a browser - the website works but time out trying the download.

???? is it possible they are restricting the use of their list?

Try to log in via ssh to your router and download it manually. See what it will spit out to console. It should look something like this:

root@router:~# uclient-fetch https://hole.cert.pl/domains/v2/domains.txt
Downloading 'https://hole.cert.pl/domains/v2/domains.txt'
Connecting to 195.187.6.33:443
Writing to 'domains.txt'
domains.txt          100% |*******************************|  1347k  0:00:00 ETA
Download completed (1380192 bytes)

Thanks; It worked just as it should. I added certpl back into the feed and restarted with no errors.