Mjengo Corporate logo
Integrations

MikroTik and RADIUS integration for your own systems

MikroTik and RADIUS integration lets your own software create users, set bandwidth, enable or disable access and read usage on MikroTik routers automatically, through the RouterOS API or a RADIUS server. Mjengo Corporate builds these integrations for businesses and developers in 2–6 weeks. ISPs that only need billing can use Netily, our ready-made platform.

Updated

Ways to control MikroTik from your software
MethodHow it worksGood forWatch out for
RouterOS APIYour server connects to each router and runs commands (create user, change queue, disable)Small numbers of routers, direct controlRouter reachability, credentials on many devices
RouterOS REST API (v7)HTTPS JSON interface on newer RouterOS versionsModern integrations on RouterOS v7Only on v7 routers; secure it properly
RADIUS (e.g. FreeRADIUS)Routers ask a central RADIUS server whether a user may connect and with what limitsMany routers, central policy, PPPoE and hotspot at scaleRADIUS server availability is critical

Who needs a MikroTik or RADIUS integration?

  • Businesses running guest Wi-Fi in hotels, co-working spaces, estates and hostels that want access tied to their booking or tenant system.
  • Software teams building a product that must provision network access automatically.
  • ISPs with an existing in-house system that need it connected to routers properly.

If you are an ISP and simply need billing, M-Pesa auto-reconnection and a customer portal, you don't need a custom integration: use Netily, the ISP billing system we built and run.

How does the integration work?

There are two patterns:

  1. Direct API control. Your system connects to the router and changes configuration: adds a PPPoE secret or hotspot user, sets a queue for the bandwidth plan, disables a user when their plan expires.
  2. RADIUS. The router asks a central RADIUS server each time a user connects. The server checks your database and replies with accept or reject, plus attributes such as rate limits and session time. Your software only updates the database; every router follows.

For more than a handful of routers, RADIUS is usually more reliable, because a router that is offline at the moment of a change doesn't miss it.

Common pitfalls

  • Exposing the router API to the internet without restrictions. Use a VPN or restrict by source address.
  • One shared admin password across all routers. Use a dedicated API user with limited permissions.
  • No handling for offline routers. Queue changes and retry, or move to RADIUS.
  • Mixing manual and automatic changes. If staff edit routers by hand, the software and the routers drift apart.
  • Ignoring RouterOS version differences between v6 and v7.

How Mjengo Corporate builds MikroTik integrations

MikroTik provisioning, PPPoE and hotspot billing, RADIUS authentication, load balancing and failover, and remote management of customer routers (TR-069) all run inside Netily for 50+ ISPs. When we integrate MikroTik into a client's system we reuse that experience: least-privilege API users, VPN access to routers, a retry queue, and a dashboard showing which routers are online and in sync.

Frequently asked questions

Should I use the MikroTik API or RADIUS?

For a few routers, the RouterOS API is simple and direct. For many routers, or for PPPoE and hotspot users at scale, a central RADIUS server is usually more reliable.

Can you connect M-Pesa payments to MikroTik?

Yes. A payment confirmed through M-Pesa can enable or extend a user's access automatically. Netily does exactly this for ISPs; we can build the same for your own system.

I run an ISP. Do I need a custom integration?

Probably not. Netily (netily.co.ke) already provides ISP billing, MikroTik provisioning, M-Pesa auto-reconnection and a customer portal. A custom integration makes sense when you have unique requirements or an existing system to connect.

Sources

Keep reading

Blueprint first

You see and test your product before we write a line of code.

Tell us what you are building. Within a week you can be clicking through a prototype of it, with a fixed price for the build.