Installation
This page explains what LuCI Bandix needs, how to install the backend and the LuCI application with opkg or apk, how to check that everything is running, and how to fix the most common installation problems.
Requirements
| Requirement | Details |
|---|---|
| Router firmware | OpenWrt; 24.10 or newer is recommended |
| Kernel | Linux 6.x or newer (the backend uses eBPF programs attached to TC hooks) |
| Backend | The bandix package from the openwrt-bandix project, in the same minor version as luci-app-bandix |
| LuCI | luci-base (pulled in automatically) |
| Other packages | luci-lib-jsonc and curl are declared dependencies; the RPC script also uses jsonfilter and jshn, which are part of a standard OpenWrt image |
| Offloading | Hardware flow offloading and Turbo ACC must be disabled |
The package's Makefile declares these dependencies:
LUCI_DEPENDS:=+luci-base +luci-lib-jsonc +curl +bandix
Because bandix is a hard dependency, the package manager refuses to install luci-app-bandix until the backend is installed (or can be installed from a configured feed).
Version Matching
luci-app-bandix and the backend change their HTTP API together, so the minor versions must match:
| luci-app-bandix version | Required openwrt-bandix version |
|---|---|
| 0.10.x | 0.10.x |
| 0.11.x | 0.11.x |
| 0.12.x | 0.12.x |
Mixing versions typically shows up as empty pages, "Failed to connect to Bandix service" errors, or features that report "Update the Bandix service" (for example batch device deletion or separate upload/download quotas).
Disable Hardware Offloading
Bandix counts packets in the kernel's traffic-control layer. Flows that are offloaded to hardware, or accelerated by Turbo ACC / shortcut-fe style modules, bypass that layer, so their traffic is not counted and rate limits and quotas cannot be enforced on them. In LuCI, open Network → Firewall and make sure Hardware flow offloading is unchecked. If your firmware has a Turbo ACC page, disable its acceleration features as well.
Install the Backend
Download the backend package for your router's architecture from the openwrt-bandix releases. Backend packages are architecture specific; the file name contains the OpenWrt architecture string, for example aarch64_cortex-a53. To find yours, run:
grep OPENWRT_ARCH /etc/os-release
Copy the file to the router (for example to /tmp) and install it with the package manager your firmware uses:
# OpenWrt 24.10 and older (opkg)
opkg install /tmp/bandix_<version>_<arch>.ipk
# Newer OpenWrt snapshots (apk)
apk add --allow-untrusted /tmp/bandix-<version>_<arch>.apk
Replace the placeholders with the actual file name you downloaded. --allow-untrusted is needed because the release packages are not signed with your firmware's key.
Install the LuCI Application
Download the LuCI package from the luci-app-bandix releases. This package is architecture independent; its file name ends in _all.ipk or _all.apk. Install it the same way:
opkg install /tmp/luci-app-bandix_<version>_all.ipk
# or
apk add --allow-untrusted /tmp/luci-app-bandix-<version>_all.apk
Language Packs
Translations are built as separate luci-i18n-bandix-<language> packages and published on the same release page. The repository contains translations for:
| Language | LuCI code |
|---|---|
| Simplified Chinese | zh_Hans |
| Traditional Chinese | zh_Hant |
| Japanese | ja |
| French | fr |
| Russian | ru |
| Polish | pl |
| Spanish | es |
Install the one matching your LuCI language, for example:
opkg install /tmp/luci-i18n-bandix-<language>_<version>_all.ipk
The exact file names (and the language suffix used in them) depend on the LuCI build system; pick the matching file from the release assets.
Note: The built-in updater (see Updates and Maintenance) only installs the main
luci-app-bandixpackage. Language packs must be updated by hand when you upgrade.
Files Installed
| Path | Purpose |
|---|---|
/www/luci-static/resources/view/bandix/index.js |
Status page (device list, charts, statistics, rate limits, quotas) |
/www/luci-static/resources/view/bandix/connection.js |
Connections page |
/www/luci-static/resources/view/bandix/dns.js |
DNS page |
/www/luci-static/resources/view/bandix/settings.js |
Settings page |
/www/luci-static/resources/bandix/*.js |
Shared modules: batch device deletion, quota form, GeoIP manager, connection search |
/usr/libexec/rpcd/luci.bandix |
rpcd plugin providing the luci.bandix ubus object |
/usr/share/rpcd/acl.d/luci-app-bandix.json |
ACL granting LuCI users access to luci.bandix and the bandix UCI config |
/usr/share/luci/menu.d/luci-app-bandix.json |
Menu entries under Network → Bandix |
The UCI configuration file /etc/config/bandix and the service script /etc/init.d/bandix are not part of this package; they come with the backend.
Verify the Installation
1. The backend package is installed
opkg list-installed | grep bandix
# or
apk list --installed | grep bandix
You should see both bandix and luci-app-bandix, with the same minor version.
2. The RPC object is registered
The rpcd plugin is picked up when rpcd starts. Check that the object exists:
ubus list luci.bandix
Expected output:
luci.bandix
If the command prints nothing, restart rpcd with /etc/init.d/rpcd restart.
3. Version information
ubus call luci.bandix getVersion
Output similar to:
{
"luci_app_version": "0.12.12-r5",
"bandix_version": "0.12.x-r1"
}
A value of Unknown means the version could not be read from the package database (see Troubleshooting).
4. The menu appears
Reload LuCI in your browser. The menu entry Network → Bandix has four tabs: Status, Connections, DNS and Settings. The entry only appears when the bandix UCI configuration exists and your user has the luci-app-bandix ACL; if it is missing, log out and back in to refresh the LuCI menu cache.
5. The service answers
After enabling monitoring (see Quick Start), check that the backend's HTTP API responds on the router:
curl -s http://127.0.0.1:8686/api/traffic/devices | head -c 300
A JSON document beginning with {"status":"success" (or similar) means the backend is up. An empty response or Connection refused means the service is not running or listens on a different address or port.
Upgrading
Upgrade both packages together, keeping the minor versions in step. You can either repeat the manual installation with the newer files, or use Check for Updates on the Settings page, which downloads and installs the matching packages directly from GitHub. After any upgrade:
- clear your browser cache (the LuCI views are cached aggressively),
- update the language pack if you use one,
- check the release notes for configuration changes.
Uninstalling
opkg remove luci-app-bandix # opkg
apk del luci-app-bandix # apk
Remove any installed luci-i18n-bandix-<language> package the same way.
Removing the LuCI application does not stop or remove the backend. Remove the bandix package separately if you no longer need monitoring. Persisted statistics remain in the data directory (default /usr/share/bandix) until you delete it.
Troubleshooting Installation
| Symptom | Cause | Fix |
|---|---|---|
Unknown package 'bandix' or unsatisfied dependency |
The backend is not installed and not available in a feed | Install the backend .ipk/.apk first |
| Package architecture is incompatible | Wrong backend build for the router | Compare the file name with OPENWRT_ARCH from /etc/os-release |
| Menu entry missing | /etc/config/bandix does not exist, or the LuCI menu cache is stale |
Reinstall the backend; log out and in again |
| "Failed to connect to Bandix service" everywhere | Backend not running, or listening elsewhere | Enable monitoring and apply; see Troubleshooting |
| Device list empty although service runs | Wrong interface selected, or offloading enabled | Select the LAN bridge and disable offloading |