RADIUS server files are stored in the raddb (RADIUS database) directory, typically /etc/raddb. This directory contains files and subdirectories as shown:
/etc/raddb/clients /dictionary /menus/menu1 /menu2 /... /users
The RADIUS server uses the UDP protocol, and listens for UDP packets on port 1645. When the radiusd daemon is executed to start the RADIUS server, the RADIUS accounting server is spawned as a child process; it listens for UDP packets on port 1646.
To configure RADIUS user information, see "Configuring User Information." To configure RADIUS accounting, see "RADIUS Accounting."
RADIUS may be installed with or without the pminstall utility. pminstall is shipped on the PortMaster Software CD; it is designed to automate the installation of PortMaster software.
To install RADIUS using pminstall, complete the following steps.
% /usr/portmaster/pminstall 1. PortMaster Internet Address Setup 2. Host Installation 3. PortMaster Upgrade 4. Host Upgrade 5. Install RADIUS 6. Exit Please select an option from above: 5
Database installation directory (/etc/raddb): RADIUS accounting log directory (/usr/adm/radacct): Directory to install radiusd in (/etc):
/etc/radiusd
For a list of optional flags for the radiusd command, see Table 2-1.
Note - radiusd is a stand-alone process; it cannot be run from /etc/inetd.conf.
To install RADIUS without pminstall, complete the following steps.
Note - Pushing the maps updates the database to include recently-entered information. Use the make mapname command on the NIS Master. For more details, consult your UNIX system documentation.
radius 1645/udp radiusd radacct 1646/udp
umask 022 mkdir /etc/raddb /usr/adm/radacct chmod 700 /etc/raddb /usr/adm/radacct
The above commands create two directories, raddb and radacct. All RADIUS files (except the radiusd executable) are stored in the /etc/raddb directory. The radacct directory is used to store RADIUS accounting logs.
The umask and chmod commands affect the raddb and radacct directory permissions; root access is required for read, write, and execute privileges.
Caution - If you are upgrading from an existing installation of RADIUS 2.0, save the files in /etc/raddb before performing Step 6.
cp -r /cdrom/lei/unix/radius/raddb/* /etc/raddb
cp /cdrom/lei/unix/platform/radiusd /etc/radiusd cp /cdrom/lei/unix/platform/builddbm /etc/raddb/builddbm
/etc/radiusd
Note - radiusd is a stand-alone process; it cannot be run from /etc/inetd.conf.
radiusd may be used with any of the following flags:
# # Start RADIUS # if [ -f /etc/radiusd ]; then echo "RADIUS" /etc/radiusd fi
Note - radiusd does not need to be restarted each time the clients or users files are modified. The daemon only needs to be restarted when the dictionary file is modified.
The /etc/raddb/clients file stores information about RADIUS clients, including each client's name or IP address and its shared secret.
clients is a flat text file; to add a client, enter the client's name or IP address and the shared secret. To add a comment, preface the desired line with the # sign.
Shared secrets must consist of 15 or fewer alphanumeric characters. There is no limit to the number of clients that may be added to this file.
Examples of client names and shared secrets are displayed below.
#Client Name Key #-------------------------------------- portmaster1 wP40cQ0 portmaster2 A3X445A 192.168.1.2 wer369st
As the clients file contains the shared secrets for the RADIUS clients, only root should have read and write access to the file.
-rw------- 1 root daemon 802 Jul 15 00:21 /etc/raddb/clients
Continue to "RADIUS Client Configuration" to configure the PortMaster as a RADIUS client.
/ Prev / Next / TOC / Preface / Overview / Server / Client / User / Menu / SecurID / Accounting / Troubleshooting /