Skip to content

Fleet servers

A fleet server is another server that this panel runs. It hosts the inbounds you place on it, so clients can connect to a server in another country or at another provider, while everything else stays in the one panel: clients, limits, usage, plans and the shop. The server has no panel of its own. It obeys only what this panel has signed for it.

  1. Open Servers and press Add server. The page is hidden until you turn on Selling and operator tools in Settings → Panel.
  2. Give it a Name and an Address: the domain or IPv4 address that clients reach this server at. Their configs and links name it.
  3. Press Create. The panel shows the install command.
  4. Run that command as root on the new server. Servers join only a panel on HTTPS, so if the panel is not, the window says how to turn it on, see HTTPS. The command carries a secret that works once and lasts 24 hours, and the row’s menu gives a new one under Install command. It installs wireguard-tools, nftables, iproute2 and procps if they are missing, then joins the panel.
  5. When the row says Connected, place inbounds on it.

Do not run the command on the panel’s own server. The installer refuses, because that machine runs the panel’s inbounds already: a fleet server is always another machine.

Add or edit an inbound and choose the server in Runs on: Inbounds → Edit inbound → Runs on. Clients of that inbound then connect to the server’s address. If the inbound is AmneziaWG, the server installs AmneziaWG itself when the first such inbound arrives, which takes a few minutes. Open the inbound’s UDP ports in the server’s cloud firewall.

An inbound on a fleet server can leave through an exit that runs AFTAB’s exit program, through Cloudflare WARP, a SOCKS5 proxy, Tor or Psiphon, but not through an imported .conf. Routing rules hold there too, and a rule that sends traffic through any other exit blocks that traffic on the server. A bridge reaches the server by forwarding, or through a tunnel of its own to it. For a bridge in TLS mode, open the TLS port (TCP) in the server’s firewall too. See Iran bridges and Exits.

The server asks the panel for its orders every 30 seconds, applies what changed, and reports the traffic of its clients, which the panel counts. It sets the same kernel tuning as an exit: larger socket buffers, BBR with fq when the kernel has it, a connection table sized to the server’s RAM, and packet steering when the network card has fewer queues than cores. Each report says how full that table is and how many connections the kernel dropped. The panel alerts when it is at least 80% full. It keeps the last plan it was given, so its inbounds come back after a restart even while the panel is away. It also keeps the panel’s signing key and address list (node_addresses), so when you move the panel to another server it reconnects by itself once HTTPS is up there: see Moving to a new server. If the panel does not hear from it, the inbounds on it show “not reporting”, and the panel records the server going offline and coming back. The Bridges and Iran alerts include that. A build the server goes back from is a System alert.

  • The installer says “this machine runs the AFTAB panel”. You ran the command on the panel’s own server. Use another machine.
  • The row stays on “Waiting for install” or shows “Offline”. The command was not run, or the server cannot reach the panel over HTTPS. The row’s last problem, if there is one, is shown under it, and the server tries again by itself.
  • Delete is refused. Inbounds still run on the server: move them to another server, or to this panel, with Runs on, first.
  • The server is gone. Delete asks it to remove AFTAB from itself first, and it leaves the list when it has. If it never answers, Remove now takes it out of the panel without waiting. Revoke is for a server that was lost or seized: its token and install command stop working at once, and its inbounds stop until you run the new install command.