No internet without payment
A billing system is only as good as what the router actually enforces. WIFI.OS does not just record that someone owes you money. It makes your MikroTik cut them off, keeps them off until they pay, and puts them back the moment they do. This page explains how, for each kind of customer, and what happens when things go wrong.
Hotspot customers
- A customer gets online only after M-Pesa confirms the payment (or a valid voucher is redeemed). A payment confirmation for less than the bundle price buys nothing.
- When the bundle ends, they are logged off. Their time is enforced on the router itself, and WIFI.OS checks every router every 10 minutes: any hotspot login whose bundle has ended is removed, even if the router was offline at the exact moment it expired.
- Before paying, a phone can reach only your payment page (
your-name.wifios.co.ke/portal/). Nothing else on the internet loads until they pay.
PPPoE customers
When a monthly client’s invoice goes unpaid past its due date, their line is suspended:
- They can reach only the pay page, which shows what they owe and your paybill and account number. Every other website, app and service (WhatsApp, YouTube, everything) is blocked. Opening any
http://site takes them to the pay page. - The moment they pay with their account number, the line is restored automatically. Nobody at your office has to do anything.
Static-IP customers
A static-IP line has no username and password, so WIFI.OS protects it in two more ways:
- Static subnets. Tell WIFI.OS which address ranges your static customers use (MikroTik → Edit router → Static-IP subnets). The router then blocks every address in those ranges that isn’t one of your customers. Someone who sets an unused IP on their device gets nothing.
- Device binding. Bind each static customer to their equipment (Clients → ⋯ → Bind device on the customer’s row). Their IP then works only from that device: someone who copies a paying customer’s IP gets nothing, and can’t disrupt the real customer’s connection.
See PPPoE & static lines → Static-IP clients for how to set these up.
When a router is offline
Routers lose power and links drop. WIFI.OS assumes this will happen:
- Nothing is skipped. A suspension, expiry or restore that couldn’t reach the router is retried until it lands. Suspensions are retried every hour through the day; everything else is re-checked every 10 minutes.
- One offline router never holds up the others, yours or anyone else’s.
- A payment is never lost. If a customer pays while their router is unreachable, the money is recorded on their account straight away and the line is restored as soon as the router is back.
The router keeps itself correct
Every hour WIFI.OS re-checks the protections on each router: the pay-page wall, the static-IP rules, and the address your hotspot sends customers to. If someone reset the router, edited the rules, or moved them out of order, they are put back. You don’t need to re-run anything.
Your customers stay yours
Every rule WIFI.OS puts on your router is built only from your customers, plans and address. Another ISP’s settings can never reach your router, and yours can never reach theirs.