لم تُترجم هذه الصفحة إلى العربية بعد؛ تُعرض أدناه بلغة أخرى.
macOS
Installation
- Download
bx-macos-arm64.dmg(Apple silicon) orbx-macos-amd64.dmg(Intel) fromhttps://dl.getbx.net/releases/<version>/; the version number is in latest.txt. - Drag
Bx.appinto Applications, double-click it, and clickInstall bx…in the menu bar (asks for administrator approval once). - When it shows
Setup Required, clickSet Up bx...and paste the client link, or the wholesudo bx setup --udp … …command the server printed; once setup succeeds, the menu asks whether to turn protection on right away. If you do not have a server yet, click I Need a Server… and fill in the address, login name, and password your provider gave you; bx sets the server up (the password is used only this once and is not saved).
The command-line equivalent is sudo bx setup '<link>' followed by bx up. Installation only puts the files in place;
it does not turn protection on and does not change DNS or routes. The bx in your terminal is always the same version as the App.
Installing over an existing bx installation asks you to confirm first; if protection is on, you lose network access for a few seconds,
but no traffic leaves outside the tunnel, and if any step fails, it stops with the kill switch still blocking traffic (rerun the same command or bx up to
finish it; bx down gives up protection and gets your network back).
The installer is notarized by Apple. If you see "is damaged and should be moved to the Trash", the package has been altered — do not bypass the warning; download it again.
Installing remotely over SSH: the PATH of a non-login shell often lacks
/usr/local/bin, sosudo bx …reportscommand not found; usesudo /usr/local/bin/bx …instead. Installing over an existing bx installation asks for confirmation first, which is impossible over non-interactive SSH, so the installation aborts with an error; if you do want to upgrade, download the command-line packagebx-macos-arm64.tar.gz(amd64on Intel Macs), unpack it and run./install.sh --yesfrom it; the dmg does not contain that script.
Menu bar
The menu-bar icon stays resident; read the state from the shape of the shield (not its color):
| Icon | Meaning |
|---|---|
| Solid shield | Protected: the tunnel is healthy, routes are in place, and DNS is confirmed to be handled by bx |
| Hollow shield | Off, not set up, or not installed |
| Dashed shield | Turning on or off |
| Cracked shield | Needs attention: the tunnel is unhealthy, DNS is not handled, a repair is needed, or recovery failed; the line under the switch says why |
Hovering over the icon shows an explanation. If any of the three conditions is missing it never shows Protected: when DNS is not
handled, bx up also returns an error instead of pretending to succeed.
The first row of the menu is the Protection switch; use it to turn protection on and off. The small line under it
shows the current server and latency, and is replaced by the reason when something goes wrong. Below that come:
Reconnect;- four windows:
Routing Rules…,Servers…,Traffic by App…,Check for Leaks…(Check for Leaks…works even while protection is off); Troubleshoot ▸:Check for Problems,Open Logs, the current version,Uninstall bx…;Quit bx…(⌘Q).
When a new version is available, an Update bx… row appears at the top. bx recovers safely and automatically after network changes;
you may briefly lose network access during recovery, but it never falls back to a direct connection. bx reconnect is only for
troubleshooting; it is not a step you need when switching networks day to day.
Flipping the switch off only stops protection and restores DNS; the menu-bar App stays running. If it fails, the switch flips back
and explains why. Quit bx… additionally closes the menu-bar App. The command-line equivalent is bx down.
Servers (the Servers… window)
It shows the current server first, then the servers you can switch to. Add Server… at the bottom offers two choices:
- Add an Existing Server…: paste a
bx://link, or the wholesudo bx setup …line the server printed. - Set Up a New Server…: fill in the address, login name, and password your provider gave you; bx sets up the server over SSH and
adds it to the list (it does not switch your current exit; click
Useon that row to use it). The password is used once in memory and not saved; if bx is already installed on the server, its existing keys are kept and nothing is reinstalled.
Connection details is collapsed by default; expand it to test latency, look up the exit IP, and see past peaks.
Scan with iPhone… shows a QR code for the current server; bx on the iPhone scans it, and you check the address before confirming. Reading the link asks for administrator approval once. Anyone who can see the code can use your server, so close it when you are done.
If your server's IP gets blocked or its address changes, see What to do when your server's IP is blocked.
Updating
sudo bx update and the menu's Update bx… are the same thing and update the App and the command line together;
bx update --check only checks whether there is a new version and downloads nothing.
- Protection on: the network may pause briefly during the update, but the kill switch stays in force throughout and nothing goes out outside the tunnel; if the new version fails its checks, bx automatically goes back to the old version and protection stays on.
- Protection off: the files are replaced directly, with no effect on the network.
If the menu shows Repair bx…, the App and the command line are out of step (for example an upgrade only half finished); click it to
repair. The command-line equivalent is sudo bx app-install --app-source /Applications/Bx.app. While an update is in progress, the
line under the switch says Updating bx…; that is not a fault.
Uninstalling
bx down
sudo bx uninstall
While protection is still on, bx uninstall refuses; run bx down first. Uninstalling removes the App, the protection service, and
/usr/local/bin/bx, and keeps /etc/bx (connection configuration) and /var/lib/bx (runtime data) for a later reinstall.
Troubleshooting: protection will not start
bx statusandbx doctorsay what is wrong;bx logsshows the protection service's logs (nosudoneeded; when the protection service itself is not running, usesudo bx logs).sudo launchctl print system/com.getbx.bx.guardshows whether the protection service is loaded and its last exit code.- Another global tunnel holds the default route (a Tailscale exit node, WireGuard in global mode, and so on):
bx upnames the interface holding it. Turn that global tunnel off and try again; see Coexistence.
Troubleshooting: it will not turn off
Run:
sudo bx down
It does not depend on the protection service still responding, nor on the network still working. If the normal shutdown fails, it
switches to a forced stop on its own: it records "off" (no more starting at boot), has bx remove the routes it installed, stops the
protection service, deletes the kill switch's blocking routes, and restores the system DNS. If any step fails it still carries on with
the rest, and prints the reason and the next step (when restoring DNS fails, it suggests sudo bx dns off).
The forced stop only touches what bx itself installed; it leaves /etc/bx, /var/lib/bx, and all configuration alone. It does not
claim on your behalf that the network is back; confirm with bx status or by opening any web page. If it still does not work,
sudo bx uninstall stops all services and restores the network (also keeping the configuration).