ngircd.conf(5)
π NAME π
okay so this is ngircd.conf(5) β yes, that's the manual name, it's from the ngIRCd Manual β and it's literally the configuration file of ngIRCd. that's the whole vibe. π
β¨ SYNOPSIS β¨
/etc/ngircd/ngircd.conf
like. that's the path. she lives there. periodt. π
π¦ DESCRIPTION π¦
ngircd.conf is the config file for ngircd(8), the Internet Relay Chat (IRC) daemon. and here's the tea: every single config option is optional, and honestly the file itself is optional too. it's just there so you can configure ngircd(8) for your own local preferences and needs when the defaults simply aren't giving what they need to give. no cap. π
the best part? most variables can be changed while the ngIRCd daemon is already running. she'll reload her config file when she gets a HUP signal or when the "REHASH" IRC command shows up. obsessed. π₯
πΈ FILE FORMAT πΈ
the file is made of sections and parameters. a section starts with the section name in square brackets and keeps going until the next section begins. simple as that bestie β¨
sections contain parameters that look like this:
name = value
empty lines β and any line that starts with a semicolon (';') or a hash ('#') character β are treated as a comment and get ignored. also, leading and trailing whitespaces get trimmed before any processing happens. she's tidy like that. π§
the file format is line-based, meaning every non-empty newline-terminated line is either a comment, a section name, or a parameter. one line, one job. π
section and parameter names are not case sensitive. okay so she's chill about that.
there are three types of variables: booleans, text strings, and numbers.
- bling bling booleans π are true when they're
"yes","true", or any non-null integer. - text strings get used 1:1 without leading and following spaces β and heads up, there is no way to quote strings. not even a little.
- for numbers, all decimal integer values are valid.
and in addition, some string or numerical variables accept lists of values, separated by commas (","). slay. π
π SECTION OVERVIEW π
the file can contain blocks of seven types:
[Global][Limits][Options][SSL][Operator][Server][Channel]
the main configuration of the server lives in the [Global] section β that's the server name, the administrative info, the ports she should be listening on, all of it. and ngl, the variables in this section have to be adjusted to your local requirements most of the time. whereas all the variables in the other sections? those can be left on their defaults very often. she's low maintenance like that. π
options in the [Limits] block are for tweaking different limits and timeouts of the daemon, like the maximum number of clients allowed to connect to this server. variables in the [Options] section let you enable or disable specific features of ngIRCd β like support for IDENT, PAM, IPv6, and protocol and cloaking features. and the [SSL] block holds all the SSL-related configuration variables. these three sections are all optional. π«Ά
IRC operators of this server get defined in [Operator] blocks. links to remote servers are configured in [Server] sections. and [Channel] blocks are for configuring pre-defined ("persistent") IRC channels. π
you can have more than one [Operator], [Server] and [Channel] section per config file β one for each operator, server, and channel. and [Global], [Limits], [Options], and [SSL] sections can occur multiple times too, but each variable overwrites itself, and only the last assignment is relevant. so don't be messy about it bestie π
π [GLOBAL] π
the [Global] section defines the main configuration of the server β like the server name and the ports on which the server should be listening. these settings depend on your personal preferences, so make sure they correspond to your installation and setup! fr fr. π₯
Name(string) β server name in the IRC network. this is an individual name of the IRC server, it's not related to the DNS host name. it must be unique in the IRC network and must contain at least one dot (".") character. when it's not set, ngIRCd tries to deduce a valid IRC server name from the local host name. π«AdminInfo1,AdminInfo2,AdminEMail(string) β info about the server and the administrator, used by theADMINcommand. this info is not required by the server, but it is required by RFC! so like. do it. πHelpFile(string) β text file containing the ngIRCd help text. this file is required to display help texts when using the"HELP <cmd>"command. please note: changes made to this file take effect when ngircd starts up or is instructed to re-read its configuration file. Default: a built-in standard path. πInfo(string) β info text of the server. this gets shown byWHOISandLINKSrequests for example. set to the server software name and version by default. β¨Listen(list of strings) β a comma separated list of IP addresses on which the server should listen. if unset, the default value is"0.0.0.0"or, if ngIRCd was compiled with IPv6 support,"::,0.0.0.0". so the server listens on all configured IP addresses and interfaces by default. she's everywhere, she's that girl πMotdFile(string) β text file with the "message of the day" (MOTD). this message gets shown to all users connecting to the server. please note: changes made to this file take effect when ngircd starts up or is instructed to re-read its configuration file. Default: a built-in standard path. πΈMotdPhrase(string) β a simple phrase (<127 chars) if you don't want to use a MOTD file. short and sweet bestie πNetwork(string) β the name of the IRC network to which this server belongs. this name is optional, should only contain ASCII characters, and can't contain spaces. it's only used to inform clients. the default is empty, so no network name is announced to clients. π€«Password(string) β global password for all users needed to connect to the server. the default is empty, so no password is required. please note: this feature is not available if ngIRCd is using PAM! π¨PidFile(string) β this tells ngIRCd to write its current process ID to a file. note that the "PID file" is written AFTER chroot and switching the user ID, therefore the directory the file resides in must be writable by the ngIRCd user and must exist in the chroot directory (if configured, see above). β οΈPorts(list of numbers) β port number(s) on which the server should listen for unencrypted connections. there may be more than one port, separated with commas (","). Default:6667. πServerGID(string or number) β group ID under which the ngIRCd daemon should run; you can use the name of the group or the numerical ID.
Attention: for this to work the server must have been started with root privileges! π
ServerUID(string or number) β user ID under which the ngIRCd daemon should run; you can use the name of the user or the numerical ID.
Attention: for this to work the server must have been started with root privileges! in addition, the configuration and MOTD files must be readable by this user, otherwiseRESTARTandREHASHwon't work! π
π [LIMITS] π
this section defines some limits and timeouts for this ngIRCd instance. default values should be safe, but it is wise to double-check :-) like, genuinely. go look. π
ConnectRetry(number) β the server tries every<ConnectRetry>seconds to establish a link to not yet (or no longer) connected servers. Default:60. πIdleTimeout(number) β number of seconds after which the whole daemon should shut down when no connections are left active after handling at least one client (0: never). this can be useful for testing or when ngIRCd is started using "socket activation" withsystemd(8), for example. Default:0. π€MaxConnections(number) β maximum number of simultaneous in- and outbound connections the server is allowed to accept (0: unlimited). Default:0. πMaxConnectionsIP(number) β maximum number of simultaneous connections from a single IP address that the server will accept (0: unlimited). this configuration option lowers the risk of denial of service attacks (DoS). Default:5. π‘οΈMaxJoins(number) β maximum number of channels a user can be member of (0: no limit). Default:10. πͺMaxNickLength(number) β maximum length of a user nickname (Default:9, as in RFC 2812). please note that all servers in an IRC network MUST use the same maximum nickname length! no arguing about it πMaxPenaltyTime(number) β maximum penalty time increase in seconds, per penalty event. set to-1for no limit (the default),0to disable penalties altogether. ngIRCd doesn't use penalty increases higher than2seconds during normal operation, so values greater than1rarely make sense. β±οΈMaxListSize(number) β maximum number of channels returned in response to aLISTcommand. Default:100. πPingTimeout(number) β after<PingTimeout>seconds of inactivity the server will send aPINGto the peer to test whether it is alive or not. Default:120. πPongTimeout(number) β if a client fails to answer aPINGwith aPONGwithin<PongTimeout>seconds, it will be disconnected by the server. Default:20. π
β¨ OPTIONS β¨
okay so this whole section is the optional girlies β extra features and config knobs that tweak how ngIRCd behaves. if you're just trying to get up and running fast, you can literally skip all of this, they're all optional, no cap π
AllowedChannelTypes(string) β list of allowed channel types (channel prefixes) for newly created channels on the local server. by default all supported channel types are allowed β¨ set this to the empty string and local clients literally cannot create new channels at all. Default:#&+AllowRemoteOper(boolean) β flip this on and IRC operators connected to remote servers get to control this local server with admin commands, stuff likeCONNECT,DIE,SQUITetc. Default:no.ChrootDir(string) β a directory to chroot into once everything is initialized π it doesn't need to be populated if ngIRCd is compiled as a static binary. by default ngIRCd won't use thechroot()feature at all.
β οΈ attention bestie: for this to work the server must have been started with root privileges!
CloakHost(string) β set this hostname for every client instead of the real one. Default: empty, don't change. use%xto add the hashed value of the original hostname πCloakHostModeX(string) β use this hostname for hostname cloaking on clients that have user mode+xset, instead of the name of the server. Default: empty, use the name of the server. use%xto add the hashed value of the original hostname. heads up: if this variable is empty, regular users cannot set mode+xthemselves π«ΆCloakHostSalt(string) β the Salt for cloaked hostname hashing π§ when undefined, a random hash is generated after each server start.CloakUserToNick(boolean) β set every client's user name and real name to their nickname, hiding whatever the IRC client supplied. Default:no.ConnectIPv4(boolean) β set this tonoif you don't want ngIRCd connecting to other IRC servers over the IPv4 protocol. this is what lets you run ngIRCd in IPv6-only setups π Default:yes.ConnectIPv6(boolean) β set this tonoif you don't want ngIRCd connecting to other IRC servers over the IPv6 protocol. Default:yes.DefaultChannelModes(string) β default channel mode(s) to set on new channels. Default: none.DefaultUserModes(string) β default user mode(s) to set on new local clients. ngl please note you can only set modes that the client itself could set using regularMODEcommands β you can't seta(away) for example! Default: none.DNS(boolean) β if set tofalse, ngIRCd won't make any DNS lookups when clients connect π but if you configure the daemon to connect to other servers, ngIRCd may still perform a DNS lookup if required. Default:yes.Ident(boolean) β if ngIRCd was compiled with IDENT support, this disables IDENT lookups at run time. users identified via IDENT are registered without the~character prepended to their user name. Default:yes.IncludeDir(string) β directory containing configuration snippets (*.conf) that should be read in after parsing the current configuration file π Default: a built-in directory name when no configuration file was explicitly given on the command line (checkngircd --configtest), none (empty) otherwise.
the way this works: no default include directory gets used when a possibly non-default config file was explicitly specified with --config/-f on the command line which (intentionally) did not specify an IncludeDir directive. iykyk π
MorePrivacy(boolean) β this makes ngIRCd censor user idle time, logon time, and thePART/QUITmessages (the ones people sometimes use to tell everyone which client software they're running π).WHOWASrequests get silently ignored too, andNAMESoutput doesn't list any clients for non-members. this option is most useful when ngIRCd is running alongside anonymizing software like TOR or I2P and you don't want it to be too easy to collect stats on the users. Default:no.NoticeBeforeRegistration(boolean) β normally ngIRCd doesn't send any messages to a client until it's registered. enable this and the daemon will sendNOTICE *messages to clients while they're still connecting. Default:no.OperCanUseMode(boolean) β should IRC Operators be allowed to use theMODEcommand even when they are not(!) channel-operators? Default:no.OperChanPAutoOp(boolean) β should IRC Operators get AutoOp (+o) in persistent (+P) channels? Default:yes.OperServerMode(boolean) β ifOperCanUseModeis enabled, this may cause compatibility problems with servers running the ircd-irc2 software π this option "masks" mode requests by non-chanops as if they were coming from the server. Default:no; only enable it if you have ircd-irc2 servers in your IRC network.PAM(boolean) β if ngIRCd was compiled with PAM support, this disables all calls to the PAM library at runtime; every user connecting without a password is allowed to connect, and every password given will fail π users identified using PAM are registered without the~character prepended to their user name. Default:yes.PAMIsOptional(boolean) β when PAM is enabled, all clients are required to be authenticated using PAM; connecting to the server without successful PAM auth isn't possible. set this option and clients that don't send a password are still allowed to connect β they just won't become "identified" and keep the~character prepended to their supplied user name. please note: to make some use of this behavior, it most probably isn't useful to enableIdent,PAMandPAMIsOptionalall at the same time, because you wouldn't be able to tell Ident'ified users and PAM-authenticated users apart β both have no~character prepended to their respective user names! π Default:no.PAMServiceName(string) β when PAM is enabled, this value determines the PAM configuration used. this setting lets you run multiple ngIRCd instances with different PAM configs on each instance. set it tongircd-fooand PAM will use/etc/pam.d/ngircd-fooinstead of the default/etc/pam.d/ngircdπ Default:ngircd.RequireAuthPing(boolean) β let ngIRCd send an "authenticationPING" when a new client connects, and register that client only after receiving the correspondingPONGreply π Default:no.ScrubCTCP(boolean) β set this totrueand ngIRCd will silently drop all CTCP requests sent to it from both clients and servers. it also won't forward CTCP requests to any other servers. CTCP requests can be used to query user clients about which software they're using and which versions of it, and CTCP can also be used to reveal clients' IP numbers πACTIONCTCP requests are not blocked, which means/mecommands won't be dropped β but please note that blocking CTCP will disable file sharing between users! Default:no.SyslogFacility(string) β the syslog "facility" ngIRCd should send log messages to. possible values are system dependent, but most probablyauth,daemon,userandlocal1throughlocal7are possible; seesyslog(3). Default islocal5for historical reasons, and you probably want to change this todaemon, for example πWebircPassword(string) β password required for using theWEBIRCcommand used by some Web-to-IRC gateways. if it's not set or empty, theWEBIRCcommand can't be used. Default: not set.
π SSL π
all the SSL-related config variables live in the [SSL] section π but ngl, please note that this whole section is only recognized by ngIRCd when it's compiled with support for SSL using OpenSSL or GnuTLS!
CAFile(string) β filename pointing to the Trusted CA Certificates. this is required for verifying peer certificates. Default: not set, so no certificates are trusted πCertFile(string) β SSL Certificate file of the private server key.CipherList(string) β select cipher suites allowed for SSL/TLS connections. this defaults toHIGH:!aNULL:@STRENGTH:!SSLv3(OpenSSL) orSECURE128:-VERS-SSL3.0(GnuTLS). please seeman 1ssl ciphers(OpenSSL) andman 3 gnutls_priority_init(GnuTLS) for details πCRLFile(string) β filename of Certificate Revocation List.DHFile(string) β name of the Diffie-Hellman Parameter file. can be created with GnuTLScerttool --generate-dh-paramsoropenssl dhparam. if this file isn't present, it will be generated on startup when ngIRCd was compiled with GnuTLS support (this may take some time β³). if ngIRCd was compiled with OpenSSL, then (Ephemeral)-Diffie-Hellman Key Exchanges and several Cipher Suites will not be available.KeyFile(string) β filename of the SSL Server Key to be used for SSL connections. this is required for SSL/TLS support.KeyFilePassword(string) β OpenSSL only: password to decrypt the private key file. πPorts(list of numbers) β same asPorts, except that ngIRCd will expect incoming connections to be SSL/TLS encrypted ππ common port numbers for SSL-encrypted IRC are6669and6697. Default: none.
π OPERATOR π
[Operator] sections are how you define IRC Operators. there may be more than one [Operator] block β one for each local operator β¨
Name(string) β ID of the operator (may be different from the nickname).Password(string) β password of the IRC operator.Mask(string) β mask that gets checked before an/OPERfor this account is accepted. Example:nick!ident@*.example.com
π [SERVER] π
Other servers live in [Server] sections, bestie β this is where your network links get made. So here's the vibe: if you give a connection a port, then this ngIRCd actively reaches out to the other server on that port. If you don't give it a port? It just sits there looking cute and passively waits for the other server to come to it. π
ngIRCd also does "server groups", which is honestly iconic. You can slap an "ID" on every server you want this ngIRCd to link with, and the daemon makes sure that at any given moment there's only one direct link to servers sharing that same ID. So if one server in a group ghosts you and won't answer, ngIRCd goes and tries the next server in that group (a.k.a. "with the same ID") β but it will never try to connect to more than one server of the group at the same time. No cap.
And yes, you can have more than one [Server] block. Stack 'em. π
Name(string) β the IRC name of the remote server.Host(string) β internet host name (or IP address) of the peer.Bind(string) β the IP address to use as the source IP for the outgoing connection. Default is to just let the operating system decide. Let the OS cook. π³Port(number) β the port of the remote server that ngIRCd should connect to (active). If no port is assigned to a configured server, the daemon only waits for incoming connections (passive, which is the default).MyPassword(string) β your own password for this connection. This one has to be configured asPeerPasswordon the other server. β οΈ Must not have:as the first character.PeerPassword(string) β the foreign password for this connection. This one has to be configured asMyPasswordon the other server.Group(number) β group of this server (optional).Passive(boolean) β disables automatic connection even if a port value is specified. Default:false. You can use the IRC Operator commandCONNECTlater on to create the link yourself.SSLConnect(boolean) β connect to the remote server using TLS/SSL. Default:false.SSLVerify(boolean) β verify the TLS certificate presented by the remote server. Default:yes.ServiceMask(string) β defines a (case insensitive) list of masks matching nicknames that should be treated as IRC services when introduced via this remote server, separated by commas (","). REGULAR SERVERS DON'T NEED this parameter, so leave it empty β which is, conveniently, the default. β¨
When you're connecting IRC services that mask as an IRC server and that use "virtual users" to communicate with, like "NickServ" and "ChanServ", you should set this parameter to something like "*Serv", "*Serv,OtherNick", or "NickServ,ChanServ,XyzServ".
π [CHANNEL] π
Pre-defined channels get configured in [Channel] sections, and the slay here is real: these channels are created by the server when it starts up, and they even persist when there are no more members left. Emptiness cannot defeat them. π
Persistent channels get marked with the mode 'P', and IRC operators can set and unset it on the fly just like any other mode. Sick.
There may be more than one [Channel] block. Obviously. π«Ά
Name(string) β name of the channel, including the channel prefix ("#"or"&").Topic(string) β the topic for this channel.Modes(string) β initial channel modes, as used in"MODE"commands. Modifying lists (ban list, invite list, exception list) is supported.
This option can be specified multiple times, evaluated top to bottom.
Autojoin(boolean) β should ngIRCd automatically join ("autojoin") all users to this channel on connect? β οΈ Note: the users must have permissions to access the channel, otherwise joining them will fail! Lowkey important, bestie.KeyFile(string) β path and file name of a "key file" containing individual channel keys for different users. The file is made of plain text lines with this syntax (no spaces!):
user : nick : key
user and nick can contain the wildcard character "*". key is an arbitrary password.
Valid examples are:
*:*:KeY
*:nick:123
~user:*:xyz
The key file is read on each JOIN command when this channel has a key (channel mode +k). Access is granted if a) the channel key set using the MODE +k command or b) one of the lines in the key file match.
Please note: the file is not reopened on each access, so you can modify and overwrite it without problems β but moving or deleting the file will have no effect until the daemon re-reads its configuration! π¨
π HINTS π
It's wise to use ngircd --configtest to validate the configuration file after changing it. Go read ngircd(8) for the details, bestie. π₯
π AUTHOR π
Alexander Barton, <alex@barton.de> Florian Westphal, <fw@strlen.de>
Homepage: http://ngircd.barton.de/
π SEE ALSO π
and that's the whole thing, we ate and left absolutely no crumbs πβ¨ this is ngircd.conf(5) from ngIRCd, dated May 2026 β go forth and configure, main character π
π¦πΈ
π¦ where this page comes from
- ubuntu stonking: ngircd 28-1 Β· 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