Guides

Per-guest speed limits on TP-Link Omada

Rate limit profiles, custom client limits and how to give each paid plan its own download and upload speed.

By Andrew Westrope, founder of WifiFee · 22 November 2026

If you sell guest WiFi, a faster plan has to actually be faster. On Omada that means putting a speed limit on each guest's device and changing it when they pay. The controller can do this, but there are a few traps: two different unit systems, a client that does not exist yet when you try to limit it, and shared objects that refuse to delete.

This guide covers what we learned building WifiFee, which sets per-plan speeds on Omada controllers from version 6 to 6.4. It should be useful whether you use WifiFee or write your own portal.

Three places Omada can limit speed

Omada gives you three levels of control. They overlap, so it is worth being clear which one you are using.

  • On the SSID. Each wireless network can carry its own limit. It applies to the whole network, not to a particular guest, so it cannot tell a free guest from a paying one.
  • Rate limit profiles. Named download and upload limits stored in the site's settings. You assign a profile to a client and the client takes its speeds.
  • Custom limits on one client. A download and upload value written straight onto a single client record, with no profile involved.

WifiFee creates its guest SSID with the network limits switched off and does all limiting per client. That way the speed follows what the guest bought, not which network they joined.

Why per-client limits beat profiles for per-plan pricing

Our first version used profiles: one for free guests, one for guests part-way through paying and one for paid guests. It worked, but it fought the way venues price WiFi:

  • One profile per state meant every paid plan got the same speed.
  • A venue that wants a 1-hour plan at one speed and a 1-day plan at another needs a profile per speed, created and kept in step whenever the price list changes.
  • Profiles cannot be deleted while clients use them, which makes tidying up awkward.

So we moved to custom limits set on each client from the plan's own speeds. Each plan stores a download and upload speed, and either can be left as unlimited. There is nothing shared to create or keep in step.

Setting a limit on one client

The external portal API, the one your portal calls to let a guest online, has no speed fields. Speeds go through the controller's admin web API instead, so you need an admin login as well as the hotspot operator. The call is a PATCH to the client record, made as admin and addressed by the device's MAC address. Download and upload are switched on separately, so you can limit one direction and leave the other open.

On a controller in MSP mode, the path uses the customer ID that owns the site rather than the controller ID. The external portal API guide covers this.

Check the device before you change it. The MAC address comes from the portal request, and a guest can edit that request, so a careless portal could be pointed at any device on the site: the office PC, the till, the owner's phone. Before each change, look the MAC up in the site's online clients and only go ahead if it is a wireless client on your guest SSID.

Kbps or Mbps: the unit field

The two kinds of limit use different units, and the API does not warn you if you get it wrong.

  • Custom client limits take a value plus a unit: 1 is Kbps, 2 is Mbps.
  • Rate limit profiles take the value in Kbps, with no unit field.

We got this wrong at first. Our code sent unit 1 believing it meant Mbps, so a 5 Mbps plan would have been capped at 5 Kbps. The fix was a one-character change.

Our advice: store speeds in Mbps, because that is what venue owners think in, and send them with the Mbps unit. If you convert to Kbps yourself for profiles, pick 1,000 or 1,024 per Mbps and use it everywhere.

The client may not exist yet

The natural order is to authorise the guest, then set their limit. But straight after authorisation the controller may not have registered the client yet, and the call fails with an error saying the client does not exist.

Retry that error, and only that error, a few times with increasing waits. Anything else, such as a bad login or a malformed request, will not fix itself, and retrying it only slows the guest down. If every attempt fails, log it and let the guest online anyway: a guest who paid is better off at the wrong speed than with no access at all.

It is also worth reading the response back. A controller can report success without applying the limit while a client is still settling, so check that the limit is actually on.

Different speeds through a guest's visit

A guest's speed is set at every point where their access changes, not just once:

Stage Speed Set when
Free plan The free plan's download and upload speeds Straight after the guest is authorised
While paying A modest speed, for a short window that is capped per device When the guest starts to pay
Paid plan The plan's speeds, or no limit When the payment is confirmed
Buy more time The new plan's speeds When the extra time is added

The paying stage exists because phones open the portal in a cut-down browser that often cannot finish a card payment, Apple Pay or a bank check. Letting the guest online briefly at a modest speed gives the payment room to complete. The captive portal guide explains why, and the Stripe guide covers confirming the payment.

Unlimited plans

A plan's download or upload speed can be left empty, meaning unlimited. If one is set, limit that direction and leave the other open. If neither is set, switch the client's limit off.

That last case matters. A guest who pays for an unlimited plan was probably limited a minute earlier, on the free plan or while paying. The limit is stored on the client record, so switch it off explicitly rather than rely on leaving it out of the request.

"Unlimited" still means "as fast as the venue's internet connection". Say so next to the setting, because otherwise venue owners reasonably expect more.

When a guest's time runs out

Each authorisation is given the plan's length, so the controller ends access at the end of the plan on its own. WifiFee also checks every minute for sessions that should have ended and revokes any that are still online.

Expiry leaves the speed limit alone. The guest has no access, so the limit does nothing, and the next time that device is let online it gets a fresh limit or none. Because every change sets the speed explicitly, an old limit only carries over if setting the new one fails.

Profiles that will not delete

If you do use profiles, Omada refuses to delete one while any client is assigned to it. To remove it you first have to find those clients and delete them or move them to another profile. Custom limits avoid this: there is no shared object to remove, and the limits simply stay on the records of past guests until you forget those clients in the controller.

If you are building this yourself

  • Turn the SSID's own limits off if speeds should differ by plan.
  • Use custom limits per client unless you only ever need two or three fixed speeds.
  • Plan for an admin login: limits go through the admin API, not the portal call.
  • Only change a client that is online on your guest SSID. Never trust the MAC in a portal request on its own.
  • Send the unit: 2 for Mbps, 1 for Kbps.
  • Retry "client does not exist" a few times, and nothing else.
  • Set the speed every time access changes, and switch the limit off for unlimited plans.
  • Never block access on a failed limit. Log it and let the guest online.

Questions

Can the Omada external portal API set a speed limit when it authorises a guest?

No. The external portal call only lets a client online for a length of time. Speed limits are set afterwards through the controller's admin web API, which needs an admin login as well as the hotspot operator.

Should I use rate limit profiles or custom client limits?

Profiles suit a handful of fixed speeds that you assign by hand. If each plan has its own speed and your prices change, custom limits set on each client are simpler: there are no shared objects to create, keep in step or delete.

Are Omada client rate limits in Kbps or Mbps?

Custom client limits take a value and a unit: unit 1 is Kbps and unit 2 is Mbps. Rate limit profiles take the value in Kbps with no unit field. Mixing these up gives limits a thousand times too slow.

Why does setting a limit straight after authorising a guest fail?

The controller may not have registered the client yet, so it reports that the client does not exist. Retry that error a few times with increasing waits, and do not retry anything else.

How do I give a paying guest unlimited speed after a free session?

Switch the client's rate limit off explicitly. The limit lives on the client record, so leaving the speed fields out keeps the old one in place. Unlimited still means as fast as the venue's internet connection.

Per-plan speeds without the code

WifiFee sets up the portal on your Omada controller, takes payment through your own Stripe account and applies each plan's speed to every guest. No monthly fee.