Router Configuration
Hotspot Server Configuration
15 min read
•Updated January 2026
Configure your MikroTik router's hotspot server to work with Kitonga.
Prerequisites
Make sure you have RouterOS 6.45 or higher and WinBox/WebFig access to your router.
Step 1: Create Hotspot Interface
First, set up the hotspot on your WiFi interface:
/ip hotspot setup hotspot interface=wlan1 local address of network=10.5.50.1/24 masquerade network=yes address pool of network=hs-pool-1 dns servers=8.8.8.8,8.8.4.4 name of local hotspot server=hotspot1
Step 2: Configure Walled Garden
Allow access to Kitonga servers and payment gateways:
/ip hotspot walled-garden ip add dst-host=api.kitonga.klikcell.com action=accept add dst-host=kitonga.klikcell.com action=accept add dst-host=*.snippe.io action=accept add dst-host=*.nextsms.co.tz action=accept
Step 3: Set Login Page URL
Configure the captive portal to redirect to Kitonga:
/ip hotspot profile set [find name=hsprof1] \ login-by=http-chap,http-pap \ html-directory=hotspot \ http-cookie-lifetime=1d
Step 4: Enable API Access
Kitonga needs API access to manage user sessions:
/ip service set api address=0.0.0.0/0 disabled=no /ip service set api-ssl address=0.0.0.0/0 disabled=no
Security Warning
Never expose the API to the public internet without proper firewall rules. Restrict access to Kitonga's IP addresses only.