MikroTik RADIUS for PPPoE and Hotspot, no server to install
FreeRADIUS is already installed and connected to billing. Add a router, paste the script we generate, and subscribers authenticate right away. This page explains what RADIUS does, how it compares to running your own server, and what a day at an ISP using it looks like.
Updated ยท 4 min read
PPPoE & Hotspot
Authentication and accounting for RouterOS v6 and v7.
CoA / Disconnect
Drop or change a subscriber session straight from the panel.
NAS & session monitor
See routers and online subscribers live.
Built-in VPN
Routers without a public IP can still connect.
Contents
What RADIUS does in your network
RADIUS is the server your router asks every time a subscriber logs in. MikroTik sends the username and password, RADIUS answers yes or no, and sends the session rules along with it: speed, IP, time limit, and group. While the subscriber is online, the router reports usage (accounting) at regular intervals.
Without RADIUS, every account lives in PPP Secrets or Hotspot Users on each router. Once you have more than one router, subscriber data is scattered and has to be copied by hand. With RADIUS, subscriber data lives in one place and every router shares it.
Why not run FreeRADIUS yourself
FreeRADIUS is free, but it needs a server, a database, MikroTik dictionary configuration, backups, and monitoring. Every plan or subscriber change also has to be wired into your billing app.
In MaxRadius, RADIUS and billing share the same data from day one, so there is nothing to sync by hand.
- Server
- Secrets/users on the routerNot needed
- Self-hosted FreeRADIUSVPS + database + upkeep
- MaxRadiusProvided
- Multiple routers
- Secrets/users on the routerCopy accounts to each router
- Self-hosted FreeRADIUSYes, configure NAS by hand
- MaxRadiusYes, add NAS from the panel
- Router without public IP
- Secrets/users on the routerNot relevant
- Self-hosted FreeRADIUSRun your own VPN
- MaxRadiusBuilt-in VPN (L2TP, PPTP, SSTP, OpenVPN)
- Connected to billing
- Secrets/users on the routerNo
- Self-hosted FreeRADIUSBuild your own integration
- MaxRadiusDirectly, same data
- Suspend when overdue
- Secrets/users on the routerManual per router
- Self-hosted FreeRADIUSYour own scripts
- MaxRadiusAutomatic via CoA
- Session history & auth log
- Secrets/users on the routerRouter log, easily lost
- Self-hosted FreeRADIUSYes, needs a dashboard
- MaxRadiusIn the panel
| Secrets/users on the router | Self-hosted FreeRADIUS | MaxRadius | |
|---|---|---|---|
| Server | Not needed | VPS + database + upkeep | Provided |
| Multiple routers | Copy accounts to each router | Yes, configure NAS by hand | Yes, add NAS from the panel |
| Router without public IP | Not relevant | Run your own VPN | Built-in VPN (L2TP, PPTP, SSTP, OpenVPN) |
| Connected to billing | No | Build your own integration | Directly, same data |
| Suspend when overdue | Manual per router | Your own scripts | Automatic via CoA |
| Session history & auth log | Router log, easily lost | Yes, needs a dashboard | In the panel |
RADIUS features
- PPPoE and Hotspot authentication from many NAS devices, RouterOS v6 and v7.
- Session accounting: login time, session length, upload and download per subscriber.
- Speed is sent from the plan through
Mikrotik-Rate-Limit, so changing plans never means editing router profiles. - Dynamic IPs from a pool or a static IP per subscriber, including IPv6 prefixes.
- CoA and disconnect from the panel for suspension, plan changes, and dropping sessions.
- Called Station and Login Restriction to lock a subscriber to a specific NAS or hotspot location.
- Device limit per account (simultaneous use) and MAC binding.
- NAS monitor, online subscriber list, session history, auth log, and Session check to diagnose a single username.
Connecting a router
A command-by-command walkthrough is in the MikroTik RADIUS setup article.
- Open NAS / Router and click Add NAS. Choose MaxRadius VPN if the router has no public IP, or dedicated public IP if it does.
- Enter the NAS name and RouterOS version (v6 or v7). For VPN, pick the protocol and VPN server.
- Copy the script generated in the Integration step and paste it into the MikroTik Terminal. It sets up the VPN, RADIUS client, and suspension firewall in one go.
- Save. The NAS turns Online once the router connects, and PPPoE or Hotspot subscribers can log in right away.
Example: an ISP with 300 subscribers on two routers
An RT/RW Net runs 250 PPPoE subscribers on the main router and 50 on a branch router that only gets a local IP from its upstream ISP. The branch router connects through MaxRadius VPN, the main router through its public IP. Both read the same subscriber data.
When a subscriber moves from the main area to the branch, the admin just changes the NAS on their service; the account is not recreated. When a subscriber upgrades from 10 Mbps to 20 Mbps, the admin clicks Change plan; the session refreshes automatically and the new speed applies without opening Winbox.
When someone cannot connect, the technician opens Auth log and Session check with their username: it shows whether the login was rejected for a wrong password, a suspended service, or too many devices.
What you still configure on the router
- The PPPoE Server or Hotspot Server interface, and a local IP pool if you do not use pools from RADIUS.
- Your upstream internet, NAT, and general firewall.
- The panel script only adds RADIUS, VPN, and suspension settings; the rest of your router config is untouched.
Frequently asked questions
Can MaxRadius RADIUS be used without billing?
RADIUS is part of every MaxRadius plan. Use the billing features as much or as little as you need, for example only for Hotspot vouchers.
My router has no public IP. Will it work?
Yes. Choose MaxRadius VPN when adding the NAS. The router connects over L2TP, PPTP, SSTP, or OpenVPN to our VPN servers, and RADIUS and CoA run through that tunnel.
Are RouterOS v6 and v7 supported?
Yes. Pick the RouterOS version in the Add NAS wizard and the generated script uses that version's syntax.
What if the RADIUS server cannot be reached?
Subscribers already online stay connected because the session runs on the router. New logins wait until the router can reach RADIUS again.