RADZAP(1)
π¦ radzap β like, the FreeRADIUS Daemon manual, section 1, bestie π
okay so welcome to radzap, aka the little cleanup crew for your active sessions database. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
radzap β remove rogue entries from the active sessions database π§Ήβ¨
πΈ SYNOPSIS πΈ
radzap [-d raddb_directory] [-h] [-N nas_ip_address] [-P nas_port] [-u
user] [-U user] [-x] server[:port] secret
no cap, that's the whole vibe. π
π DESCRIPTION π
so the FreeRADIUS server can be configured to keep an active session database in a file called radutmp. commands like radwho(1) read from that database. it's giving main character energy... until it gets out of sync π and then it might be holding onto rogue entries. that's literally where radzap comes in β it cleans this database up. periodt. π
as of FreeRADIUS 1.1.0, radzap is a simple shell-script wrapper around radwho(1) and radclient(1). slay, honestly. β¨
the sessions get "zapped" by sending an Accounting-Request packet that contains the info the server needs to delete the session record. and bestie, listen β radzap sends a packet to the server instead of writing to radutmp directly, because session records may also be maintained in SQL. iykyk. π«Ά
π OPTIONS π
-draddb_directory β the directory that holds the RADIUS configuration files.radzapreadsradiusd.confto figure out where theradutmpfile lives. π-hβ print usage help information. sometimes you just gotta ask for directions, and that's valid. π-Nnas_ip_address β zap the entries that match the given NAS IP address. π―-Pnas_port β zap the entries that match the given NAS port. πͺ-uuser β zap the entries that match the given username (case insensitive). π-Uuser β zap the entries that match the given username (case sensitive). π-xβ enable debugging output. turn the lights on, we're investigating π₯server[:port]β the hostname or IP address of the remote server. optionally you can specify a UDP port. if you don't specify one, it gets looked up in/etc/services. the service name it looks for isradacctfor accounting packets, andradiusfor all other requests. and if that service isn't found in/etc/services? then1813and1812are used respectively. πsecretβ the shared secret for this client. it needs to be defined on the radius server side too, for the IP address you're sending the radius packets from. like, it takes two, fr fr. π€
π₯ SEE ALSO π₯
radwho(1), radclient(1), radiusd(8), radiusd.conf(5).
go read those too, bestie, they're iconic in their own right. πβ¨
π AUTHOR π
Alan DeKok <aland@ox.org> π
and that's the whole page!! π this version of RADZAP(1) is from the FreeRADIUS Daemon source, dated 8 April 2005. bye bestie, go zap responsibly π
π¦πΈ
π¦ where this page comes from
- alpine 3.22: freeradius-doc 3.0.27-r1 Β· GPL-2.0-or-later
- alpine 3.23: freeradius-doc 3.0.27-r2 Β· GPL-2.0-or-later
- alpine 3.24: freeradius-doc 3.0.27-r3 Β· GPL-2.0-or-later
- arch rolling: freeradius 3.2.10-4 Β· GPL-2.0-or-later
- centos-stream 10: freeradius-utils 3.2.8-2.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 9: freeradius-utils 3.0.27-4.el9 Β· GPLv2+ and LGPLv2+
- debian bookworm: freeradius-common 3.2.1+dfsg-4+deb12u1 Β· GPL-2.0-or-later
- debian trixie: freeradius-common 3.2.7+dfsg-1+deb13u2 Β· GPL-2.0-or-later
- fedora 43: freeradius-utils 3.2.7-6.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: freeradius-utils 3.2.8-2.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: freeradius-utils 3.2.8-3.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- nixos 26.05: freeradius 3.2.8
- nixpkgs unstable: freeradius 3.2.10
- opensuse-leap 16.0: freeradius-server-utils 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server-utils 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server-utils 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server-utils 3.2.5-160000.2.2 Β· GPL-2.0-only AND LGPL-2.1-only
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3 Β· GPL-2.0-or-later
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3.3 Β· GPL-2.0-or-later
- ubuntu jammy: freeradius-common 3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3.4 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.3+dfsg-2build7 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.5+dfsg-3~ubuntu24.04.1 Β· GPL-2.0-or-later
- ubuntu noble: freeradius-common 3.2.5+dfsg-3~ubuntu24.04.3 Β· GPL-2.0-or-later
- ubuntu questing: freeradius-common 3.2.7+dfsg-1ubuntu2
- ubuntu resolute: freeradius-common 3.2.8+dfsg-1ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: freeradius-common 3.2.10+dfsg-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms