1 Server config file format
2 =========================
7 The config file consists of a series of BIND-style blocks. Each block
8 consists of a series of values inside it which pertain to configuration
9 settings that apply to the given block.
11 Several values take lists of values and have defaults preset inside
12 them. Prefix a keyword with a tilde (~) to override the default and
15 A line may also be a .include directive, which is of the form .include
16 "file" and causes file to be read in at that point, before the rest of
17 the current file is processed. Relative paths are first tried relative
18 to PREFIX and then relative to ETCPATH (normally PREFIX/etc).
20 Anything from a # to the end of a line is a comment. Blank lines are
21 ignored. C-style comments are also supported.
23 Specific blocks and directives
24 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26 Not all configuration blocks and directives are listed here, only the
27 most common ones. More blocks and directives will be documented in later
28 revisions of this manual.
36 Loads a module into the IRCd. In charybdis 1.1, most modules are
37 automatically loaded in. In future versions, it is intended to remove
38 this behaviour as to allow for easy customization of the IRCd's
59 The serverinfo {} block defines the core operational parameters of the
63 The name of the IRC server that you are configuring. This must
64 contain at least one dot. It is not necessarily equal to any DNS
65 name. This must be unique on the IRC network.
68 A unique ID which describes the server. This consists of one digit
69 and two characters which can be digits or letters.
72 A user-defined field of text which describes the IRC server. This
73 information is used in /links and /whois requests. Geographical
74 location information could be a useful use of this field, but most
75 administrators put a witty saying inside it instead.
78 The name of the IRC network that this server will be a member of.
79 This is used in the welcome message and NETWORK= in 005.
82 A boolean which defines whether or not this IRC server will be
83 serving as a hub, i.e. have multiple servers connected to it.
86 An optional text field which defines an IPv4 address from which
87 to connect outward to other IRC servers.
90 An optional text field which defines an IPv6 address from which
91 to connect outward to other IRC servers.
103 This block provides the information which is returned by the ADMIN
107 The name of the administrator running this service.
110 The description of the administrator's position in the network.
113 A point of contact for the administrator, usually an e-mail address.
122 ; number\_per\_ident =
126 ; number\_per\_ip\_global =
128 ; cidr\_ipv4\_bitlen =
130 ; cidr\_ipv6\_bitlen =
132 ; number\_per\_cidr =
150 Class blocks define classes of connections for later use. The class name
151 is used to connect them to other blocks in the config file (auth{} and
152 connect{}). They must be defined before they are used.
154 Classes are used both for client and server connections, but most
155 variables are different.
158 The amount of time between checking pings for clients, e.g.: 2
162 The amount of clients which may be connected from a single identd
163 username on a per-IP basis, globally. Unidented clients all count as
167 The amount of clients which may be connected from a single IP
170 number\_per\_ip\_global
171 The amount of clients which may be connected globally from a single
175 The netblock length to use with CIDR-based client limiting for IPv4
176 users in this class (between 0 and 32).
179 The netblock length to use with CIDR-based client limiting for IPv6
180 users in this class (between 0 and 128).
183 The amount of clients which may be connected from a single netblock.
185 If this needs to differ between IPv4 and IPv6, make different
186 classes for IPv4 and IPv6 users.
189 The maximum amount of clients which may use this class at any given
193 The maximum size of the queue of data to be sent to a client before
197 The amount of time between checking pings for servers, e.g.: 2
201 The amount of time between autoconnects. This must at least be one
202 minute, as autoconnects are evaluated with that granularity.
205 The amount of servers to autoconnect to in this class. More
206 precisely, no autoconnects are done if the number of servers in this
207 class is greater than or equal max\_number
210 The maximum size of the queue of data to be sent to a server before
227 auth {} blocks allow client connections to the server, and set various
228 properties concerning those connections.
230 Auth blocks are evaluated from top to bottom in priority, so put special
234 A hostmask (user@host) that the auth {} block applies to. It is
235 matched against the hostname and IP address (using :: shortening for
236 IPv6 and prepending a 0 if it starts with a colon) and can also use
237 CIDR masks. You can have multiple user entries.
240 An optional password to use for authenticating into this auth{}
241 block. If the password is wrong the user will not be able to connect
242 (will not fall back on another auth{} block).
245 An optional fake hostname (or user@host) to apply to users
246 authenticated to this auth{} block. In STATS i and TESTLINE, an
247 equals sign (=) appears before the user@host and the spoof is shown.
250 A list of flags to apply to this auth{} block. They are listed
251 below. Some of the flags appear as a special character,
252 parenthesized in the list, before the user@host in STATS i and
256 A name of a class to put users matching this auth{} block into.
259 The password used has been encrypted.
262 Causes the IRCd to send out a server notice when activating a spoof
263 provided by this auth{} block.
266 Users in this auth{} block can exceed class-wide limitations.
269 Users in this auth{} block are exempted from DNS blacklist checks.
270 However, they will still be warned if they are listed.
273 Users in this auth{} block are exempted from DNS blacklists, k:lines
277 Users in this auth{} block are exempted from spambot checks.
280 Users in this auth{} block are exempted from some serverhiding
284 Users in this auth{} block do not trigger an alarm when joining
288 Users in this auth{} block may use reserved nicknames and channels.
290 .. note:: The initial nickname may still not be reserved.
292 flood\_exempt (\|) Users in this auth{} block may send arbitrary
293 amounts of commands per time unit to the server. This does not
294 exempt them from any other flood limits. You should use this
295 setting with caution.
298 Users in this auth{} block will not have a tilde added to their
299 username if they do not run identd.
302 Users in this auth{} block must have identd, otherwise they will be
306 Users in this auth{} block must be connected via SSL/TLS, otherwise
307 they will be rejected.
310 Users in this auth{} block must identify via SASL, otherwise they
319 An exempt block specifies IP addresses which are exempt from D:lines and
320 throttling. Multiple addresses can be specified in one block. Clients
321 coming from these addresses can still be K/G/X:lined or banned by a DNS
322 blacklist unless they also have appropriate flags in their auth{} block.
325 The IP address or CIDR range to exempt.
330 privset { extends = "
335 A privset (privilege set) block specifies a set of operator privileges.
338 An optional privset to inherit. The new privset will have all
339 privileges that the given privset has.
342 Privileges to grant to this privset. These are described in the
343 operator privileges section.
354 "; rsa\_public\_key\_file = "
363 Operator blocks define who may use the OPER command to gain extended
367 A hostmask that users trying to use this operator {} block must
368 match. This is checked against the original host and IP address;
369 CIDR is also supported. So auth {} spoofs work in operator {}
370 blocks; the real host behind them is not checked. Other kind of
371 spoofs do not work in operator {} blocks; the real host behind them
374 Note that this is different from charybdis 1.x where all kinds of
375 spoofs worked in operator {} blocks.
378 A password used with the OPER command to use this operator {} block.
379 Passwords are encrypted by default, but may be unencrypted if
380 ~encrypted is present in the flags list.
382 rsa\_public\_key\_file
383 An optional path to a RSA public key file associated with the
384 operator {} block. This information is used by the CHALLENGE
385 command, which is an alternative authentication scheme to the
386 traditional OPER command.
389 A list of usermodes to apply to successfully opered clients.
392 An snomask to apply to successfully opered clients.
395 The privilege set granted to successfully opered clients. This must
396 be defined before this operator{} block.
399 A list of flags to apply to this operator{} block. They are listed
403 The password used has been encrypted. This is enabled by default,
404 use ~encrypted to disable it.
407 Restricts use of this operator{} block to SSL/TLS connections only.
416 "; send\_password = "
418 "; accept\_password = "
433 Connect blocks define what servers may connect or be connected to.
436 The hostname or IP to connect to.
438 .. note:: Furthermore, if a hostname is used, it must have an ``A`` or
439 ``AAAA`` record (no ``CNAME``) and it must be the primary hostname
440 for inbound connections to work.
443 The password to send to the other server.
446 The password that should be accepted from the other server.
449 The port on the other server to connect to.
452 An optional domain mask of servers allowed to be introduced by this
453 link. Usually, "\*" is fine. Multiple hub\_masks may be specified,
454 and any of them may be introduced. Violation of hub\_mask and
455 leaf\_mask restrictions will cause the local link to be closed.
458 An optional domain mask of servers not allowed to be introduced by
459 this link. Multiple leaf\_masks may be specified, and none of them
460 may be introduced. leaf\_mask has priority over hub\_mask.
463 The name of the class this server should be placed into.
466 A list of flags concerning the connect block. They are listed below.
469 The protocol that should be used to connect with, either ipv4 or
470 ipv6. This defaults to neither, allowing connection using either
474 The value for accept\_password has been encrypted.
477 The server should automatically try to connect to the server defined
478 in this connect {} block if it's not connected already and
479 max\_number in the class is not reached yet.
482 Ziplinks should be used with this server connection. This compresses
483 traffic using zlib, saving some bandwidth and speeding up netbursts.
485 If you have trouble setting up a link, you should turn this off as
486 it often hides error messages.
489 Topics should be bursted to this server.
491 This is enabled by default.
501 A listen block specifies what ports a server should listen on.
504 An optional host to bind to. Otherwise, the ircd will listen on all
508 A port to listen on. You can specify multiple ports via commas, and
509 define a range by seperating the start and end ports with two dots
520 The modules block specifies information for loadable modules.
523 Specifies a path to search for loadable modules.
526 Specifies a module to load, similar to loadmodule.
534 The general block specifies a variety of options, many of which were in
535 ``config.h`` in older daemons. The options are documented in
544 The channel block specifies a variety of channel-related options, many
545 of which were in ``config.h`` in older daemons. The options are
546 documented in ``reference.conf``.
554 The serverhide block specifies options related to server hiding. The
555 options are documented in ``reference.conf``.
562 "; reject\_reason = "
565 The blacklist block specifies DNS blacklists to check. Listed clients
566 will not be allowed to connect. IPv6 clients are not checked against
569 Multiple blacklists can be specified, in pairs with first host then
576 The reason to send to listed clients when disconnecting them.
586 Alias blocks allow the definition of custom commands. These commands
587 send PRIVMSG to the given target. A real command takes precedence above
591 The target nick (must be a network service (umode +S)) or
592 user@server. In the latter case, the server cannot be this server,
593 only opers can use user starting with "opers" reliably and the user
594 is interpreted on the target server only so you may need to use
595 nick@server instead).
605 The cluster block specifies servers we propagate things to
606 automatically. This does not allow them to set bans, you need a separate
607 shared{} block for that.
609 Having overlapping cluster{} items will cause the command to be executed
610 twice on the target servers. This is particularly undesirable for ban
613 The letters in parentheses denote the flags in /stats U.
616 The server name to share with, this may contain wildcards and may be
620 The list of what to share, all the name lines above this (up to
621 another flags entry) will receive these flags. They are listed
643 Permanently reserved nicks/channels
646 Temporarily reserved nicks/channels
652 LOCOPS messages (sharing this with \* makes LOCOPS rather similar to
653 OPERWALL which is not useful)
668 The shared block specifies opers allowed to perform certain actions on
669 our server remotely. These are ordered top down. The first one matching
670 will determine the oper's access. If access is denied, the command will
673 The letters in parentheses denote the flags in /stats U.
676 The user@host the oper must have, and the server they must be on.
677 This may contain wildcards.
680 The list of what to allow, all the oper lines above this (up to
681 another flags entry) will receive these flags. They are listed
684 .. note:: While they have the same names, the flags have subtly
685 different meanings from those in the cluster{} block.
688 Permanent and temporary K:lines
697 Permanent and temporary X:lines
706 Permanently and temporarily reserved nicks/channels
709 Temporarily reserved nicks/channels
715 All of the above; this does not include locops, rehash, dline,
719 LOCOPS messages (accepting this from \* makes LOCOPS rather similar
720 to OPERWALL which is not useful); unlike the other flags, this can
721 only be accepted from \*@\* although it can be restricted based on
725 REHASH commands; all options can be used
728 Permanent and temporary D:lines
737 Allow nothing to be done
745 The service block specifies privileged servers (services). These servers
746 have extra privileges such as setting login names on users and
747 introducing clients with umode +S (unkickable, hide channels, etc). This
748 does not allow them to set bans, you need a separate shared{} block for
751 Do not place normal servers here.
753 Multiple names may be specified but there may be only one service{}
757 The server name to grant special privileges. This may not contain
760 Hostname resolution (DNS)
761 ~~~~~~~~~~~~~~~~~~~~~~~~~
763 Charybdis uses solely DNS for all hostname/address lookups (no
764 ``/etc/hosts`` or anything else). The DNS servers are taken from
765 ``/etc/resolv.conf``. If this file does not exist or no valid IP
766 addresses are listed in it, the local host (127.0.0.1) is used. (Note
767 that the latter part did not work in older versions of Charybdis.)
769 IPv4 as well as IPv6 DNS servers are supported, but it is not possible
770 to use both IPv4 and IPv6 in ``/etc/resolv.conf``.
772 For both security and performance reasons, it is recommended that a
773 caching nameserver such as BIND be run on the same machine as Charybdis
774 and that ``/etc/resolv.conf`` only list 127.0.0.1.