Home › Setup guides › MikroTik Hotspot Setup with RADIUS & Vouchers
MikroTik Hotspot Setup with RADIUS & Vouchers
To connect a MikroTik router to WiFiNexa, add the router in Hotspots, choose Full hotspot setup or RADIUS only, and paste the generated script into the terminal of RouterOS 6.49 or 7. Full setup builds the hotspot from scratch; RADIUS only keeps your existing hotspot and adds the WiFiNexa login page, vouchers and backup server.
Add the router
Hotspots → Add router → Brand: MikroTik, then Setup script.
Choose the setup type
- Full hotspot setup - for a router with internet and a local network but no hotspot yet. The script finds the local network by itself (the port with the DHCP server, or the first private address that is not the internet line) and builds the hotspot, DHCP/DNS, RADIUS, identity, walled garden and login page.
- RADIUS only - for a router that already has a working hotspot. Only the identity, RADIUS servers, remote disconnect, walled garden and login page are added; pool, DHCP, DNS, NAT and firewall stay exactly as they are.
- Sharing apps: Block / Log only / Off (Block by default) - finds guests whose phone hides other devices behind it with a sharing app, and either blocks them, only records them so you can review first, or leaves them alone. Results show under Reports as *likely* or *possible* sharing.
- Phone hotspot / tethering (off by default; needs bridge-mode access points) - Stop silently gives devices behind a guest's phone hotspot no internet while the guest's own phone keeps working, with nobody disconnected. Log or block follows the sharing setting above.
- Custom network - enter the interface (e.g.
bridge-guest) and network (e.g.10.10.0.1/22) yourself; the script creates IP, pool, DHCP, DNS, the hotspot and NAT.
Apply
- Winbox → New Terminal → paste the script. Or download the .rsc file, upload it in Files and run
/import file-name=supernext-<identity>.rsc. - The script sets the router identity, adds the primary and secondary RADIUS servers, allows remote disconnect (UDP 3799), sets the walled garden, disables FastTrack (needed for accurate data counting) and downloads login.html into the right folder (
flash/hotspoton devices with flash storage). - If the router cannot reach the internet to download login.html, use Download login.html and upload it to the hotspot folder.
Check
/radius monitor [find comment="<Your company> Radius"] once
/ip hotspot active print
Common problems
- Splash page does not appear - login.html is not in the hotspot folder, or the portal address is not in the walled garden.
- "Unknown NAS" in Auth Log - the router identity was changed; run the script again.
- Usage stays at 0 - FastTrack is still enabled.
- Disconnect does not work - the router is behind NAT without a public IP; enter its public IP in Hotspots or accept that sessions end by timeout.
Want to keep your own MikroTik login page?
With WiFiNexa the setup script installs a small login.html that opens your hosted WiFiNexa page, so designs and login methods are changed from the dashboard for every router at once. If you run a hotspot without WiFiNexa, start from the free MikroTik login page template.
Questions
Which RouterOS versions does WiFiNexa support?
RouterOS 6.49 and newer, including RouterOS 7.
Does the MikroTik script change my existing hotspot?
Only in the 'Full hotspot setup' mode. 'RADIUS only' adds the identity, RADIUS servers, remote disconnect, walled garden and login page, and leaves the pool, DHCP, DNS, NAT and firewall as they are.
Why must FastTrack be off?
FastTracked traffic bypasses the hotspot counters, so data usage and quotas would stay at zero. The script turns it off.
Last updated 2026-12-02