RADIUSD(8)
β¨ RADIUSD(8) β FreeRADIUS Daemon β¨
okay bestie, sit down, hydrate, because we're about to talk about radiusd β the Authentication, Authorization and Accounting server π this is the FreeRADIUS Daemon and she is, lowkey, the main character of your network.
π SYNOPSIS
radiusd [-C] [-d config_directory] [-D dictionary_directory] [-f] [-h]
[-i ip-address] [-l log_file] [-m] [-n name] [-p port] [-P] [-s] [-t]
[-v] [-x] [-X]
πΈ DESCRIPTION
FreeRADIUS is a high-performance and highly configurable RADIUS server. she's that girl fr fr. she supports so many database back-ends it's giving overachiever: flat-text files, SQL, LDAP, Perl, Python, etc. and she also supports a whole roster of authentication protocols β PAP, CHAP, MS-CHAP(v2), HTTP Digest, and EAP (EAP-MD5, EAP-TLS, PEAP, EAP-TTLS, EAP-SIM, etc.). iconic behavior honestly.
she ALSO has full support for Cisco's VLAN Query Protocol (VMPS) and DHCP. versatile queen π
π«Ά please, please, PLEASE read the DEBUGGING section below. it has instructions for quickly configuring the server for your local system. i'm not being dramatic, it will save your life.
β¨ OPTIONS β¨
the following command-line options are accepted by the server:
-Cβ check the configuration and exit immediately. if there's a problem reading the configuration, the server exits with a non-zero status code. if the configuration looks acceptable, she exits with a zero status code. π
β οΈ okay so there ARE limitations to this check. because almost-starting a RADIUS server is genuinely complicated, these checks are necessarily incomplete. the server can return a zero status code when run with -C, but may still exit with an error when run normally. so like, don't get cocky.
see the output of radiusd -XC for an informative list of which modules are checked for correct configuration, and which modules are skipped β and therefore not checked. iykyk.
-dconfig directory β defaults to/etc/raddb. radiusd looks here for its configuration files, like the dictionary and the users files. π-Ddictionary directory β set the main dictionary directory. defaults to/usr/share/freeradius.-fβ do not fork, stay running as a foreground process. she stays right here with you, no disappearing acts π-hβ print usage help information.-iip-address β defines which IP address the server uses for sending and receiving packets.
if this command-line option is given, then the "bind_address" and all "listen{}" entries in radiusd.conf are ignored. (yes, ignored. girl said "i got it from here" π)
this option MUST be used in conjunction with -p. it's a package deal bestie, no solo acts.
-llog_file β defaults to${logdir}/radius.log. radiusd writes its logging information to this file. if log_file is the string"stdout", logging will be written to stdout. π-mβ onSIGINTorSIGQUIT, exit cleanly instead of immediately. this is most useful for when running the server with"valgrind".-nname β readraddb/name.confinstead ofraddb/radiusd.conf. custom girl, custom file β¨-pport β defines which port is used for receiving authentication packets. accounting packets are received on"port + 1". do the math, it's giving +1 energy.
when this command-line option is given, all "listen" sections in radiusd.conf are ignored.
this option MUST be used in conjunction with -i. same deal as before, they're a matched set π«Ά
-Pβ always write out PID, even with-f.-sβ run in"single server"mode. the server normally runs with multiple threads and/or processes, which can lower its response time to requests. some systems have issues with threading though, so running in"single server"mode may help address those issues. in single server mode, the server will also not"daemonize"(auto-background) itself. she's staying in the room with you π-tβ do not spawn threads.-vβ print server version information and exit.-Xβ debugging mode. equivalent to"-sfxx -l stdout". when you're trying to understand how the server works, ALWAYS run it with"radiusd -X". for production servers, use"raddebug".-xβ finer-grained debug mode. in this mode the server will print details of every request on its stdout output. you can specify this option multiple times (-x -xor-xx) to get more detailed output. the more x's the more tea β
π DEBUGGING
the default configuration is set to work in the widest possible circumstances. it requires minimal changes for your system. thoughtful queen πΈ
however, your needs may be complex, and may require significant changes to the server configuration. making random changes is a guaranteed method of failure. instead, we STRONGLY RECOMMEND proceeding via the following steps:
- always run the server in debugging mode (
radiusd -X) after making a configuration change. we cannot emphasize this enough. if you are not running the server in debugging mode, you will not be able to see what is doing, and you will not be able to correct any problems.
if you ask questions on the mailing list, the first response will be to tell you "run the server in debugging mode". please, follow these instructions. π
- change as little as possible in the default configuration files. the server contains a decade of experience with protocols, databases, and different systems. its default configuration is designed to work almost everywhere, and to do almost everything you need. don't reinvent her, she's already that girl.
- when you make a small change, testing it before changing anything else. if the change works, save a copy of the configuration, and make another change. if the change doesn't work, debug it, and try to understand why it doesn't work.
if you begin by making large changes to the server configuration, it will never work, and you will never be able to debug the problem. no cap π
- if you need to add a connection to a database FOO (e.g. LDAP or SQL), then:
- edit
raddb/modules/foothis file contains the default configuration for the module. it contains comments describing what can be configured, and what those configuration entries mean. - edit
raddb/sites-available/defaultthis file contains the default policy for the server. e.g."enable CHAP, MS-CHAP, and EAP authentication". look in this file for all references to your module"foo". read the comments, and remove the leading hash'#'from the lines referencing the module. this enables the module. - edit
raddb/sites-available/inner-tunnelthis file contains the default policy for the"tunneled"portion of certain EAP methods. perform the same kind of edits as above, for the"default"file. if you are not using EAP (802.1X), then this step can be skipped. - start the server in debugging mode (
radiusd -X), and start testing.
- edit
- ask questions on the mailing list (freeradius-users@lists.freeradius.org). when asking questions, include the output from debugging mode (
radiusd -X). this information will allow people to help you. if you do not include it, the first response to your message will be"post the output of debug mode". they WILL clock you π«Ά
ask questions earlier, rather than later. if you cannot solve a problem in a day, ask a question on the mailing list. most questions have been seen before, and can be answered quickly.
π¦ BACKGROUND
RADIUS is a protocol spoken between an access server, typically a device connected to several modems or ISDN lines, and a radius server. when a user connects to the access server, (s)he is asked for a loginname and a password. this information is then sent to the radius server. the server replies with "access denied", or "access OK". in the latter case login information is sent along, such as the IP address in the case of a PPP connection.
the access server also sends login and logout records to the radius server so accounting can be done. these records are kept for each terminal server separately in a file called detail, and in the wtmp compatible logfile /var/log/radwtmp. receipts, basically π§Ύβ¨
π CONFIGURATION
radiusd uses a number of configuration files. each file has its own manpage describing the format of the file. these files are:
radiusd.confβ the main configuration file, which sets the administrator-controlled items. the head honcho πdictionaryβ this file is usually static. it defines all the possible RADIUS attributes used in the other configuration files. you don't have to modify it. it includes other dictionary files in the same directory. leave her alone, she's fine πhintsβ defines certain hints to the radius server based on the user's loginname or other attributes sent by the access server. it also provides for mapping user names (such asPusername->username). this provides the functionality that the Livingston 2.0 server has as"Prefix"and"Suffix"support in the users file, but is more general. of course the Livingston way of doing things is also supported, and you can even use both at the same time (within certain limits).huntgroupsβ defines the huntgroups that you have, and makes it possible to restrict access to certain huntgroups to certain (groups of) users. gatekeeping, but make it intentional β¨usersβ here the users are defined. on a typical setup, this file mainly containsDEFAULTentries to process the different types of logins, based on hints from the hints file. authentication is then based on the contents of the UNIX/etc/passwdfile. however it is also possible to define all users, and their passwords, in this file.
π SEE ALSO
radiusd.conf(5), users(5), huntgroups(5), hints(5), dictionary(5), raddebug(8)
π AUTHOR
The FreeRADIUS Server Project (http://www.freeradius.org)
and that's the whole page bestie π«Ά this one's from the FreeRADIUS Daemon era, dated 26 Apr 2012, and yes she's still serving RADIUSD(8) energy to this day. go run her with -X, drink some water, and slay πβ¨
π¦ where this page comes from
- alpine 3.22: freeradius-doc 3.0.27-r1 Β· GPL-2.0-or-later
- alpine 3.23: freeradius-doc 3.0.27-r2 Β· GPL-2.0-or-later
- alpine 3.24: freeradius-doc 3.0.27-r3 Β· GPL-2.0-or-later
- arch rolling: freeradius 3.2.10-4 Β· GPL-2.0-or-later
- centos-stream 10: freeradius 3.2.8-2.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 9: freeradius 3.0.27-4.el9 Β· GPLv2+ and LGPLv2+
- fedora 43: freeradius 3.2.7-6.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius 3.2.7-6.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius 3.2.8-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius 3.2.8-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: freeradius 3.2.8-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: freeradius 3.2.8-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms