Hotspot Setup
Configure a WiFi captive portal for prepaid internet access.
Overview
The Qserve hotspot system lets you run a branded captive portal on your WiFi network. When a user connects to your WiFi and opens a browser, they are redirected to a login/payment page. They can log in with a voucher code, pay via M-Pesa, or use a pre-created account.
Step 1 — Create a Hotspot in Qserve
- Go to Hotspots → New Hotspot.
- Fill in:
- Name — e.g., "Westlands WiFi Zone"
- Site — select the site where this hotspot is located
- SSID — the WiFi network name (used for display purposes)
- Session Timeout — how long a session stays active after the last activity
- DNS Name — a local domain shown in the captive portal URL (optional)
- Save the hotspot. Qserve generates a unique hotspot configuration and login URL.
Step 2 — Configure MikroTik Hotspot
On the Site installation page, download the hotspot setup script for your specific hotspot. Run it in the MikroTik terminal:
/tool fetch url="https://qserve-isp.net/downloads/mikrotik/set-hotspot/HOTSPOT_ID" \ dst-path=hotspot-setup.rsc; /import hotspot-setup.rsc
This script configures the MikroTik hotspot server, sets the login URL to point to Qserve's captive portal, and configures RADIUS authentication.
Step 3 — Set Up Hotspot Plans
Create plans with service type Hotspot. Example plans for a hotspot:
| Plan Name | Duration | Price | Speed |
|---|---|---|---|
| 1 Hour Browsing | 1 hour | KES 20 | 5 Mbps / 2 Mbps |
| Day Pass | 24 hours | KES 100 | 10 Mbps / 5 Mbps |
| Weekly | 7 days | KES 500 | 10 Mbps / 5 Mbps |
Step 4 — Generate Vouchers (Optional)
Vouchers are pre-generated codes that hotspot users can enter on the login page to get internet access. Ideal for hotels, cafes, and events.
- Go to Vouchers → Generate.
- Select the hotspot, plan, and quantity (e.g., 50 vouchers for the Day Pass plan).
- Click Generate. Qserve creates the vouchers and shows a printable list.
- Print or export the vouchers as a PDF to distribute to your customers.
How the Captive Portal Works
When a WiFi user connects and opens a browser:
- MikroTik intercepts the HTTP request and redirects to the Qserve captive portal URL.
- The portal shows your branded login page with options to pay via M-Pesa or enter a voucher code.
- On successful payment/voucher, Qserve authenticates the MAC address with the MikroTik hotspot server.
- The user is redirected to their intended website and internet access begins.
Customising the Portal
In Settings → Portal Design, you can upload your logo and set the primary color for the captive portal. The portal automatically uses your ISP's branding.
The hotspot portal works on both HTTP and HTTPS interception. For best compatibility, ensure port 80 traffic from clients is routed through the MikroTik hotspot interface.