To configure general and advanced settings for RADIUS, navigate to Config → Networking → Radius.



Reject IPv6 0 - Reject IPv6 range when a user is not found (real);
Reject IPv6 1 - Reject IPv6 range when a user is blocked, not active, or not in the system;
Reject IPv6 2 - Reject IPv6 range when a user has a negative balance or a filter is applied;
Reject IPv6 3 - Reject IPv6 range when a user has the wrong MAC address (if enabled) or other error;
Reject IPv6 4 - Reject IPv6 range when a user has entered the wrong password.
Select the NAS type you are going to use and click on the Load button. The NAS configuration options are stored separately for each NAS type, so they appear only after a type is selected and loaded. You can use a default type or create a new NAS type — for more information, see NAS types.
A new configuration section will appear:


Error session time limit - limitation of the session time (in seconds) in case of an authorization error, forcing users to reconnect after a time out (for customers that do not have any active services).
This is necessary in order that after activation, the customer received his address from Splynx, without manual reconnection on their part;
Use admin login - when enabled, it allows logins to the router with administrator credentials;
Attribute for Read Group - specify the attribute for read group;
Attribute for Write Group - specify the attribute for write group;
Attribute for Full Group - specify the attribute for full group;
There are two buttons at the bottom of the page to Restart radius and Clear all online sessions.
Activate service on first auth lets Splynx start billing an internet service from the day the customer is really connected, instead of from a start date entered before the equipment was installed. This prevents invoicing for periods when the service was not yet usable.
Enable the toggle in the NAS config section of Config → Networking → Radius — select the NAS Type, click Load, and the option appears with the rest of that type's settings.

How it works
When the RADIUS server returns Access-Accept for a customer, Splynx checks the internet service used for that authentication. The service is activated only when both conditions are met:
0000-00-00).If both are true, Splynx sets the service status to Active and sets the start date to the current date, so billing starts from the day of the first successful authentication.
Services that are already active, and services that already have a start date, are never changed.
Scope and defaults
Tracking the activation
Splynx writes the activation to the customer and service log, so you can see that the system performed it and on which date. No notification is sent to the customer or to the administrator.
Enable this option only if you create internet services with the Pending status and an empty start date. If your workflow fills in the start date up front, the service is left untouched and billing follows the date you entered.
In this section, you can configure extended features for RADIUS.

In Splynx we have two Radius servers. We use Freeradius as an external Radius server; it accepts connections from clients (from routers). Freeradius transfers Radius requests to the internal Radius server called splynx_radd. Here we can configure where splynx_radd listens to connections.
If you change the configuration here, you should also change it in the PeerAddr and PeerPort configuration in the /etc/freeradius/splynx/splynx.pl file.


Check online - checks if a customer is already online. If online, do not allow a new connection (with the same credentials). If disabled, customers can connect multiple times with the same credentials;
DHCP (Send framed-route attribute) - send a framed-route from the Radius server;
DHCP (Add customer to online after login) - when we use DHCP, add customers to the online list, immediately after they connect. If disabled, customers will be added to the online list, only when their traffic reaches the accounting limit (under Config → Networking → MikroTik API "Min bytes for accounting");
Bind MAC address on first connect - if the MAC attribute is empty in the internet service settings, this adds the MAC/IP from where the customer connects for the first time;
Maximum unique MAC addresses - maximum number of MAC addresses that can be added into the internet service settings;
Overwrite oldest mac in case of new trying to log-in - enable this toggle to overwrite the previous MAC address when there is a new trying to log-in.
Enable multiple PSK SSID - configure Multiple PSK SSID. Allow multiple pre-shared keys for a single SSID to manage access and policies. Works only for internet services.
Force the specified network to use one NAS - enables/disables forcing a network to use only one NAS;
Network - specify the network (for example: 10.10.0.0/20) if the previous settings is enabled;
Default NAS ID - NAS ID which will be used by default for the network from the previous setting;
Set static IP on connect - if enabled, static IPs will be set to services on connecting.
Link locations - link the customer location to the IP pool location. This will work in a case where, in the customer service, "Any pool" is selected, and all locations will cover different pools;
Use IP pool with "Location = All" - in case if the pool associated with the customer location is not found, we can use Pools with Location = All.
We can specify periodic restarts of the radius server to prevent memory leaks here. The use of this feature is highly recommended.
Enable - enables/disables periodic restarts;
Restart once per - select a period for the periodic restart (day, week, month);
Hour - time when the radius server will be restarted. Recommended time: late at night, midnight or after.
Be attentive - for a brief period unauthorized customers will not be able to log in via Radius. Radius restart usually takes up to 15 seconds.