MikroTik & RADIUS

How to Automate MikroTik PPPoE & CoA Disconnects With Cloud FreeRADIUS (RouterOS v6 & v7)

Step-by-step architecture for connecting MikroTik CCR/CHR routers to BillFi Cloud FreeRADIUS for instant PPPoE authentication, dynamic speed upgrades, FUP throttling, and zero-delay expiry cutoffs.

Qbify NOC Architecture Team2026-11-227 min read
All ISP Guides
Key Takeaways
  • Replacing local MikroTik PPP secrets with centralized FreeRADIUS AAA eliminates router desyncs across multi-POP networks.
  • Enabling RFC-5176 Change of Authorization (CoA) on UDP port 3799 lets BillFi throttle FUP speeds, upgrade bandwidth, or disconnect expired sessions instantaneously.
  • Interim accounting every 5 minutes delivers accurate real-time bandwidth graphs, FUP quota enforcement, and online/offline outage alerts.

Why Multi-Router ISPs Outgrow Local MikroTik PPP Secrets

Managing 300 subscribers on a single MikroTik router via API works early on, but as soon as your ISP expands to 3, 10, or 50 CCR/CHR edge routers across multiple POPs, local PPP secrets become fragile. Moving a subscriber between POPs, enforcing simultaneous-use MAC limits, or auditing session history becomes slow and error-prone.

BillFi's managed FreeRADIUS 3.x engine acts as your single source of truth across MikroTik, Cisco, Juniper, Ubiquiti UniFi, TP-Link Omada, and Ruijie Reyee NAS devices.

Production MikroTik RouterOS RADIUS & CoA Configuration

Point your MikroTik router to your dedicated BillFi Cloud RADIUS endpoint and enable incoming CoA/PoD packets on UDP port 3799:

MikroTik RouterOS v6 / v7 CLI
/radius add service=ppp,hotspot address=YOUR_BILLFI_RADIUS_IP secret="STRONG_SHARED_SECRET" timeout=3000ms
/radius incoming set accept=yes port=3799
/ppp aaa set use-radius=yes accounting=yes interim-update=5m
/ip hotspot profile set [find default=yes] use-radius=yes

Dynamic Speed Boosting, Night-Time CIR & FUP Quotas

Once CoA is active, BillFi pushes dynamic Mikrotik-Rate-Limit attributes on schedule — allowing ISPs to offer double night-time bandwidth, automatic FUP fallback speeds after monthly data thresholds, or instant speed upgrades the second a customer pays inside the mobile app.

  • Zero dropped sessions during mid-cycle bandwidth upgrades via live CoA updates.
  • Automated profile switching to an 'Expired / Payment Portal' walled garden instead of silent blackhole drops.
  • Real-time online/offline subscriber spike detection to alert NOC engineers before customers call support.

Frequently Asked Questions

Does BillFi work with both MikroTik RouterOS v6 and RouterOS v7?

Yes. BillFi supports RouterOS v6 and v7 via standard FreeRADIUS AAA (UDP 1812/1813/3799) as well as encrypted RouterOS API synchronization.

Can expired subscribers be redirected to a payment page instead of fully disconnected?

Yes. BillFi can push an expired address-list or walled-garden profile via RADIUS CoA so overdue subscribers are redirected straight to their bKash/Nagad/card invoice renewal page.

More ISP Engineering Guides

View all →
Free Setup • Live in 24–48 Hours

Ready to Automate Your ISP Billing & Network Operations?

Request a personalized walkthrough of BillFi with a Qbify telecom engineer. We will map your MikroTik/Cisco NAS routers, OLT topology, and preferred payment gateways before launch.

Book Your Live BillFi Demo

Get a guided walkthrough + free installation plan within 60 minutes.