📄 radrelay.conf.5
字号:
.\" # DS - begin display.de DS.RS.nf.sp...\" # DE - end display.de DE.fi.RE.sp...TH radrelay.conf 5 "27 May 2005" "" "FreeRADIUS configuration file".SH NAMEradrelay.conf \- configuration file for the FreeRADIUS server "radrelay" personality.SH DESCRIPTIONThe \fBradrelay.conf\fP file resides in the radius database directory,by default \fB/etc/raddb\fP. It defines the global configuration forthe FreeRADIUS server, when the server is operating as "radrelay"..SH "FILE FORMAT"For a detailed description of the file format, see "man radiusd.conf".The configuration entries are much the same for radrelay.conf, with afew differences as noted here..SH "REPLICATION FOR BACKUPS"Many sites run multiple radius servers; at least one primary and onebackup server. When the primary goes down, most NASes detect that andswitch to the backup server.That will cause your accounting packets to go the the backup server -and some NASes don't even switch back to the primary server when itcomes back up.The result is that accounting records are missed, and/or theadministrator must jump through hoops in order to combine thedifferent detail files from multiple servers. It also means that thesession database ("radutmp", used for radwho and simultaneous usedetection) gets out of sync.radrelay solves this issue by "relaying" packets from one server toanother, so they both have the same set of accounting data..SH "BUFFERING FOR HIGH-LOAD SERVERS"If the RADIUS server suddenly receives a many accounting packets,there may be insufficient CPU power to process them all in a timelymanner. This problem is especially noticable when the accountingpackets are going to a back-end database.Similarly, you may have one database that tracks "live" sessions, andanother that tracks historical accounting data. In that case,accessing the first database is fast, as it is small. Accessing thesecond database many be slower, as it may contain multiple gigabytesof data. In addition, writing to the first database in a timelymanner is important, while data may be written to the second databasewith a few minutes delay, without any harm being done..SH "RELAYING OF ACCOUNTING PACKETS"The \fBradrelay.conf\fP file controls the "radrelay" personality ofthe server, which can perform both of the functions above at the sametime..SH USAGEFirst, you should configure the main radius server to log to an extra,single detail file. This may be done by adding an extra instance ofthe detail module to \fBradiusd.conf\fP:For example:.DS detail radrelay-detail {.br detailfile = ${radacctdir}/radrelay/detail.br detailperm = 0600.br dirperm = 0755.br locking = yes.br }.br ....br accounting {.br ....br radrelay-detail.br ....br }.br.DEThis configuration will cause accounting packets to be logged to the\fI${radacctdir}/radrelay/detail\fP file. This file should not berotated by standard log rotation scripts, as the \fBradrelay\fPprogram will read and rotate it..SH RADRELAY.CONF EXAMPLESee the \fBradrelay.conf\fP file for detailed instructions onconfiguration entries, what they mean, and how to use them.To have the "radrelay" portion of the server read the above detailfile, configure \fBradrelay.conf\fP with the following section:.DS.br listen {.br type = detail.br detail = ${radacctdir}/radrelay/detail.br max_outstanding = 100.br identity = radrelay.br }.br.DEThe server will read the accounting packets from the detail file, andprocess them just as if it had received them from the NAS. Therefore,you should configure the "accounting" section of \fBradrelay.conf\fPto write the accounting records to an "sql" module, or to proxy themto another RADIUS server.Then, start the server via the following command:$ radiusd -n radrelayThe server should start up, read the detail file, and processaccounting packets from it..SH NOTESThe \fBradiusd.conf\fP file is not read at all when the server isrunning as radrelay. Please edit \fBradrelay.conf\fP..SH CREDITSThe original "radrelay" program was written by Miquel van Smoorenburgfor the Cistron radius project, and ported to FreeRADIUS by SimonEkstrand. The "radsqlrelay" was written by Kostas Kalavras. It wasnever released as part of an offical FreeRADIUS release, but served asa basis for the design of this implementation..PP.SH FILES/etc/raddb/radrelay.conf.SH "SEE ALSO".BR radiusd (8),.BR radiusd.conf (5).SH AUTHORAlan DeKok <aland@ox.org>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -