Skip to content

RADIUS attributes ​

Hive-Sync answers router requests through FreeRADIUS. The router acts as the RADIUS client. A primary and a secondary RADIUS server are available.

This page lists standard attributes only.

Request attributes Hive-Sync reads ​

AttributeUse
User-NameThe PPPoE username, matched to a UISP service
User-Password or CHAP attributesChecked against the service password
NAS-Identifier / NAS-IP-AddressWhich router sent the request
Calling-Station-IdCustomer-side identifier, if the router sends it

Reply attributes ​

AttributeUseStatus
Mikrotik-Rate-LimitSpeed limit for the session, from the UISP plan. Format is MikroTik's rx/tx rate string.Used
Framed-IP-AddressThe fixed IP address set on the UISP service, when there is oneUsed
Mikrotik-GroupThe PPP profile Hive-Sync prepares on the router for RADIUS sessionsUsed
Mikrotik-Address-ListPuts a suspended customer's session in the suspended address list, which the router sends to the slow lane and the pay pageUsed
Session-Timeout, Acct-Interim-IntervalSession length and accounting intervalTo be confirmed

For a suspended customer, the reply carries the address list for suspended customers. The router's own rules (created by Hive-Sync, see Router objects) then apply the slow lane and send web requests to the pay page. When the customer pays, Hive-Sync ends the session so the next login gets the normal reply.

Rate limit format ​

Mikrotik-Rate-Limit is written as rx-rate/tx-rate, from the router's point of view. Example for 50 Mbps down and 20 Mbps up from the customer's point of view:

Mikrotik-Rate-Limit = "20M/50M"

The router's rx is what it receives from the customer, which is the customer's upload. Check this once on your lab router.

Changing a live session ​

Pushing a change to a session that is already online, without a reconnect, is Coming soon.

Hive-Sync is pre-release. Pages marked "Coming soon" describe work that is not finished.