| 1 |
1. INTRO |
| 2 |
|
| 3 |
The FreeRADIUS Server Project is a high performance and highly |
| 4 |
configurable multi-protocol policy server, supporting RADIUS, DHCPv4 |
| 5 |
and VMPS. It is available under the terms of the GNU GPLv2. |
| 6 |
|
| 7 |
All code in this server was written for this project. |
| 8 |
|
| 9 |
|
| 10 |
2. INSTALLATION |
| 11 |
|
| 12 |
See the INSTALL file, in the parent directory. |
| 13 |
|
| 14 |
|
| 15 |
3. CONFIGURATION FILES |
| 16 |
|
| 17 |
Much of the server documentation is included only in the comments in the |
| 18 |
configuration files. Reading the configuration files is REQUIRED to fully |
| 19 |
understand how to create complex configurations of the server. |
| 20 |
|
| 21 |
3a. 'clients.conf' |
| 22 |
|
| 23 |
Make sure the clients (NAS, switches, access points etc) are set up to |
| 24 |
use the host radiusd is running on as authentication and accounting host. |
| 25 |
Configure these clients with a "radius secret", which should also be |
| 26 |
entered into the client definition in /etc/raddb/clients.conf. |
| 27 |
See also the manual page for clients.conf(5). |
| 28 |
|
| 29 |
3b. 'users' |
| 30 |
|
| 31 |
Users may be defined in the "users" file (raddb/mods-config/files/authorize). |
| 32 |
All entries are processed in the order as they appear in the file. |
| 33 |
If an entry matches the username, radiusd will stop scanning the users |
| 34 |
file (unless the attribute "Fall-Through = Yes" is set). |
| 35 |
|
| 36 |
You can uses spaces in usernames by escaping them with \ or by using |
| 37 |
quotes. For example, "joe user" or joe\ user. |
| 38 |
|
| 39 |
The 'users' file is read by the "rlm_files" module. |
| 40 |
|
| 41 |
3c. NEW RADIUS ATTRIBUTES (to be used in the USERS file). |
| 42 |
|
| 43 |
Name Type Descr. |
| 44 |
---- ---- ------ |
| 45 |
Simultaneous-Use integer Max. number of concurrent logins |
| 46 |
Fall-Through integer Yes/No |
| 47 |
Login-Time string Defines when user may login. |
| 48 |
Current-Time string Allows you to perform time-based |
| 49 |
checks when a request is received. |
| 50 |
|
| 51 |
Login-Time defines the time span a user may login to the system. The |
| 52 |
format of a so-called time string is like the format used by UUCP. |
| 53 |
A time string may be a list of simple time strings separated by "|" or ",". |
| 54 |
|
| 55 |
Each simple time string must begin with a day definition. That can be just |
| 56 |
one day, multiple days, or a range of days separated by a hyphen. A |
| 57 |
day is Mo, Tu, We, Th, Fr, Sa or Su, or Wk for Mo-Fr. "Any" or "Al" |
| 58 |
means all days. |
| 59 |
|
| 60 |
After that a range of hours follows in hhmm-hhmm format. |
| 61 |
|
| 62 |
For example, "Wk2305-0855,Sa,Su2305-1655". |
| 63 |
|
| 64 |
radiusd calculates the number of seconds left in the time span, and |
| 65 |
sets the Session-Timeout to that number of seconds. So if someones |
| 66 |
Login-Time is "Al0800-1800" and she logs in at 17:30, Session-Timeout |
| 67 |
is set to 1800 seconds so that she is kicked off at 18:00. |
| 68 |
|
| 69 |
|
| 70 |
4. LOG FILES |
| 71 |
|
| 72 |
4a. /var/log/radius/radutmp |
| 73 |
|
| 74 |
In this file the currently logged in users are held. The program "radwho" |
| 75 |
reads this file and gives you a summary. Rogue sessions can be deleted |
| 76 |
from this file with the "radzap" program. |
| 77 |
|
| 78 |
4b. /var/log/radius/radwtmp |
| 79 |
|
| 80 |
This file is "wtmp" compatible and keeps a history of all radius logins/ |
| 81 |
logouts. This file can be read with the "last" program, and other Unix |
| 82 |
accounting programs (such as "ac" and "sac") can be used to produce a |
| 83 |
summary. |
| 84 |
|
| 85 |
4c. /var/log/radius/radius.log |
| 86 |
|
| 87 |
All RADIUS informational, diagnostic and error messages are logged in |
| 88 |
this file, including all login attempts. |
| 89 |
|
| 90 |
4d. /var/log/radius/radacct/<client_ip>/detail |
| 91 |
|
| 92 |
This is the original radius logfile, as written by all the Livingston |
| 93 |
radius servers. It's only created if the directory |
| 94 |
/var/log/radius/radacct exists. |
| 95 |
|
| 96 |
For more configuration options on the detail file please see |
| 97 |
raddb/mods-available/detail as it expands upon this greatly. |
| 98 |
|
| 99 |
|
| 100 |
5. MORE INFO, SUPPORT |
| 101 |
|
| 102 |
The latest version of FreeRADIUS is always available from |
| 103 |
the git repository hosted on GitHub at |
| 104 |
|
| 105 |
https://github.com/FreeRADIUS/freeradius-server |
| 106 |
|
| 107 |
or see |
| 108 |
|
| 109 |
http://freeradius.org/git/ |
| 110 |
|
| 111 |
for more information. |
| 112 |
|
| 113 |
There are two mailing lists for users and developers. General |
| 114 |
user, administrator and configuration issues should be discussed |
| 115 |
on the users list at: |
| 116 |
|
| 117 |
http://lists.freeradius.org/mailman/listinfo/freeradius-users |
| 118 |
|
| 119 |
When asking for help on the users list, be sure the include a |
| 120 |
detailed and clear description of the problem, together with |
| 121 |
full debug output from FreeRADIUS, obtained by running |
| 122 |
|
| 123 |
radiusd -X |
| 124 |
|
| 125 |
Developers only discussion is to be had on the devel list: |
| 126 |
|
| 127 |
http://lists.freeradius.org/mailman/listinfo/freeradius-devel |
| 128 |
|
| 129 |
Please do not raise general configuration issues here. |
| 130 |
|
| 131 |
|
| 132 |
6. OTHER INFORMATION |
| 133 |
|
| 134 |
The files in other directories are: |
| 135 |
|
| 136 |
debian/ Files to build Debian Linux packages. |
| 137 |
|
| 138 |
doc/ Various snippets of documentation |
| 139 |
doc/rfc/ Copies of the RFC's. If you have Perl, do a 'make' in |
| 140 |
that directory, and look at the HTML output. |
| 141 |
|
| 142 |
man/ Unix Manual pages for the server, configuration files, |
| 143 |
and associated utilities. |
| 144 |
|
| 145 |
mibs/ SNMP Mibs for the server. |
| 146 |
|
| 147 |
raddb/ Default configuration files for the server. |
| 148 |
|
| 149 |
redhat/ Files to build RedHat RPM packages. |
| 150 |
|
| 151 |
scripts/ Sample scripts for startup and maintenance. |
| 152 |
|
| 153 |
share/ Attribute dictionaries. |
| 154 |
|
| 155 |
src/ Source code |
| 156 |
src/main source code for the daemon and associated utilities |
| 157 |
src/lib source code for the RADIUS library |
| 158 |
src/include header files |
| 159 |
src/modules dynamic plug-in modules |
| 160 |
src/tests test harness used by "make test" |
| 161 |
|
| 162 |
suse/ Files to build SuSE RPM packages. |
| 163 |
|
| 164 |
|
| 165 |
If you have ANY problems, concerns, or surprises when running |
| 166 |
the server, then run it in debugging mode, as root, from the |
| 167 |
command line: |
| 168 |
|
| 169 |
# radiusd -X |
| 170 |
|
| 171 |
It will produce a large number of messages. The answers to many |
| 172 |
questions, and the solution to many problems, can usually be found in |
| 173 |
these messages. |
| 174 |
|
| 175 |
For further details, see: |
| 176 |
|
| 177 |
https://freeradius.org/documentation/ |
| 178 |
|
| 179 |
and the 'bugs' file, in this directory. |
| 180 |
|
| 181 |
$Date$ |