IAUTH.CONF(5)
π IAUTH.CONF(5) π
okay bestie, gather round, because this is the manual page for iauth.conf β the Internet Relay Chat Authentication Configuration File β and it's genuinely so much cooler than it sounds, i promise π«Ά
β¨ NAME β¨
iauth.conf β The Internet Relay Chat Authentication Configuration File πΈ
π¦ DESCRIPTION π¦
So like. The iauth.conf file gets read by the iauth program the moment it starts up, no cap. Inside it is the list of modules that should be used to authenticate a particular connection. And the list is ordered, which means β and stay with me here β the first module to successfully authenticate a connection will be the last to be tried. yes, really, that's what it says π
The file is divided into sections. The first section is for iauth options, and every section after that specifies a module, with eventual options, using this exact format:
module module-name
[TAB]option = string
[TAB]host = host-name
[TAB]ip = ip-address
[TAB]timeout = value
[TAB]port = value
[TAB]reason = string
The section ends with an empty line. The module-name defines which module the section applies to. A particular module may be used in several sections. An option string of undefined format may be specified β it will then be passed to the module upon initialization, so go check the MODULES section to find out if a module accepts any option π
If host-name and ip-address fields are specified, then the module will only be used for connections matching one of the fields given in the configuration. An entry prefixed with the character ! indicates a negative match. And heads up: IP addresses are checked first.
port is mandatory for socks and webproxy modules and not used in others. It tells the module what port it should connect to to do its work π
If no host nor ip entry is specified, then the module will always be used. periodt.
reason is text to send to clients rejected by the given module π¨
When writing a configuration file, one should always verify the syntax using the iauth program to avoid later problems. like, please, i'm begging you π
β IAUTH OPTIONS β
timeout = <seconds>β this lets you specify how much time each module has to complete its work for each connection. This option can also be specified individually for each module. The default is 30 seconds β±οΈrequiredβ by specifying this keyword, the IRC server is told not to accept new user connections unless the authentication is handled byiauth. This does NOT mean that the server will wait forever to get the data fromiauthβ go look at thenotimeoutoption πnotimeoutβ by specifying this keyword, the IRC server is told not to accept a user connection ifiauthhasn't finished its work in time. Note that modules specified after thedelayedkeyword are not considered π«extinfoβ this keyword allows extra information (user supplied username, and eventually password) to be received byiauthfrom the server. This is only useful if a module using this information is loaded π₯delayedβ all modules below this keyword will run in "delayed" execution mode. This means thatircdgets a (fake) message thatiauthis done with this client so that it allows it. Modules however do work as usual, and upon deciding that this client should be removed, a message is sent toircdand the client is removed πshared <name> <mod_name.so>β ifiauthwas compiled with Dynamically Shared Module support, it can be told to dynamically load a module using this option. The module can then be loaded π§
π MODULES π
π pipe
This module is provided as a replacement to the (now obsolete) R configuration lines supported by the IRC daemon. It runs an external program with the client IP and port as arguments. The program should output either 'Y' (Yes, let the client in), or 'N' (No, don't let them in) π₯
Note that this module is quite expensive as it forks a separate process for each connection received by the IRC daemon π
This module requires the following option:
prog=/path/to/external/program
π socks
This module performs a basic check to verify that the host where the connection originated from doesn't run a SOCKS v4 or v5 proxy server on a given in-configuration port that is open to the world. It is useful to reject abusive clients using a relay to evade kill lines and bans. Multiple instances (with different ports) are allowed π
This module understands ten options:
rejectβ to reject connections originating from a host where an open proxy was detectedlogβ to log hostnames where an open proxy is detectedprotocolβ to log protocol errorsparanoidβ to consider proxies which deny the request because of a userid/ident mismatch to be OPEN proxiesmegaparanoidβ which isparanoidplus it considers all proxies not explicitly stating they are closed to be OPEN proxies β that includes all protocol errors, unexpected results etc. π±cache[=value]β to set the cache lifetime in minutes. By default, caching is enabled for 30 minutes. A value of0disables cachingcarefulβ to make sure socks v5 is properly configured with IP rulesets. Without this parameter, module will not send additional query and assume first positive answer as validv4onlyβ to check only socks v4v5onlyβ to check only socks v5
π rfc931
This module is for authentication of TCP connections using the protocol defined in RFC 1413 (which obsoletes RFC 931). It is always loaded, and does not recognize the host nor ip fields π
β¨ lhex
This module acts as a proxy, communicating with a LHEx server to perform authentication of client connections. It takes a single (mandatory) option, which is the IP-address of the LHEx server to use π°οΈ
πΈ webproxy
This module performs a basic HTTP CONNECT to verify that the host where the connection originated from doesn't run an open WWW proxy. It is useful to reject abusive clients using a relay to evade kill lines and bans. Multiple instances (with different ports) are allowed π
This module understands five options:
rejectβ to reject connections originating from a host where an open proxy was detectedlogβ to log hostnames where an open proxy is detectedcache[=value]β to set the cache lifetime in minutes. By default, caching is enabled for 30 minutes. A value of0disables cachingcarefulβ to make sure that we connected to our ownircd; without this parameter, module will accept any"HTTP/1.? 200"with an exception of servers sending"Date:"header along (which is common with some Apache+PHP configurations) π
π EXAMPLE π
The following file will cause the IRC daemon to reject all connections originating from a system where an open proxy is running for hosts within *.fr and *.enserb.u-bordeaux.fr but not for other hosts matching *.u-bordeaux.fr. For all connections, an ident lookup (RFC 1413) will be performed as well as checking for WWW proxy on port 8080 and 3128. In addition, every connection is authenticated with the LHEx server at IP-address 127.0.0.1. Client will be let in after ident and lhex are done, but if socks or webproxy finds an open proxy, client will be removed asap π₯
module rfc931
module lhex
option = 127.0.0.1
delayed
module socks
option = reject,paranoid
host = *.enserb.u-bordeaux.fr
host = !*.u-bordeaux.fr
host = *.fr
port = 1080
module webproxy
option = reject
port = 8080
module webproxy
option = reject,careful
port = 3128
π CAVEATS π
When the option extinfo is set, connections registering as a server or a service with the IRC server are not guaranteed to receive the "user" authentication provided by modules (such as the rfc931 module). so like, don't count on it, bestie π
π COPYRIGHT π
(c) 1998,1999 Christophe Kalt
For full COPYRIGHT see LICENSE file with IRC package π
π FILES π
"iauth.conf"
π¦ SEE ALSO π¦
β AUTHOR β
Christophe Kalt. π
and that's the whole thing, you ate it, iconic, no notes π
the source and version on this one is $Date: 2004/12/16 16:14:06 $, so go forth and configure your iauth.conf responsibly, mwah π«Άβ¨
π¦ where this page comes from
- debian bookworm: ircd-irc2 2.11.2p3~dfsg-7+b2
- debian trixie: ircd-irc2 2.11.2p3~dfsg-7.1
- ubuntu jammy: ircd-irc2 2.11.2p3~dfsg-7
- ubuntu noble: ircd-irc2 2.11.2p3~dfsg-7
- ubuntu questing: ircd-irc2 2.11.2p3~dfsg-7.2
- ubuntu resolute: ircd-irc2 2.11.2p3~dfsg-7.3
- ubuntu stonking: ircd-irc2 2.11.2p3~dfsg-7.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms