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

📄 radclient.1

📁 radius协议的经典实现
💻 1
字号:
.TH RADCLIENT 1 "22 June 2004" "" "FreeRADIUS Daemon".SH NAMEradclient - send packets to a RADIUS server, show reply.SH SYNOPSIS.B radclient.RB [ \-d.IR raddb_directory ].RB [ \-c.IR count ].RB [ \-f.IR file ].RB [ \-i.IR id ].RB [ \-r.IR num_retries ].RB [ \-s ].RB [ \-S.IR shared_secret_file ].RB [ \-t.IR timeout ].RB [ \-qvx ]\fIserver {acct|auth|status|disconnect} secret\fP.SH DESCRIPTION\fBradclient\fP is a radius client program. It can send arbitrary radiuspackets to a radius server, then shows the reply. It can be used totest changes you made in the configuration of the radius server,or it can be used to monitor if a radius server is up..PP\fBradclient\fP reads radius attribute/value pairs from it standardinput, or from a file specified on the command line. It then encodesthese attribute/value pairs using the dictionary, and sends themto the remote server..PPThe \fIUser-Password\fP attribute is automatically encrypted by \fIradclient\fP..SH OPTIONS.IP \-c\ \fIcount\fPSend each packet \fIcount\fP times.\fI/etc/raddb\fP..IP \-d\ \fIraddb_directory\fPThe directory that contains the RADIUS dictionary files. Defaults to\fI/etc/raddb\fP..IP \-f\ \fIfile\fPFile to read the attribute/value pairs from. If this is not specified,they are read from stdin..IP \-i\ \fIid\fPUse \fIid\fP as the RADIUS request Id..IP \-qGo to quiet mode, and do not print out anything..IP \-r\ \fInum_retries\fPTry to send each packet \fInum_retries\fP times, before giving up onit.  The default is 10..IP \-s\Print out some summaries of packets sent and received..IP \-S\ \fIshared_secret_file\fPRather than reading the shared secret from the command-line (where itcan be seen by others on the local system), read it instead from\fIshared_secret_file\fP..IP \-t\ \fItimeout\fPWait \fItimeout\fP seconds before deciding that the NAS has notresponded to a request, and re-sending the packet.  The defaulttimeout is 3..IP \-vPrint out version information..IP \-xPrint out extra debugging information..IP server[:port]The hostname or IP address of the remote server. Optionally a UDP portcan be specified. If no UDP port is specified, it is looked up in\fI/etc/services\fP. The service name looked for is \fBradacct\fP foraccounting packets, and \fBradius\fP for all other requests. If aservice is not found in \fI/etc/services\fP, 1813 and 1812 are usedrespectively..IP acct\ |\ auth |\ status |\ disconnectUse \fBauth\fP to send an authentication packet (Access-Request),\fBacct\fP to send an accounting packet (Accounting-Request),\fBstatus\fP to send an status packet (Status-Server), or\fBdisconnect\fP to send a disconnection request. Instead of thesevalues, you can also use a decimal code here. For example, code 12 isalso \fBStatus-Server\fP..IP secretThe shared secret for this client.  It needs to be defined on theradius server side too, for the IP address you are sending the radiuspackets from..SH EXAMPLEA sample session that queries the remote server for \fIStatus-Server\fP(not all servers support this.  Cistron-radiusd does since version1.6.5):.RS.sp.nf.ne 3$ echo "User-Name = fnord" | radclient 192.168.1.42 12 s3cr3tSending request to server 192.168.1.42, port 1812.radrecv: Packet from host 192.168.1.42 code=2, id=140, length=54    Reply-Message = "FreeRADIUS up 21 days, 02:05".fi.sp.RE.SH SEE ALSOradiusd(8),radtest(1)..SH AUTHORSMiquel van Smoorenburg, miquels@cistron.nl.Alan DeKok <aland@freeradius.org>

⌨️ 快捷键说明

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