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

📄 radclient.1

📁 新的radius程序
💻 1
字号:
.TH RADCLIENT 1 "7 April 2005" "" "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 [ \-n.IR num_requests_per_second ].RB [ \-p.IR num_requests_in_parallel ].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 and \fICHAP-Password\fP attributes areautomatically encrypted before the packet is sent to the server..SH OPTIONS.IP \-c\ \fIcount\fPSend each packet \fIcount\fP times..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.  This option can be specified multipletimes, in which case packets are sent in order by file, and withineach file, by first packet to last packet.  A blank line separateslogical packets within a file..IP \-i\ \fIid\fPUse \fIid\fP as the RADIUS request Id..IP \-n\ \fInum_requests_per_second\fPSend \fInum_requests_per_second\fP, evenly spaced over time.  Bydefault, the requests are sent as fast as possible.  This optionallows you to slow down the rate at which radclient sends requests..IP \-p\ \fInum_requests_in_parallel\fPSend \fInum_requests_in_parallel\fP, without waiting for a responsefor each one.  By default, radclient sends the first request it hasread, waits for the response, and once the response is received, sendsthe second request in its list.  This option allows you to send manyrequests at simultaneously.  Once \fInum_requests_in_parallel\fP aresent, radclient waits for all of the responses to arrive (or for therequests to time out), before sending any more packets..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 \-sPrint 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 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, but FreeRADIUS hasconfigurable support for it)..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),.SH AUTHORSMiquel van Smoorenburg, miquels@cistron.nl.Alan DeKok <aland@freeradius.org>

⌨️ 快捷键说明

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