⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radiusd.8.man

📁 This program is a RADIUS RFC-compliant daemon, which is derived from original Livingston Enterprise
💻 MAN
字号:
'\" t.\" Copyright (c) 2004 Francesco Paolo Lovergine <frankie@debian.org>.\" See copyright section for conditions of redistribution.\" $Id: radiusd.8.man,v 1.5.2.1 2004/08/02 18:40:06 flovergine Exp $.\".TH RADIUSD 8 "Aug 25, 2004"  "1.1" "Yard Radius Manual".SH NAMEradiusd \- Yet Another Radius Daemon (YARD RADIUS).SH SYNOPSIS.B radiusd " [".BR \-AbchoPsvxz " ] [".B "\-a ".IR acct_dir " ] [".B "\-d ".IR db_dir " ] [".B "\-f ".IR alt_passwd_file " ] [".B "\-i ".IR ip_addr " ] [".B "\-l ".IR log_file " ] [".B "\-p " .IR udp_port " ] [".B "\-q ".IR max_outstanding_reqs  " ] [".B "\-t ".IR max_queue_secs " ] [".B "\-w ".IR max_proxy_secs " ]".SH DESCRIPTIONYARD.B radiusdis a program that provides authorization and accounting services forremote hosts, based on RADIUS protocols.RADIUS protocols are defined in a pair of RFC documents and currently used by the majority of network access servers and routersin order to manage incoming dialup connections. Open source products of RADIUS clients are also available for general use on *nix hosts..PYARD RADIUS daemon is largerly based on the original Livingston Inc. RADIUS 2.1 daemon (currently known as Lucent Inc. Remote Access RADIUS server 2.1 \- Livingston Inc. is now disappeared...). It enhances the original code with a number of useful features, such ascontrol of simultaneous logins, support of many non standard vendor clients,autoconfiguration capabilities, PAM services, MD5 passwords, etc.All them are very useful in real world area of application (e.g. ISPs).A complete and up-to-date list of extensions currently present in YARD RADIUS is available in the Changelog file, which should be enclosedin sources..PThe daemon listens to a couple of non privileged UDP ports (1645 and 1646)and possibly to other two ones (1815 and 1816), when proxy is enabled.Those ports could also be changed at run-time, but you are not encouragedto do this. If your authorization information are available either as a separate passwd file or self-contained in  .BR usersfile (i.e. in some form independent from system passwd file, see below) you could run .B radiusdas a non privileged users..PAll configuration files of YARD RADIUS are contained under .IR PREFIX/conf directoryif not spe.SH OPTIONS.TP.BR "\-a " acct_dirSets the accounting directory instead of the builtin default.The default is choosen at configuration time and it is generally.I PREFIX/logs.TP.B \-AEnable accounting via PAM. See below..TP.B \-bUses GDBM for the users file (.I users.db) instead of the plain text version (.I users)This improve performances of users file checking for authentication.It's strongly suggested. But it's not completely equivalent to plaintext, because GDBM files are strictly unsorted. This could beok or not, it depens on your specific choices of attributes.You need to run .B builddbmto convert the plain .I usersfile in the GDBM indexed file and this needsto be done every time you changes users file contents..TP.B \-cClears user stats database. This should be done to solve troublesdue to unsynchonized status among the servers and one or more ofits clients. Mabye, after a cold-reboot of an access server..TP.BR "\-d " db_dirSets the database directory instead of the builtin default one.The default is choosen at configuration time and it is generally .B PREFIX/logs..TP.B \-hPrints out usage of the command..TP.BR "\-f " alt_passwd_fileSets an alternate password file name to use instead of the system passwordfile .B /etc/passwd..TP.BR "\-i " ip_addrSets an alternate IP for the server host, instead of the default one.This is useful if the host on which the daemon is runnig has multiple interfaces or ip aliases..TP.BR "\-l " log_fileSets a logging text file, to use instead of .BR syslog ..TP.B \-oAccept all-zero accounting requests authenticator.A damned thing to use with some old non-RFC compliant clients. Use this if you see this kind of errors in the logging file, only..TP.BR "\-p " udp_portSet an alternate radius port number. Default ports should be (optionally) defined in .B /etc/services as follows:.TSl l.Name	Port_radius	1645/udpradacct	1646/udpradius-proxy	1815/udpradacct-proxy	1816/udp.TEIf they are not in that file, the above ones are used. If you specify the port `n' as the argument of .BR "\-p " "option, then".B radiusd tries to use the following ports:.TSl l.Name	Port_radius	n/udpradacct	n+1/udpradius-proxy	n+5/udpradacct-proxy	n+6/udp.TE.TP.B \-PEnable authorization via PAM. See below..TP.BR "\-q " max_outstanding_reqsSets the incoming packets queue size. 100 is the default..TP.B \-sForks another process for accounting.This is not generally suggested, due to dependencies among auth and acct modules in YARD.B radiusd ..TP.BR "\-t " max_queue_secsSet time out for requests queue..TP.B \-vPrint version. It shows also enabled features. Version number should bea group of three point-separated numbers, such as .B major.minor.patchwhere meaning of the three values should be obvious. It's not easy to definea `major' advancement in respect of a `minor' one. Anyway, any minor/major number should correspond to a different branch in the CVS repository. This is not true for a patching release..TP.B "\-w " max_proxy_secsSet time out for proxy requests..TP.B \-xSet debug mode on. It increases verbosity level..TP.B \-zThe same of .BR "\-b \-x \-d . \-a ra" . This is intended for debugging..P.SH FILES.B radiusdrequires a group of configuration files under .I PREFIX/conf in order to properly work. Examples of thoseworking files are provided with sources and should be present under the same directory, with extension .IR .example .All files are well commented and it should be easy to customize them.The work files are the following ones:.TP.I PREFIX/conf/usersThis file contains the human readable information for users' accountingand authorization. See .BR radius_attributes (5)for details about its syntax..TP.I PREFIX/conf/users.dbThe same of the previous one as compiled in by.B builddbmin GDBM format. It needs to be compiled again every time you makechanges to the previous one and without restarting .B radiusd ..TP.I PREFIX/conf/dictionaryThis read-only file contains the codes and formats for standard and vendor RADIUS protocol attributes and values along with their human readable representation. It is subject to change, due tonew access server supports. It is a plain text file with a pletoraof comments in it..TP.I PREFIX/conf/clientsIt contains names or ip addresses of remote clients authorized to use the server for authentication and accounting,.IR "along with their passwords in clear text" .So this file should be protected with mode 600..TP.I PREFIX/conf/clcacheThe same of the previous file as cached in GDBM format for fast accessat daemon startup. With the same recommendations for file access modes..TP.I PREFIX/conf/proxyThis file is used to collect proxy hosts and their associated realms and passwords. It contains  a list of remote servers to forward toauthentication and accounting requests.Every line refers to a different proxy server: the first field is avalid hostname or ip address; the second field (seperated by blanks ortabs) is the shared secret); the third field is the named or numericauthentication realm; the fourth field can contain the optional RADIUSUDP Port number of the remote server, the RADIUS and RADIUS AccountingPort numbers, and any of following optional keywords:.TSl lw42.old	T{Strip realm and do not attach Proxy-State when forwardingT}secure	T{Allow remote server to authorize admin logins for your clientT}ipass	T{Use the ipass protocolT}.TEThe realm string must follow an `@' sign after the username to identifythe correct proxy server..TP.I PREFIX/conf/allowuserYou can list here (one per line) usernames/groupnames whoare granted for having access (if their password are correct). Each entry must respect one of the following syntaxes:.TSl l.USER:	<username>GROUP:	<groupname>GECOS:	<string>SHELL:	<string>.TEso you can match users by usernames, groupnames, gcossubstrings (i.e. case-sensitive sub-strings in the fifth fieldof the system /etc/passwd file or the alternate password file),or shell paths. You can use the special string `ANY' as a matchingargument too (e.g. `USER: ANY'). An empty or missing file grantsaccess to anyone which is not listed in the next file..TP.I PREFIX/conf/denyuserThe same syntax of allowuser can be used to deny access tospecific classes of users, with the same previous matching criteria. An empty or missing file grants access to anyonewhich is listed in the previous file or not..PNote that all users have always to match their password with theauthorization module selected in their `users' file entry, after theabove files allowed to login. You cannot use these filesto grant access without any other additional authentication..TP.I PREFIX/conf/stopuserThis text file is created by .B radwatch to deny access to users,when certain conditions are reached (as selected in the radwatchconfiguration file). The authentication daemon .B radiusdconsults that file along with `denyuser' in order to grant access or not.It has an entry per line, which should be a valid system or `users'username..TP.I PREFIX/conf/radwatch.confThis is the configuration file for .BR radwatch .It is a text files each line of which is of the form:.I "user_list:restriction:time_list"where `user_list' is a comma-separated list of usernames for whichthis line apply. You can use @group syntax to denote the standard UNIX user groups. The field `restriction' is the value in seconds of themaximum permitted online time within the `time_list'. This one is thethird colon separated fieldand is a list of days of the week and times during which thisrestriction apply to this user. The valid days are 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', and 'Sa'. In addition, the value 'Al'represents all 7 days, and 'Wk' represents the 5 weekdays.Times are given as HHMM-HHMM.  The ending time may be beforethe starting time.  Days are presumed to wrap at 0000..TP.I PREFIX/conf/config.aegThis text file contains the configuration information necessary for .B radiusdto connect to the ActivEngine, which is the .BR "ActivCard " "Authentication Server."See comments contained in theexample file provided for details..SH "LOGGING FILES"All logging and accounting files of YARD RADIUS are stored under `PREFIX/logs'. Accounting files are organized on a per-monthand per-year basis. All files written by Livingston's server arealso written by YARD, but it also creates some specific binary files to storethe on-line status of users, and collect users statistics.It's important to ensure that those files are synchronized with the realstatus of the clients, to avoid annoying denial-of-service troubles to your users (e.g. in conjunction with a Yard-Simultaneuous-Use attribute). This could happen when one or more clients reboots withoutsending suitable stop accouting records before. In those cases, YARD has to be killed too and restarted with a `clean up' argument `-c', in orderto reset its internal status.The logging file structure is as follows:.TSl l.<year>/user-stats	GDBM yearly file<year>/radlast-XX	Binary compact monthly file<nas>/<year>/detail-XX	Livingston-like logging text file.TEThis allows very fast computing of statistics and maintaining on-line status..SH BUGSBugs? What's a bug?.SH "SEE ALSO".BR builddbm (8),.BR radlast (1),.BR radlist (1),.BR radtest (1),.BR radwatch (1),.BR radius_attributes (5),.BR gdbm (3).SH AUTHORFrancesco Paolo Lovergine <francesco@yardradius.org>..PA complete list of contributors is contained in CREDITS file. You should get that file among other ones within your distribution and possibly installed under.BR "PREFIX/docs " directory.SH COPYRIGHTCopyright (C) 1992-1999 Lucent Inc. All rights reserved..PCopyright (C) 1999-2004 Francesco Paolo Lovergine. All rights reserved..PSee the LICENSE file enclosed within this software for conditions of use and distribution. This is a pure .B "ISO BSD Open Source License" ..SH NOTESThe configuration of a RADIUS server is an argument too long todeal with it here. Please, refer to the official Livingston documentation, which includes the .IR "RADIUS for UNIX Administrator's Guide" . It is freely available at .I http://www.livingston.com/tech/docs/manuals.htmlat the time of this document. .PIt's a very good point to start with.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -