RADSQLRELAY(8)
โจ NAME โจ
radsqlrelay โ bestie, this is the lil helper that relays SQL queries to a central database server ๐
๐ธ SYNOPSIS ๐ธ
radsqlrelay [-?] [-d sql_driver] [-b database] [-f file] [-h host] [-u user] [-P port] [-p password] [-1] [-x] file_path
๐ DESCRIPTION ๐
okay so here's the vibe: radsqlrelay tails a SQL logfile and forwards the queries over to a database server. That's it, that's the job ๐ซถ
What is it for tho? Replicating accounting records to one (central) database โ even if that database has been down for a long extended downtime. like, the main character database took a nap and your records still made it, periodt.
The SQL logfile gets created by the rlm_sql module with the rlm_sql_null driver logging to disk. And no cap โ the module must be configured in the radiusd server before you can even use radsqlrelay. So set that up first bestie, it's giving prerequisite ๐
โจ OPTIONS โจ
-?โ prints the usage help info. your lil "what do I do" button ๐-dsql_driver โ the driver to use. The choices aremysql,pg,oracle. pick your fighter โจ-bdatabase โ the name of the database to use.-ffile โ read the password from file instead of from the command line. sneaky, secure, iconic ๐-hhost โ connect to host.-uuser โ the user for login.-Pport โ port number to use for the connection.-ppassword โ the password to use when connecting to the server.-1โ one-shot mode: push the file to the database and exit. no lingering, just go ๐จ-xโ turn on debugging. for when you need to see everything ๐- file_path โ the pathname of the SQL logfile to use. this is the whole point bestie ๐
๐ NOTES ๐
๐ฎ Oracle driver ๐ฎ
the command
radsqlrelay -d oracle -b db.domain.tld sql-relay
reads the database description stored in $TNS_ADMIN/tnsnames.ora:
db.domain.tld =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = db.domain.tld)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = <DB SID>)
)
)
๐ AUTHOR ๐
Nicolas Baradakis <nicolas.baradakis@cegetel.net>
and that's the whole page bestie ๐ this was written all the way back on 19 June 2005, and it's from the RADSQLRELAY(8) / FreeRADIUS helper program corner of the manual. stan a classic ๐โจ๐ฆ
๐ฆ 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 3.2.5-160000.2.2 ยท GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 ยท GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 3.2.5-160000.2.2 ยท GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: freeradius-server 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