RADIUSD(8)
β¨ RADIUSD(8) β¨
okay so bestie, welcome to the FreeRADIUS Daemon page π this is radiusd(8), the main character of the whole FreeRADIUS situation. buckle up, she's iconic π
πΈ NAME πΈ
radiusd β the Authentication, Authorization and Accounting server, aka the bouncer, the clipboard girlie, and the accountant all in one π«Ά
π¦ 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, no cap. she supports so many database back-ends it's honestly giving overachiever: flat-text files, SQL, LDAP, Perl, Python, etc. πβ¨
and the authentication protocols?? literally a whole roster: PAP, CHAP, MS-CHAP(v2), HTTP Digest, and EAP (that's EAP-MD5, EAP-TLS, PEAP, EAP-TTLS, EAP-SIM, etc. β she does the whole alphabet fr fr π ).
she also has full support for Cisco's VLAN Query Protocol (VMPS) and DHCP. versatile queen π
bestie pls actually read the DEBUGGING section below. it has the instructions for quickly configuring the server for your local system and it will save your whole 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 appears acceptable, she exits with a zero status code. and yes, there are limitations to this check β because almost-starting a RADIUS server is so 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. check the output ofradiusd -XCfor the informative list of which modules get checked for correct configuration, and which get skipped (and therefore not checked) π-dconfig directory β defaults to/etc/freeradius.Radiusdlooks here for its configuration files such as thedictionaryand theusersfiles ποΈ-Ddictionary directory β set main dictionary directory. defaults to/usr/share/freeradiusπ-fβ do not fork, stay running as a foreground process π§βοΈ-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 inradiusd.confare ignored π« this option MUST be used in conjunction with-p. periodt.-llog_file β defaults to${logdir}/radius.log.Radiusdwrites its logging information to this file π if log_file is the string"stdout"then logging gets written to stdout instead, cute π-mβ onSIGINTorSIGQUIT, exit cleanly instead of immediately. most useful when you're running the server with"valgrind"π§-nname β readfreeradius/name.confinstead offreeradius/radiusd.confπ-pport β defines which port is used for receiving authentication packets. accounting packets are received on"port + 1"π’ when this command-line option is given, all"listen"sections inradiusd.confare ignored π« this option MUST be used in conjunction with-i. again. periodt.-Pβ always write out PID, even with-fπ-sβ run in"single server"mode. normally the server runs with multiple threads and/or processes, which can lower its response time to requests. some systems have issues with threading though, so"single server"mode may help address those issues π οΈ in single server mode, the server will also not"daemonize"(auto-background) itself πΆβοΈ-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"instead β οΈ-xβ finer-grained debug mode. in this mode the server prints details of every request on its stdout output π you can specify this option multiple times (-x -xor-xx) to get more detailed output. stack 'em bestie πβ¨
π₯ DEBUGGING π₯
the default configuration is set to work in the widest possible circumstances π it requires minimal changes for your system. lowkey a gift.
but your needs may be complex, and may require significant changes to the server configuration. and 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 it 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 β¨
- when you make a small change, test 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 π
- if you need to add a connection to a database FOO (e.g. LDAP or SQL), then:
- edit
freeradius/modules/fooβ this file contains the default configuration for the module. it contains comments describing what can be configured, and what those configuration entries mean π - edit
freeradius/sites-available/defaultβ this 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
freeradius/sites-available/inner-tunnelβ this 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"π 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 π
π§ 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 π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 ποΈ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 π―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) β go read them bestie, iykyk π«Ά
π AUTHOR π
The FreeRADIUS Server Project (http://www.freeradius.org) β literal icons, we stan π
and that's the whole page babes π
this was the RADIUSD(8) manual from the FreeRADIUS Daemon, dated 26 Apr 2012 β¨ slay, go run radiusd -X and hydrate π§π
π¦ where this page comes from
- debian bookworm: freeradius-common 3.2.1+dfsg-4+deb12u1 Β· GPL-2.0-or-later
- debian trixie: freeradius-common 3.2.7+dfsg-1+deb13u2 Β· GPL-2.0-or-later
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3 Β· GPL-2.0-or-later
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3.3 Β· GPL-2.0-or-later
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3.4 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.3+dfsg-2build7 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.5+dfsg-3~ubuntu24.04.1 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.5+dfsg-3~ubuntu24.04.3 Β· GPL-2.0-or-later
- ubuntu questing: freeradius-common 3.2.7+dfsg-1ubuntu2
- ubuntu resolute: freeradius-common 3.2.8+dfsg-1ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: freeradius-common 3.2.10+dfsg-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms