Clients and plans
A client is one person’s access to your VPN. You give it a name, choose how much traffic it may use and for how many days, and share its link or QR code. A client has one config for each inbound it belongs to, and one more for each extra device, while the traffic limit and the end date are shared by all of them.
A plan is a saved choice of traffic, days and inbounds, so that making or renewing a client is one step. A reseller who pays with credit is charged the plan’s cost in the same step as the change, so a change that fails costs nothing.
Make a client
Section titled “Make a client”- Open Clients and press Add client. The installer already made one named
default. - Type a Name: English letters, digits and
. _ @ -, at most 64 characters. The dice button makes a random one. A name that is taken is refused, with a free one suggested. - Pick a Plan, or keep “No plan (set by hand)”. A plan fills in the traffic, days and usage cycle below, and you can still change them.
- With more than one inbound, tick the Inbounds the client gets a config in. All the configs sit behind one subscription link and share one usage count and one set of limits.
- Set the Traffic limit (GB), where 0 means unlimited, and the Expiry.
- Press Create. The panel then shows the share window.
Limits and end dates
Section titled “Limits and end dates”Expiry has four choices: Never, Date for an exact moment, Days for that many days from now, and After 1st connect, where the countdown starts the first time the client connects. Usage resets every (days) sets the usage back to zero every so many days, for example 30 for a monthly quota. Limits: quota, speed, connections holds the rarer limits:
- Download only under what counts toward the traffic limit makes uploads free.
- A download and an upload speed in Mbit/s, set in the server’s kernel for each config.
- The most connections at once, which stops one client from flooding the server.
- Devices, up to 20 devices. Each gets its own configs and link, added on the client’s subscription page or by you in Details. With 0, one config serves any device. If a device link leaked, open Details and use New device link on that device (the old link stops; WireGuard keys stay).
- Tags to group clients: lower case letters, digits and
- _ ., up to 10 tags of 24 characters each.
Share it
Section titled “Share it”Press the copy button in the client’s row (Copy subscription link), or open the row’s menu and choose QR code. The link opens a page that gives each app its own config and shows the client’s usage, any speed or connection limits, end date and QR code. The window also has a ready message for the client, in English or Persian, to copy, or to send in Telegram when the client is linked to it.
When a client stops
Section titled “When a client stops”A client is active, disabled, expired (the end date came) or depleted (the traffic is used up). In the last three cases the client’s configs stop working: the panel takes them off the server’s link, and they work again when you renew or enable the client. The list can show only the clients that are expiring, meaning active ones that end within 7 days or have used more than 90% of their traffic, or those marked Ended, not renewed in the last 30 days.
Open the row’s menu and choose Renew. There are three ways:
- With a plan: the traffic starts again from zero with the plan’s limit. The plan’s days are added to the days left, or count from now when the client has already ended. A switched-off client is switched on again.
- By hand: add days or traffic, or set the usage back to zero. A client with no end date, or no traffic limit, stays unlimited in that respect.
- After the current one: nothing changes now. The plan starts by itself when the current one ends, by days or by traffic. A reseller is charged for it now, and Cancel the waiting renewal gives the charge back.
Press Add plan on the Plans page. It is hidden until you turn on Selling and operator tools in Settings → Panel. A plan has a name of 1 to 48 characters, a Price (what it sells for in the shop’s currency, 0 meaning not for sale, used by the Telegram shop and the money book), the traffic, and the days, 0 meaning it never ends and at most 3650 days. Days count from chooses Creation or renewal, or First connect. Then come the usage cycle, the Inbounds for new clients, the limits above, an exit, and the Cost for resellers (credit).
Changing a plan changes what it gives from now on: clients that have it keep their limits until they are renewed. A plan that is in use cannot be deleted. Clients on it, renewals paid ahead for it and shop orders waiting for it must be dealt with first.
Many clients at once
Section titled “Many clients at once”Open General actions at the top of the page. Add in bulk makes up to 1000 clients at once, named user1, user2 and so on, with the same limits. Import clients… reads an export from another AFTAB, which keeps limits, usage, keys and subscription links, or a set of WireGuard .conf files. Export (JSON, to another AFTAB) writes that export, and Print all cards puts every client’s card on one sheet.
What can go wrong
Section titled “What can go wrong”- A client cannot connect. Open its Details and press Why can’t they connect? The panel checks the status, the configs, the inbounds, whether the link was opened and when the client last connected, then says what to do. See also Inbounds.
- Details shows no address. With Hide clients’ IP addresses on (
privacy_hide_ips, a setting only the owner can change, in Settings → Security), clients’ own addresses are not stored or shown: the Last endpoint row in Details stays empty, and Why can’t they connect? no longer names the app a client opened the link with. The handshake times and the time the link was opened are still kept, so the check still works. Switching it on also erases the addresses already stored. - A link or config leaked. In Details, New sub link makes the old link stop working. New keys makes every config of the client stop working, and the client must import again.
- The name is refused. Only English letters, digits and
. _ @ -are allowed, and a name cannot repeat. A Persian name can go in the comment. - A plan will not delete. Move its clients to another plan first. Plans also feed the Telegram shop and resellers.