Installation
b4 installs on Linux devices: servers, computers, and routers. Pick the method that matches your system:
- Linux - universal installation on any Linux distribution
- OpenWRT - routers running OpenWRT firmware
- ASUS Merlin - ASUS routers running Merlin firmware
- Keenetic - Keenetic routers
- MikroTik - RouterOS 7.x via containers
- Docker - run inside a Docker container
After installation, b4 is available through the web interface in the browser (default port 7000).
Update and remove
Update
curl -fsSL https://raw.githubusercontent.com/DanielLavrushin/b4/main/install.sh | sh -s -- --update
Or update to a specific version:
curl -fsSL https://raw.githubusercontent.com/DanielLavrushin/b4/main/install.sh | sh -s -- v1.46.5
During an update, the current binary is saved as a backup, the service is stopped, replaced with the new version, and started again. The configuration is not touched.
Remove
curl -fsSL https://raw.githubusercontent.com/DanielLavrushin/b4/main/install.sh | sh -s -- --remove
On removal:
- The service is stopped and removed from autostart
- The binary is deleted
- The configuration is kept or removed based on your choice (the installer asks whether to delete
/etc/b4or/opt/etc/b4)
Diagnostics
To print system information, the installed version, and the state of kernel modules:
curl -fsSL https://raw.githubusercontent.com/DanielLavrushin/b4/main/install.sh | sh -s -- --sysinfo