INN-RADIUS.CONF(5)
π inn-radius.conf β the RADIUS config glow-up (inn-radius.conf(5))
okay bestie, so this is the InterNetNews Documentation page for inn-radius.conf, and it's literally the whole entire format + attribute situation for the config file that the nnrpd RADIUS authenticator reads. if you wanna know more about the actual authenticator program itself, go peek at radius(8) π«Ά
the default home for this file is inn-radius.conf in pathetc. periodt.
β¨ DESCRIPTION β¨
so here's the vibe check on the file format, bestie:
- Blank lines? ignored. slay.
- lines starting with
#? also ignored π - anything after a
#on a line? yeah that's ignored too, no cap. - every other line should start with a parameter name, then a colon, then the value of that key.
except β and this is the main character detail β each section of config for a particular server gets wrapped up all cozy like this:
server <name> {
# parameters...
}
where <name> is just some convenient label you picked for that server. it's giving name tag at a party π
πΈ SERVER GROUP PARAMETERS πΈ
here's the full roster of available parameters, no skips, no cuts:
radhostβ the hostname of the RADIUS server you're using for auth. this parameter must be set β like, non-negotiable, bestie.radportβ the port you query on the RADIUS server. defaults to1645if you don't set it.lochostβ the hostname or IP address making the request. the RADIUS server wants an IP address, so a hostname gets translated into one withgethostbyname(). if you don't give it, this info just isn't included in the request at all (and tbh not every RADIUS setup even requires it π).locportβ the port the client being authenticated is connecting to. if you don't give it, it defaults to119. you don't need to set this unless your readers are connecting to a non-standard port.secretβ the shared secret with the RADIUS server. β οΈ if your secret has spaces, tabs, or#in it, wrap it in double quotes, fr fr. this parameter must be set too.prefixβ prepends this value onto all usernames before they get passed to the RADIUS server. super useful for sticking something like"news-"in front of every username so news users live in a whole different namespace from other accounts on the same server, iykyk. if it's not set, nothing gets prepended.suffixβ appends this value onto all usernames before they go to the RADIUS server. usually something like"@example.com", depending on how your RADIUS server is set up. if it's not set, nothing gets appended.ignore-sourceβ can be"true","yes","on","false","no"or"off". here's the tea: if it's set to false, the RADIUS authenticator checks that the response it got back came from the same IP address it sent the request to (a lil extra security, we love that). if it's set to true, it skips that verification check entirely β which is honestly normal if your RADIUS server has multiple IP addresses or if other odd things are going on and the response legit comes from a different IP π¦
π EXAMPLE π
okay so picture this: a news server named news.example.com, authenticating users against radius.example.com, and appending "@example.com" to every client-supplied username before passing them to the RADIUS server. the config ate, honestly:
server example {
radhost: radius.example.com
lochost: news.example.com
secret: IamARADIUSsecRET
suffix: @example.com
}
and just to be so clear: the shared secret with the RADIUS server is "IamARADIUSsecRET" π₯
π§ HISTORY π§
this documentation was written by Russ Allbery <eagle@eyrie.org>, based on the comments in the sample inn-radius.conf file by Yury B. Razbegin. iconic collaboration behavior π
π SEE ALSO π
radius(8)β go read it, bestie, it's the whole point π
and that's the whole page!! this lil gem is from INN 2.7.4, dated 2024-05-19 β mwah, sending you the biggest kiss, go configure your RADIUS server with confidence πβ¨π«Άπ
π¦ where this page comes from
- arch rolling: inn 2.7.4-4 Β· ISC
- epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms