FAQ
Short answers, each with a link to the page that explains more.
What does AFTAB cost?
Section titled “What does AFTAB cost?”AFTAB is free to install and use under its End User License Agreement. You rent the server from your own provider.
Which server and system do I need?
Section titled “Which server and system do I need?”A KVM or Xen server, not OpenVZ or LXC, with Debian, Ubuntu, a system of the RHEL family or Fedora. Requirements has the table and what to open in your provider’s firewall.
Should I choose WireGuard or AmneziaWG?
Section titled “Should I choose WireGuard or AmneziaWG?”WireGuard is the fastest and works with the WireGuard app, but filtering recognises it easily. AmneziaWG disguises the handshake and needs an AmneziaWG app. You can have both: each is its own inbound, and a client can have a config on each. A normal install already installs AmneziaWG (with Tor and the pinned components) unless you set AFTAB_SMALL=1; otherwise run sudo aftab extras install or sudo aftab awg install. See Inbounds and Install.
My clients are in Iran. Where do I put the panel?
Section titled “My clients are in Iran. Where do I put the panel?”On a server outside Iran. A small bridge on a server inside Iran passes their traffic on, and every few minutes AFTAB tests each connection from Iran, so clients can see which one works right now. See Iran bridges.
Which apps do my clients use?
Section titled “Which apps do my clients use?”A client’s link opens a page that gives each app its own config: WireGuard, AmneziaWG, sing-box, Clash / Mihomo, v2rayN and others. See Clients and plans.
Can clients reach each other, or my private network?
Section titled “Can clients reach each other, or my private network?”That is Keep clients off private networks and each other, a choice on each inbound. A new inbound starts with it on when Selling and operator tools (full_mode) is on, and off otherwise. See Inbounds.
Do my clients lose their connection when I update or restart the panel?
Section titled “Do my clients lose their connection when I update or restart the panel?”No. An update restarts only the panel, in about a minute, so VPN connections stay up, and sudo aftab restart keeps them up as well. What stops the VPN is sudo aftab down, which removes its interfaces, routes and firewall rules.
How do I update?
Section titled “How do I update?”Open Settings → Updates, or run sudo aftab update. Every update is checked against a signature and keeps a way back for 7 days: sudo aftab rollback. See Updates and rollback.
Where is my data, and how do I back it up?
Section titled “Where is my data, and how do I back it up?”All of it is one database, /etc/aftab/aftab.db. The panel makes a copy every day in /etc/aftab/backups/. Keep one off the server too: the Backup button on the Overview, or sudo aftab backup. See Backups and restore.
What if I move to another server?
Section titled “What if I move to another server?”Restore a backup on the new one. Clients keep their configs when they reach the new server at the same address, so a domain in their configs is worth more than an IP address. See Moving to a new server.
Can I sell access?
Section titled “Can I sell access?”Yes, in two ways. The Telegram shop sells plans in a bot: customers pay you card to card or in crypto, and AFTAB never takes or holds money. Resellers sell your VPN to their own customers from the same panel. See The Telegram shop and Resellers.
Can someone else help me manage it?
Section titled “Can someone else help me manage it?”Yes. Add an account in Accounts, which is hidden until you turn on Selling and operator tools in Settings → Panel. An admin gets the sections you choose, and a reseller works with only their own clients. See Resellers and Security.
How do I remove AFTAB?
Section titled “How do I remove AFTAB?”sudo aftab uninstall asks first and can keep the database. Back up before you remove it if you may want your clients again: see Backups and restore.
Is there an API for my own scripts?
Section titled “Is there an API for my own scripts?”Yes: the panel’s pages use it for everything. See API.
What happens to connected clients if the panel stops, restarts or is updated?
Section titled “What happens to connected clients if the panel stops, restarts or is updated?”VPN sessions stay up. An update or sudo aftab restart restarts only the panel. What drops the VPN is sudo aftab down. See An update went wrong.
What do I lose if secrets.key is lost, and how does a backup carry it?
Section titled “What do I lose if secrets.key is lost, and how does a backup carry it?”Without the secrets key, sealed values (bot tokens, two-factor secrets, WARP/SOCKS logins) do not open; two-factor stays on and bots look unset. A panel backup carries the key inside the backup file so a restore adopts it. A hand-copied aftab.db does not. See Backups and restore and Locked out.
Is my backup safe to keep off the server, and what does the password protect?
Section titled “Is my backup safe to keep off the server, and what does the password protect?”An unencrypted backup holds every key: guard it like the admin password. With Encrypt backups with the admin password on, downloads and Telegram copies are .enc and open only with that admin password; copies kept on the server stay plain in a root-only folder. See Backups and restore.
What happens to reseller credit and client quota on restore, undo or factory reset?
Section titled “What happens to reseller credit and client quota on restore, undo or factory reset?”A restore replaces the whole database with the backup’s credit, quotas and clients. Undo in the panel reverses one change when the money book supports it; it does not roll back an old backup. Factory reset wipes the panel after confirmation — credit and quotas are gone unless you restore a backup afterward.
What is and is not restored with a backup?
Section titled “What is and is not restored with a backup?”| Comes with the backup | Stays behind / not installed from the file |
|---|---|
| Clients, plans, settings, keys, resellers, money book | TLS certificate files on disk |
| Secrets key (in a real panel backup) | Cloud firewall rules |
| Panel signing key (nodes trust it) | Local SOCKS/Psiphon program on loopback — start it on the new host |
| AmneziaWG / Tor need | Those programs install themselves after restore when the backup had them (Move to a new server) |
How many clients / servers is it meant for?
Section titled “How many clients / servers is it meant for?”The release is tested with ten thousand clients in 512 MB of memory on one small VPS. More RAM helps; see Requirements.
What does AFTAB phone out to, and what can I turn off?
Section titled “What does AFTAB phone out to, and what can I turn off?”It checks for signed updates, may refresh geo lists used in routing, and may look up addresses for country display. WARP registration talks to Cloudflare when you use a WARP exit. You can turn off auto update download, geo refresh, Hide clients’ IP addresses (privacy_hide_ips), and simply not configure WARP or Telegram. See Security.
Which ports must be open, and which ones should never be?
Section titled “Which ports must be open, and which ones should never be?”Open the panel’s TCP port (and 80 for HTTP-01 certificates when you use them) and the VPN UDP ports the installer prints. Do not publish the panel’s plain port on the internet if a reverse proxy is the front door (Panel behind Cloudflare or your own proxy). Do not expose database files or backup folders.
Anything else: use Ask a question, at the foot of the sidebar.