MikroTik Integration

Connection Settings

root@mikrotik:~# Live RouterOS Terminal
System ready. Type a RouterOS command below (e.g. 'ip address print'). Note: Use standard syntax, it will be automatically converted to API arrays. -------------------------------------------------------------------------
[admin@MikroTik] >

Router Setup Guide (Pull Authentication)

Your router polls the portal every 30 seconds to activate paid sessions — works even with dynamic public IPs. Copy the script below and add it as a Scheduler in WinBox.

Your Router API Secret (keep this private)
Loading...
Loading...
Name: mtaanet-poll
Interval: 00:00:30  (every 30 seconds)
On Event: mtaanet-sync
Policy: read,write,policy,test,ftp
/ip hotspot walled-garden
add dst-host=ukwelicode.com
add dst-host=*.ukwelicode.com
add dst-host=api.paystack.co
add dst-host=*.paystack.co
add dst-host=api.safaricom.co.ke
Loading...
How it works: After setup, when a user pays on the portal, your router will activate their session within 30 seconds — no static IP required.