Logo MaxRadiusMaxRadius

How to set up RADIUS on MikroTik for PPPoE and Hotspot

With RADIUS, subscriber accounts are no longer stored on the router. MikroTik is simply pointed at a RADIUS server and every PPPoE and Hotspot login is checked there. Here are the steps for RouterOS v6 and v7.

Updated ยท 2 min read

PPPoE & Hotspot

One RADIUS for both services.

CoA / Disconnect

Disconnect or change a subscriber's speed without opening Winbox.

Many routers

Every NAS uses the same subscriber data.

Generated scripts

In MaxRadius, every command below is generated for you.

Contents
  1. 1. Add the RADIUS server
  2. 2. Enable RADIUS for PPPoE
  3. 3. Enable RADIUS for Hotspot
  4. 4. Open CoA for automatic suspension
  5. 5. Test a subscriber login
  6. Common problems
  7. The quick way: scripts from MaxRadius

1. Add the RADIUS server

Open the MikroTik terminal and register the RADIUS server address and its secret. Replace the address and secret with your server's.

/radius add address=10.0.0.1 secret=SECRET service=ppp,hotspot timeout=3s

2. Enable RADIUS for PPPoE

This makes PPPoE use RADIUS for login and send accounting data (session time and usage).

/ppp aaa set use-radius=yes accounting=yes interim-update=5m

3. Enable RADIUS for Hotspot

Set it on the Hotspot server profile in use. Example for the default profile:

/ip hotspot profile set [find name=default] use-radius=yes

4. Open CoA for automatic suspension

CoA (Change of Authorization) lets RADIUS disconnect a session or change a subscriber's speed immediately. Without it, a suspension only applies when the subscriber logs in again.

/radius incoming set accept=yes port=3799

5. Test a subscriber login

  1. Create one subscriber account in RADIUS or your billing app.
  2. Log in from a PPPoE client or the Hotspot login page.
  3. Check on MikroTik: PPP > Active Connections or IP > Hotspot > Active. The radius column shows the login went through RADIUS.
  4. If it fails, run /radius monitor 0 and check Log for timeouts or rejects.

Common problems

  • Timeout: the router cannot reach RADIUS. Check routes, firewall, or the VPN connection.
  • Reject: the secret on the router differs from RADIUS, or the username/password is wrong.
  • Wrong speed: the rate-limit attribute from RADIUS is not sent, or a default profile overrides it.
  • Suspension not working: CoA port 3799 is not open or is blocked by the firewall.

The quick way: scripts from MaxRadius

In MaxRadius you do not type the commands above one by one. The Tambah NAS (Add NAS) wizard generates a VPN script and a RADIUS script ready to paste, then Tes ping and Tes API confirm the router is really connected. The RADIUS server (FreeRADIUS) already runs in the cloud and is wired to billing.

Frequently asked questions

Are the steps the same on RouterOS v6 and v7?

The basic commands are the same. In MaxRadius you pick your RouterOS version and the generated script matches it.

Which ports does RADIUS use?

Usually 1812 for authentication, 1813 for accounting, and 3799 for CoA/disconnect.

Do I need a public IP to use cloud RADIUS?

Not with a VPN. Routers without a public IP connect through the MaxRadius VPN.