Register a router (NAS)
A NAS is the router your subscribers connect through — in practice a MikroTik router. Every router that should authenticate subscribers against Farava is registered once in the panel and then configured on the router itself.
1. Register the router in the panel
Section titled “1. Register the router in the panel”-
Go to Network → NAS / Routers and select Register NAS.
-
Fill in the form:
Field Meaning Device name A name colleagues recognise, for example “Main router — Shahr-e Naw”. RADIUS source IP The address the router sends RADIUS packets from. Unique per router. Management IP Optional; the address staff use to manage the router. Shared secret The password the router and Farava use to recognise each other. Generate secret creates a strong one. 6 to 128 characters, no spaces or quotes. Interim accounting interval How often, in seconds, the router reports usage for active sessions. The default suits most networks. -
Under Advanced settings, if Farava should be able to disconnect sessions remotely (needed for suspension and quota exhaustion):
- CoA / Disconnect address — the router address Farava sends disconnect requests to;
- Port — usually
3799; - turn on Supports session disconnect;
- turn on Supports live speed changes (CoA) only once you have tested it.
The Authentication port and Accounting port are shown but fixed: the system receives sign-in requests on UDP 1812 and accounting on UDP 1813, and these cannot be changed. Set the router to use them.
-
Select Register NAS.
2. Configure the router
Section titled “2. Configure the router”After registering, the NAS registered successfully page shows the values to enter on the router: RADIUS server, Authentication port (1812), Accounting port (1813), and CoA / Disconnect port. Use Copy settings and enter them on the router as described in MikroTik setup.
The page also shows a RouterOS command for the router’s RADIUS entry. Select
Copy command and paste it into the router’s terminal. It contains the secret
you just set, and it is shown only now, so copy it before you leave the page.
Later, the router’s own page shows the same command with <shared-secret> in
place of the secret: replace it with the secret set for that router. The command
ends with the router’s RADIUS source IP, so the router sends its requests
from the address registered here. If your RouterOS version refuses that part,
remove it and set the source address in the router’s RADIUS settings instead.
Which server address should the router use? The command uses the Main address. If the router cannot reach it — for example the router is on another network — use one of the Other server addresses listed under the command. Use the address the server itself uses to reach that router: if the router is set up with a different server address, sign-in can still work while disconnect and plan-change requests from the server are dropped.
The addresses come from Settings → Server addresses (see Settings). If you see RADIUS server address unavailable, no address was recorded when the server was installed; set a main address there.
3. Enable the router
Section titled “3. Enable the router”A new router is registered disabled, so no traffic is accepted from it before it is ready. Once the router is configured:
- Open the router under NAS / Routers.
- Under Security and availability, select Enable NAS and confirm.
From then on Farava accepts sign-in and accounting requests from this router.
If Farava finds a problem that would stop subscribers connecting through this router — for example, no IP address pool is available on it — it asks Finish setup before enabling? and lists the problems (the Before logins work card on the router’s page shows the same list). Fix them first, or select Enable anyway if you know the router does not need the fix. A pool warning for a router that only runs Hotspot can be ignored; PPPoE subscribers would be rejected on a router with no pool.
Two checks concern fair use speed changes: Speed changes are failing on this router (the router did not accept recent speed changes, so customers are disconnected instead to pick up the new speed) and Fair use speed changes disconnect customers on this router (speed changes are off for this router, so each change briefly disconnects customers). Check that the router accepts speed changes from the system, or accept the brief disconnect. Review speed changes for this router opens the router’s edit page, where Supports live speed changes (CoA) is set.
Request signing
Section titled “Request signing”RADIUS requests from newer routers carry a signature (the Message-Authenticator). Older MikroTik versions (RouterOS 6) do not send one. A new router starts by accepting unsigned requests, so it works from its first sign-in. Farava watches it, and once the router has signed every request for a full day, Farava secures it automatically and from then on requires signed requests. The Router request signing card on the router’s page shows which stage the router is in, and the date when Farava secured it.
To decide yourself, open Advanced and use Request signing:
| Choice | Effect |
|---|---|
| Automatic (let the system decide) | The default. Accept unsigned requests while learning, then require signed ones. |
| Require signed requests | Reject any request without a signature. |
| Accept unsigned requests | Always accept unsigned requests. Farava never changes it. The router shows an Unsigned requests badge. |
If subscribers cannot sign in through a router and the page shows This router’s logins are being rejected, select Review request signing: the router is sending unsigned requests while signed ones are required. Upgrade RouterOS, or choose Accept unsigned requests for that router.
4. Check that it works
Section titled “4. Check that it works”On the router’s page, look at Live RADIUS status:
| Status | Meaning |
|---|---|
| LIVE | RADIUS packets are arriving from this router. |
| STALE | Packets used to arrive but none have for a while. |
| NEVER SEEN | Nothing has arrived yet; check the router settings, address, or secret. If the router is not registered, or is registered with a different source IP, it appears under Unregistered routers. |
Last RADIUS activity shows the latest authentication, accounting start, interim update, and accounting stop separately. If you see authentication but no Accounting Start, accounting is turned off on the router — see MikroTik setup.
Router clock
Section titled “Router clock”Routers stamp their accounting reports with their own clock. Farava compares that time with its own. If a router’s clock is wrong, the router’s page shows Router clock is off (and a Clock off badge in the list), for example “This router’s clock is about 4 h 30 m ahead of the system.” Sessions and usage are still recorded, using Farava’s time, so subscribers keep working and nothing is lost. It is a warning, not an outage: fix the router’s time zone or NTP, as shown under How to fix it on the router. The page also shows Events corrected (last 24 h) and Last corrected. With no recent accounting it says the clock cannot be checked yet.
Edit a router
Section titled “Edit a router”To change a router’s details after registering it, open it under NAS / Routers and select Edit NAS settings. There you can change:
- Device name, RADIUS source IP, and Management IP;
- How this router reaches the system — Direct routed connection for most routers, or Externally managed VPN only when the router reaches Farava through a stable tunnel address that is managed outside Farava;
- under RADIUS ports and accounting, the Interim accounting interval. The Authentication port (UDP 1812) and Accounting port (UDP 1813) are shown but cannot be changed: the system receives RADIUS only on those ports, so the router must use them;
- the CoA / Disconnect address and CoA / Disconnect port;
- the Router clock tolerance (seconds, 0–86400, default 300). Within this many seconds of Farava’s time the router’s own timestamp is used; beyond it Farava’s time is used. 0 always uses Farava’s time. Leave it at the default and fix the router clock instead of raising it.
Select Save changes. Enabling or disabling the router and rotating the secret are separate actions; saving these settings does not change them.
Disable a router
Section titled “Disable a router”Disable NAS (under Security and availability) stops accepting RADIUS traffic from this router and refuses new sign-ins through it. Its open sessions are ended in Farava, which frees their addresses and card slots, but customers are not disconnected from the router. Enabling the router again does not bring those sessions back; customers sign in again.
Rotate the shared secret
Section titled “Rotate the shared secret”If the secret has leaked or been lost, go to Security and availability → Rotate RADIUS shared secret, enter the new secret in New shared secret, select Review rotation, and confirm with Rotate secret. Change the same secret on the router straight away — until both sides match, subscriber sign-ins through this router are rejected. Do this at a quiet time.