Skip to content

Requirements

You need a rented Linux server, which providers call a VPS, and a terminal to reach it. No programming is needed.

Any of these systems works. Ubuntu 22.04 or 24.04 is the easiest choice.

System CPU
Debian 12 or 13, Ubuntu 22.04 or 24.04 amd64, arm64, armv7
RHEL, Rocky Linux, AlmaLinux, Oracle Linux 9 or newer, Fedora amd64, arm64

When you rent it, choose a KVM or Xen server, not OpenVZ or LXC. WireGuard needs Linux 5.6 or newer, and every system above has it. The installer tries to create a WireGuard interface and stops with a message if the kernel cannot.

The installer adds the packages it needs, such as wireguard-tools, nftables and curl, with the system’s own package manager, and it must run as root. A small server is enough: the release is tested with ten thousand clients in 512 MB of memory.

If your clients are in Iran, rent the server outside Iran. You can add a bridge inside Iran later.

The server must reach GitHub, where AFTAB’s releases are kept. If it cannot, the Install page shows how to install from files you download elsewhere.

Your provider may have its own firewall page. If you will choose HTTPS in the installer, open TCP port 80 there first: it must be open for a few seconds while the certificate is issued. After the install, open three kinds of port there:

  • the panel’s TCP port, a free one the installer picks, which is part of the panel address;
  • the subscription TCP port, 2096 unless it was taken;
  • the UDP port of each inbound, the VPN itself.

If the server runs ufw or firewalld, AFTAB opens its ports there for you. It only adds rules and never removes any.

You can start without a domain. A domain is worth having later: client links that name the server by its IP address go with the server if it is moved or blocked, while a domain can be pointed at the next server and nobody changes anything. A domain needs an A record that points to the server.

To reach the server you use a terminal. On a Mac open Terminal, and on Windows open PowerShell. Your provider gives you the server’s IP address and a user name.