radiusctl8
Control the radius protocol daemon
Usage
radiusctl command
[argument ...]
Overview
The radiusctl utility controls the radiusd(8) daemon.
The following commands are available:
-
testhostname radius_secret user_name [options] Sends a RADIUS authentication request packet and shows the result. The request is for the user specified by user_name and sent to the RADIUS server specified by hostname. radius_secret is the shared secret with the server. The options are as follows:intervalseconds-
Specifies how many seconds to wait before resending a packet. The default is 2.
maxwaitseconds-
Specifies the maximum amount of time to wait for a valid reply packet. The default is 8.
methodmethod-
Use method for authentication. It can be either
pap,chap, ormschapv2. If this option is omitted,papis used. nas-portnas-port-
Specify an integer value for the NAS-Port attribute in the packet. If this option is omitted, 0 is used.
passwordpassword-
Use password for user_name.
portport-
Use port when sending a packet to hostname. If the port is omitted, the default port number 1812 is used.
triesnumber-
Specifies the number of packets to try sending. The default is 3.
msgauthyes | no-
Specifies if Message-Authenticator is given for the access request packet. The default is yes.
ipcpshow-
Show all ipcp sessions in the database of radiusd_ipcp(8) briefly.
ipcpdump[-json]-
Dump all ipcp sessions in the database of radiusd_ipcp(8). When
-jsonis specified,radiusctlshows the sessions in JSON format. ipcpmonitor[-json]-
Monitor the database of radiusd_ipcp(8), show newly created sessions and deleted sessions. When
-jsonis specified,radiusctlshows the sessions in JSON format. ipcpdisconnectsequence-
Request to disconnect the session specified by the sequence.
ipcpdeletesequence-
Request to delete the session specified by the sequence without requesting disconnection.
Examples
(show all sessions) $ doas radiusctl ipcp show Seq Assigned Username Start Tunnel From --- --------------- ---------------------- -------- ------------------------- 21 192.168.1.99 [email protected] 11:35AM 203.0.113.32:34859 22 192.168.1.103 [email protected] 11:56AM 192.0.2.4:61794 $ (disconnect Nakadai's session) $ doas radiusctl ipcp disconnect 22 $
Releases
24 releases since OpenBSD 5.8; the text changed 3 times.