لم تُترجم هذه الصفحة إلى العربية بعد؛ تُعرض أدناه بلغة أخرى.
Server: bx server
Installation
Just as simple as the client — one command:
sudo ./bx server up --open-ufw # install (REALITY + hysteria2 by default, public IP auto-detected) and start; drop --open-ufw if the system has no ufw
bx server status # show status
sudo bx server down # stop
bx server up automatically generates the x25519 keys, UUID, and certificate, detects the public IP, writes the configuration, installs the system service, starts it,
and prints a one-line command for the client (sudo bx setup --udp '<hys2>' '<reality>': the flag comes before the links, and the last one is the main link; paste the whole line as-is on your computer. The main REALITY link carries TCP covertly, hysteria2 speeds up UDP, and traffic is split by type).
A static sing-box is embedded throughout — no manual setup, zero configuration. The SNI borrows www.cloudflare.com by default (the certificate size is checked automatically at install time;
do not use microsoft — its certificate is too large and makes the REALITY handshake fail), with the recommended 2026 defaults such as flow=xtls-rprx-vision/fp=chrome built in.
If you need something else: --protocol hysteria2 (pure speed tier), --protocol brook (simple fallback), --tcp-only (REALITY without hys2),
--host <domain> (custom host), --port, --sni. For how to choose a protocol, see multi-transport-guide.md.
To share with ordinary users, prefer the user-management layer: sudo bx user invite <name> / sudo bx user list / sudo bx user revoke <name>.
You can also reprint the link at any time later:
sudo bx server link
If the VPS's IP changed (or you want to switch to a domain name), sudo bx server link --host <new-IP-or-domain> moves this server's link to the new address with the keys unchanged;
add the new link once on each device, and bx recognizes it as the same server and replaces the old address in place. For the full steps, and how a domain name lets a future IP change be a single DNS record edit,
see What to do when your server's IP is blocked.
Sharing with other people:
sudo bx user invite alice
sudo bx user list
sudo bx user revoke alice
If the VPS uses ufw, you can explicitly open the port when creating a share:
sudo bx user invite alice --open-ufw
You can also start a minimal web UI that listens only on the local machine:
sudo bx server ui --host <VPS-IP-or-domain>
Then access it from your own computer through an SSH tunnel:
ssh -L 8787:127.0.0.1:8787 <VPS>
Open http://127.0.0.1:8787 in your browser.