bx
Bahasa Indonesia — Bahasa

Halaman ini belum diterjemahkan ke bahasa Indonesia; ditampilkan dalam bahasa lain.

Running bx on an OpenWrt router (router mode)

Install bx on the router and every device behind it — phones, TVs, consoles, devices you cannot install software on — goes out through your own server, with nothing installed on the devices. The router's own traffic goes through the tunnel too; Tailscale keeps going direct.

So far this has been verified on real hardware only on the GL.iNet Mudi 7 (GL-E5800). Other OpenWrt routers that meet the requirements below should work, but nobody has verified them — for the first install, make sure you can plug in a cable and reach the router's admin interface.

Check the router first

Requirement Details
System OpenWrt 22.03 or later (needs fw4 / nftables). Vendor firmware such as GL.iNet works as long as it is built on such an OpenWrt
CPU architecture Run uname -m on the router. aarch64 (arm64) and x86_64 are fully supported; armv7l (armv7) and mips (little-endian mipsel only — the install script checks) are experimental: tested only in an emulator (QEMU), not on real hardware, and they do not bundle brook (it is downloaded from upstream when a brook link is used)
Storage About 90 MB on arm64 / x86-64, about 35 MB on armv7 / mipsel (check with df -h /overlay)
Memory 512 MB or more recommended on arm64 / x86-64, at least 256 MB on armv7 / mipsel: at run time bx unpacks its bundled tunnel programs (about 70 MB on arm64, about 40 MB on armv7 / mipsel) into /var/lib/bx, which is a RAM disk on OpenWrt
TUN /dev/net/tun must exist. If it does not, install kmod-tun first (opkg update && opkg install kmod-tun; newer OpenWrt uses apk add kmod-tun)
Server A VPS with bx server already installed, and the link it printed (see Server)

ISP-supplied routers and stock TP-Link / Huawei / Xiaomi firmware are not OpenWrt and cannot run it; x86 soft routers, GL.iNet devices and routers flashed with OpenWrt can. Older routers with 16 / 32 MB of flash or 128 MB of RAM do not have room for it.

Install

Log in to the router over SSH as root (OpenWrt has no sudo; run everything as root):

wget -qO- https://dl.getbx.net/install.sh | sh
bx setup --router '<the link the server printed>'
bx up

Verify

bx status

Status should be Protected and Tunnel should show a latency. Then, on a device on the LAN, open any "what is my IP" page: it should show the VPS's address. On a computer you can also run bx leakcheck for a full leak test.

On, off, and the kill switch

Limitations to know

Updating and uninstalling