-
Notifications
You must be signed in to change notification settings - Fork 3
RADIUS configuration
Thibaut edited this page Apr 22, 2024
·
3 revisions
For proper RADIUS operation, a dictionary file must be provided to libradcli in /etc/radcli/dictionary
. By default, no dictionary is provided by the OpenWrt libradcli package.
Examples can be found in https://github.com/radcli/radcli/tree/master/etc
To handle common ChilliSpot/WISPr attributes, the following extra dictionaries must be created (and included from /etc/radcli/dictionary
):
/etc/radcli/dictionary.WISPr
:
VENDOR WISPr 14122 WISPr
ATTRIBUTE WISPr-Location-ID 1 string WISPr
ATTRIBUTE WISPr-Location-Name 2 string WISPr
ATTRIBUTE WISPr-Logoff-URL 3 string WISPr
ATTRIBUTE WISPr-Redirection-URL 4 string WISPr
ATTRIBUTE WISPr-Bandwidth-Min-Up 5 integer WISPr
ATTRIBUTE WISPr-Bandwidth-Min-Down 6 integer WISPr
ATTRIBUTE WISPr-Bandwidth-Max-Up 7 integer WISPr
ATTRIBUTE WISPr-Bandwidth-Max-Down 8 integer WISPr
ATTRIBUTE WISPr-Session-Terminate-Time 9 string WISPr
ATTRIBUTE WISPr-Billing-Class-Of-Service 11 string WISPr
/etc/radcli/dictionary.chilispot
:
VENDOR ChilliSpot 14559 ChilliSpot
ATTRIBUTE ChilliSpot-Max-Input-Octets 1 integer ChilliSpot
ATTRIBUTE ChilliSpot-Max-Output-Octets 2 integer ChilliSpot
ATTRIBUTE ChilliSpot-Max-Total-Octets 3 integer ChilliSpot
ATTRIBUTE ChilliSpot-Bandwidth-Max-Up 4 integer ChilliSpot
ATTRIBUTE ChilliSpot-Bandwidth-Max-Down 5 integer ChilliSpot
ATTRIBUTE ChilliSpot-Config 6 string ChilliSpot
ATTRIBUTE ChilliSpot-Lang 7 string ChilliSpot
ATTRIBUTE ChilliSpot-Version 8 string ChilliSpot
ATTRIBUTE ChilliSpot-OriginalURL 9 string ChilliSpot
ATTRIBUTE ChilliSpot-UAM-Allowed 100 string ChilliSpot
ATTRIBUTE ChilliSpot-MAC-Allowed 101 string ChilliSpot
ATTRIBUTE ChilliSpot-Interval 102 integer ChilliSpot
These files are provided in files/etc/radcli but aren't packaged to avoid potential conflicts with custom RADIUS configurations.
A typical way to include them from /etc/radcli/dictionary
is to append the following lines at the end of that file:
$INCLUDE /etc/radcli/dictionary.chillispot
$INCLUDE /etc/radcli/dictionary.WISPr