View Categories

RADIUS login for routers

Free MikroTik only

What it is #

With RADIUS, administrators log in to MikroTik routers with their own MikroWizard account instead of shared router passwords, and every login is logged with their name.

Example uses

  • Remove a leaver’s access to all routers by deactivating one account.
  • See exactly who logged in to a router and when.

MikroWizard has a built-in RADIUS server for administrator logins to MikroTik routers (WinBox, SSH, WebFig, API). Each person uses their own MikroWizard user, and every login is logged with their name.

Without it, a team shares one admin password per router: nobody knows who changed what, and an engineer who leaves still knows the passwords. With RADIUS, you disable a user once in MikroWizard and they can no longer log in to any router.

Before you start #

  • Routers must reach the MikroWizard server on UDP 1812 (login) and 1813 (accounting).
  • MikroWizard finds a router by the address the router reports in the request (NAS-IP-Address); it must match the device’s IP in MikroWizard.

Turn it on #

  1. Set the RADIUS Secret and Default IP Address in System configuration.
  2. Turn on Force RADIUS in Security and enforcement switches.

During the regular device sync, MikroWizard sets on each router /user aaa with use-radius, accounting and interim-update 0s, and a /radius entry for the MikroWizard address with your secret (comment mikrowizard). Duplicate entries for that address are removed.

How a login is checked #

  1. The user logs in with their MikroWizard username and password (or TOTP code, see Two-factor).
  2. With Force Permissions on, the user needs access to a group containing the router (or Default); otherwise the login is refused (Unable to verify group).
  3. The router gets the user’s permission profile as the RouterOS group.
  4. The login appears in the Authentication log, changes in the Accounting log.

Protect it with RADIUS login protection and, with Pro, IP restrictions.

Keep a way in #

Keep one local router user (for example a break-glass account with a long password, kept in the Password Vault) for when the MikroWizard server can’t be reached. RouterOS checks local users before RADIUS, so this account works even when RADIUS doesn’t answer. Use a name no MikroWizard user has.

Check it #

Log in to a router with WinBox using your MikroWizard username, then look at the Authentication log. If nothing is logged, see RADIUS login not working.