Mikrotik Setup

Hotspot + RADIUS

Enable the MikroTik captive portal and connect it to WiZone RADIUS authentication.

Step 1 – Add RADIUS Server

Get your RADIUS values from WiZone PortalDevices → NAS Configuration

Go to RADIUS → Add (+) and configure:

FieldValue
Servicehotspot
AddressRADIUS SERVER from Portal
SecretSHARED SECRET from Portal
Authentication Port1812
Accounting Port1813
Require Message Authno

Click Apply → OK.

RADIUS Server Configuration


Step 2 – Enable RADIUS Incoming (CoA)

Go to RADIUS → Incoming button (top of window) and configure:

FieldValue
Accept✅ Checked
Port3799

Click Apply → OK.

RADIUS Incoming

This enables CoA (Change of Authorization) — allows WiZone Portal to disconnect user sessions instantly when an admin kicks a user or a session expires.

Step 3 – Create Hotspot with Wizard

Go to IP → Hotspot → Servers tab and click Hotspot Setup.

StepValue
Hotspot Interfacebridge (same interface used for Wi-Fi)
Local Address of Network172.16.0.1/24 (auto-filled if set in Stage 1)
Address Pool of Network172.16.0.10 - 172.16.0.254
Select CertificateSelect the cert issued in Stage 4 (or none if skipping HTTPS)
SMTP Server0.0.0.0
DNS Servers1.1.1.1
DNS NameYour domain from Stage 4 (leave blank if skipping HTTPS)

Click Next through each step until done.

Hotspot Setup Wizard


Step 4 – Configure Hotspot Server Profile

Go to IP → Hotspot → Server Profiles tab → double-click hsprof1.

Login tab:

FieldValue
Login ByMAC, ✅ HTTP PAP, ✅ HTTPS (uncheck CHAP, Cookie, Trial)
MAC Auth. ModeMAC as username and password
MAC Auth. PasswordAny value, e.g. mktom (cannot be blank)
HTTP Cookie Lifetime3d 00:00:00

Server Profile — Login Tab

RADIUS tab:

FieldValue
Use RADIUS✅ Checked
Accounting✅ Checked
Interim Update00:01:00
NAS Port Type19 (wireless-802.11)

Click Apply → OK.

Server Profile — RADIUS Tab


Step 5 – Configure Hotspot Server Settings

Go to IP → Hotspot → Servers tab → double-click your hotspot server.

FieldValue
Namehotspot1
Interfaceether5 (your Wi-Fi interface)
Address Poolwifi-pool
Profilefreewifi
Idle Timeout00:05:00
Keepalive Timeout(leave empty)
Addresses Per MAC2

Click Apply → OK.

Hotspot Server Settings


Step 6 – Configure User Profile

Go to IP → Hotspot → User Profiles tab → double-click default.

FieldValue
Keepalive Timeout(leave empty)
Status Autorefresh00:01:00

Click Apply → OK.

Hotspot User Profile


Step 7 – Configure Walled Garden

Walled Garden defines which websites users can access before logging in. Without this, users cannot reach the login portal page.

Go to IP → Hotspot → Walled Garden tab and add the following entries (Action = allow for each):

#Dst. Host
0portal.wizone.io
1static.cloudflareinsights.com
2challenges.cloudflare.com

Walled Garden IP List


Step 8 – Upload Login Page

  1. In WiZone Portal → NAS Configuration, click Download next to Hotspot setup files.
  2. Extract the downloaded archive. Key files:
FilePurpose
login.htmlMain login page
alogin.htmlAuto-login redirect page after successful login
  1. In WinBox, go to Files and open the hotspot folder (created by the wizard).
  2. Drag all extracted files into the hotspot/ folder on MikroTik.

Hotspot Files Upload

  1. Go to IP → Hotspot → Server Profiles tab → double-click hsprof1.
  2. In the General tab, set HTML Directoryhotspot.

Click Apply → OK.

Server Profile — HTML Directory


Verify

Hotspot Server Active

  1. Connect a phone to Wi-Fi.
  2. Open a browser → it should redirect to the WiZone login page.
  3. Log in with a test account from Portal → should authenticate and access the internet.

WiZone Login Page

ProblemCheck
No redirect to loginVerify Hotspot server is on the correct interface; DHCP is working
Redirects but login failsVerify WireGuard tunnel (Stage 2) and RADIUS secret (Step 1 above)