RadiusNest › Guides

MikroTik RADIUS and billing behind CGNAT, without a public IP

Last updated: 26 November 2026

Yes, a MikroTik behind CGNAT can use a RADIUS server and billing. The router cannot be reached from the internet, so the connection has to start from the router: it dials out to the RADIUS service over an encrypted link, and logins, accounting and disconnects travel inside that link. This is how RadiusNest connects every router, so a Starlink, LTE or other CGNAT line works the same as a line with a public IP.

Is your router behind CGNAT?

Compare the address on the router's internet port with the address the internet sees. If they differ, something between you and the internet is doing NAT.

/ip address print where interface=ether1
:put ([/tool fetch url="https://radiusnest.net/myip.php" as-value output=user]->"data")

The first line shows the WAN address on the router (change ether1 to your internet port). The second asks a server for your public address (RouterOS 7). An address in 100.64.0.0/10 on the WAN port means carrier-grade NAT. A private address such as 192.168.x.x means there is another router in front of yours. You can also open What is my IP on a PC behind the router; it runs the same check.

What breaks with a normal RADIUS setup

  • Logins can still work. The router sends RADIUS requests out and the answers come back through the NAT, so a plain /radius entry pointing at a public server often works for logins and accounting.
  • The server cannot trust the source address. It sees the CGNAT address, which is shared with other customers of your provider and can change at any time, so it cannot tell your router apart by its IP.
  • Disconnects and speed changes fail. A RADIUS Disconnect or CoA goes from the server to the router on UDP port 3799. Behind CGNAT nothing can reach the router, so expired customers stay online until they log out, and a new speed only applies at the next login.
  • No remote access. Winbox, WebFig and the API cannot be reached from outside, so you cannot fix the router without being on site or running your own VPN.

How the link fixes it

RadiusNest's setup command makes the router open an encrypted link to RadiusNest: WireGuard on RouterOS 7, L2TP/IPsec on RouterOS 6. The router starts the connection, so CGNAT is not in the way. The RADIUS settings then point at RadiusNest's address inside that link, with the router's own link address as the source:

/radius add address=10.20.0.1 service=hotspot,ppp src-address=10.20.0.15 timeout=1500ms
/radius incoming set accept=yes port=3799
/ppp aaa set use-radius=yes accounting=yes interim-update=5m

The addresses here are examples; the setup command fills in the real ones for your router. A firewall rule lets port 3799 in only from RadiusNest's link address. Now a disconnect or a speed change reaches the router at once, the router is known by its link address and not by a shared public IP, and the dashboard can open WebFig and Winbox on the router through the same link (see remote management without a public IP). If the link drops, the router reconnects by itself.

Set it up

  1. Start the free trial and add your router in RadiusNest.
  2. Copy the one-line setup command and paste it into the router's terminal (Winbox > New Terminal).
  3. Wait for the router page to show the link as up. Nothing has to be opened on your provider's side.
  4. Create a package and a test user, log in on the hotspot or PPPoE, and check the session in the dashboard.
  5. Disconnect the test user from the dashboard: it drops at once, which proves the link works both ways.

What still needs a public IP

Only services that strangers on the internet must reach: a web server you host for others, a port forward to a camera, a VPN server for remote offices. Your hotspot and PPPoE customers do not need any of that, and neither does RadiusNest. If you need those services, ask your provider for a public IP, or use /ip cloud only after checking the router has a real public address.

Questions and answers

Does RADIUS work behind CGNAT?

Logins often work, because the router sends the requests out. Disconnects and speed changes from the server do not, because nothing can reach the router. A link that the router opens itself, as RadiusNest uses, makes both directions work.

Can I disconnect a customer when my router is behind CGNAT?

Yes, when RADIUS runs through a link the router opened. RadiusNest sends the disconnect to the router's link address on port 3799, and only RadiusNest's address may use that port.

Do I need a static IP from my internet provider?

No. The router connects out to RadiusNest, so a dynamic or CGNAT address is fine.

Does it work on Starlink or LTE?

Yes. Starlink and most LTE lines use CGNAT; the router dials out over WireGuard (RouterOS 7) or L2TP/IPsec (RouterOS 6) the same way as on any other line.

Related guides

Start the free trial See pricing