]> arthur.barton.de Git - ngircd-alex.git/blob - man/ngircd.conf.5.tmpl
Implement new configuration option "Network"
[ngircd-alex.git] / man / ngircd.conf.5.tmpl
1 .\"
2 .\" ngircd.conf(5) manual page template
3 .\"
4 .TH ngircd.conf 5 "Oct 2013" ngIRCd "ngIRCd Manual"
5 .SH NAME
6 ngircd.conf \- configuration file of ngIRCd
7 .SH SYNOPSIS
8 .B :ETCDIR:/ngircd.conf
9 .SH DESCRIPTION
10 .BR ngircd.conf
11 is the configuration file of the
12 .BR ngircd (8)
13 Internet Relay Chat (IRC) daemon, which must be customized to the local
14 preferences and needs.
15 .PP
16 Most variables can be modified while the ngIRCd daemon is already running:
17 It will reload its configuration file when a HUP signal or REHASH command
18 is received.
19 .SH "FILE FORMAT"
20 The file consists of sections and parameters. A section begins with the name
21 of the section in square brackets and continues until the next section
22 begins.
23 .PP
24 Sections contain parameters of the form
25 .PP
26 .RS
27 .I name
28 =
29 .I value
30 .RE
31 .PP
32 Empty lines and any line beginning with a semicolon (';') or a hash ('#')
33 character are treated as a comment and will be ignored. Leading and trailing
34 whitespaces are trimmed before any processing takes place.
35 .PP
36 The file format is line-based - that means, each non-empty newline-terminated
37 line represents either a comment, a section name, or a parameter.
38 .PP
39 Section and parameter names are not case sensitive.
40 .PP
41 There are three types of variables:
42 .I booleans,
43 .I text strings,
44 and
45 .I numbers.
46 Boolean values are
47 .I true
48 if they are "yes", "true", or any non-null integer. Text strings are used 1:1
49 without leading and following spaces; there is no way to quote strings. And
50 for numbers all decimal integer values are valid.
51 .PP
52 In addition, some string or numerical variables accept lists of values,
53 separated by commas (",").
54 .SH "SECTION OVERVIEW"
55 The file can contain blocks of seven types: [Global], [Limits], [Options],
56 [SSL], [Operator], [Server], and [Channel].
57 .PP
58 The main configuration of the server is stored in the
59 .I [Global]
60 section, like the server name, administrative information and the ports on
61 which the server should be listening. The variables in this section have to be
62 adjusted to the local requirements most of the time, whereas all the variables
63 in the other sections can be left on there defaults very often.
64 .PP
65 Options in the
66 .I [Limits]
67 block are used to tweak different limits and timeouts of the daemon, like the
68 maximum number of clients allowed to connect to this server. Variables in the
69 .I [Options]
70 section can be used to enable or disable specific features of ngIRCd, like
71 support for IDENT, PAM, IPv6, and protocol and cloaking features. The
72 .I [SSL]
73 block contains all SSL-related configuration variables. These three sections
74 are all optional.
75 .PP
76 IRC operators of this server are defined in
77 .I [Operator]
78 blocks. Links to remote servers are configured in
79 .I [Server]
80 sections. And
81 .I [Channel]
82 blocks are used to configure pre-defined ("persistent") IRC channels.
83 .PP
84 There can be more than one [Operator], [Server] and [Channel] section per
85 configuration file (one for each operator, server, and channel), but only
86 exactly one [Global], one [Limits], one [Options], and one [SSL] section.
87 .SH [GLOBAL]
88 The
89 .I [Global]
90 section of this file is used to define the main configuration of the server,
91 like the server name and the ports on which the server should be listening.
92 These settings depend on your personal preferences, so you should make sure
93 that they correspond to your installation and setup!
94 .TP
95 \fBName\fR (string; required)
96 Server name in the IRC network. This is an individual name of the IRC
97 server, it is not related to the DNS host name. It must be unique in the
98 IRC network and must contain at least one dot (".") character.
99 .TP
100 \fBAdminInfo1\fR, \fBAdminInfo2\fR, \fBAdminEMail\fR (string)
101 Information about the server and the administrator, used by the ADMIN
102 command. This information is not required by the server but by RFC!
103 .TP
104 \fBHelpFile\fR (string)
105 Text file which contains the ngIRCd help text. This file is required
106 to display help texts when using the "HELP <cmd>" command.
107 Please note: Changes made to this file take effect when ngircd starts up
108 or is instructed to re-read its configuration file.
109 .TP
110 \fBInfo\fR (string)
111 Info text of the server. This will be shown by WHOIS and LINKS requests for
112 example.
113 .TP
114 \fBListen\fR (list of strings)
115 A comma separated list of IP address on which the server should listen.
116 If unset, the defaults value is "0.0.0.0" or, if ngIRCd was compiled
117 with IPv6 support, "::,0.0.0.0". So the server listens on all configured
118 IP addresses and interfaces by default.
119 .TP
120 \fBMotdFile\fR (string)
121 Text file with the "message of the day" (MOTD). This message will be shown to
122 all users connecting to the server. Please note: Changes made to this file
123 take effect when ngircd starts up or is instructed to re-read its
124 configuration file.
125 .TP
126 \fBMotdPhrase\fR (string)
127 A simple Phrase (<256 chars) if you don't want to use a MOTD file.
128 .TP
129 \fBNetwork\fR (string)
130 The name of the IRC network to which this server belongs. This name is
131 optional, should only contain ASCII characters, and can't contain spaces.
132 It is only used to inform clients. The default is empty, so no network
133 name is announced to clients.
134 .TP
135 \fBPassword\fR (string)
136 Global password for all users needed to connect to the server. The default is
137 empty, so no password is required. Please note: This feature is not available
138 if ngIRCd is using PAM!
139 .TP
140 \fBPidFile\fR (string)
141 This tells ngIRCd to write its current process ID to a file. Note that the
142 "PID file" is written AFTER chroot and switching the user ID, e.g. the directory
143 the file resides in must be writable by the ngIRCd user and exist in the
144 chroot directory (if configured, see above).
145 .TP
146 \fBPorts\fR (list of numbers)
147 Ports on which the server should listen for unencrypted connections. There
148 may be more than one port, separated with commas (","). Default: 6667.
149 .TP
150 \fBServerGID\fR (string or number)
151 Group ID under which the ngIRCd should run; you can use the name of the
152 group or the numerical ID.
153 .PP
154 .RS
155 .B Attention:
156 .br
157 For this to work the server must have been started with root privileges!
158 .RE
159 .TP
160 \fBServerUID\fR (string or number)
161 User ID under which the server should run; you can use the name of the user
162 or the numerical ID.
163 .PP
164 .RS
165 .B Attention:
166 .br
167 For this to work the server must have been started with root privileges! In
168 addition, the configuration and MOTD files must be readable by this user,
169 otherwise RESTART and REHASH won't work!
170 .RE
171 .SH [LIMITS]
172 Define some limits and timeouts for this ngIRCd instance. Default values
173 should be safe, but it is wise to double-check :-)
174 .TP
175 \fBConnectRetry\fR (number)
176 The server tries every <ConnectRetry> seconds to establish a link to not yet
177 (or no longer) connected servers. Default: 60.
178 .TP
179 \fBIdleTimeout\fR (number)
180 Number of seconds after which the whole daemon should shutdown when no
181 connections are left active after handling at least one client (0: never). This
182 can be useful for testing or when ngIRCd is started using "socket activation"
183 with systemd(8), for example. Default: 0.
184 .TP
185 \fBMaxConnections\fR (number)
186 Maximum number of simultaneous in- and outbound connections the server is
187 allowed to accept (0: unlimited). Default: 0.
188 .TP
189 \fBMaxConnectionsIP\fR (number)
190 Maximum number of simultaneous connections from a single IP address that
191 the server will accept (0: unlimited). This configuration options lowers
192 the risk of denial of service attacks (DoS). Default: 5.
193 .TP
194 \fBMaxJoins\fR (number)
195 Maximum number of channels a user can be member of (0: no limit).
196 Default: 10.
197 .TP
198 \fBMaxNickLength\fR (number)
199 Maximum length of an user nickname (Default: 9, as in RFC 2812). Please
200 note that all servers in an IRC network MUST use the same maximum nickname
201 length!
202 .TP
203 \fBMaxListSize\fR (number)
204 Maximum number of channels returned in response to a LIST command. Default: 100.
205 .TP
206 \fBPingTimeout\fR (number)
207 After <PingTimeout> seconds of inactivity the server will send a PING to
208 the peer to test whether it is alive or not. Default: 120.
209 .TP
210 \fBPongTimeout\fR (number)
211 If a client fails to answer a PING with a PONG within <PongTimeout>
212 seconds, it will be disconnected by the server. Default: 20.
213 .SH [OPTIONS]
214 Optional features and configuration options to further tweak the behavior of
215 ngIRCd. If you want to get started quickly, you most probably don't have to
216 make changes here -- they are all optional.
217 .TP
218 \fBAllowedChannelTypes\fR (string)
219 List of allowed channel types (channel prefixes) for newly created channels
220 on the local server. By default, all supported channel types are allowed.
221 Set this variable to the empty string to disallow creation of new channels
222 by local clients at all. Default: #&+
223 .TP
224 \fBAllowRemoteOper\fR (boolean)
225 Are IRC operators connected to remote servers allowed to control this server,
226 e.g. are they allowed to use administrative commands like CONNECT, DIE,
227 SQUIT, ... that affect this server? Default: no.
228 .TP
229 \fBChrootDir\fR (string)
230 A directory to chroot in when everything is initialized. It doesn't need
231 to be populated if ngIRCd is compiled as a static binary. By default ngIRCd
232 won't use the chroot() feature.
233 .PP
234 .RS
235 .B Attention:
236 .br
237 For this to work the server must have been started with root privileges!
238 .RE
239 .TP
240 \fBCloakHost\fR (string)
241 Set this hostname for every client instead of the real one. Default: empty,
242 don't change. Use %x to add the hashed value of the original hostname.
243 .TP
244 \fBCloakHostModeX\fR (string)
245 Use this hostname for hostname cloaking on clients that have the user mode
246 "+x" set, instead of the name of the server. Default: empty, use the name
247 of the server. Use %x to add the hashed value of the original hostname
248 .TP
249 \fBCloakHostSalt\fR (string)
250 The Salt for cloaked hostname hashing. When undefined a random hash is
251 generated after each server start.
252 .TP
253 \fBCloakUserToNick\fR (boolean)
254 Set every clients' user name to their nickname and hide the one supplied
255 by the IRC client. Default: no.
256 .TP
257 \fBConnectIPv4\fR (boolean)
258 Set this to no if you do not want ngIRCd to connect to other IRC servers using
259 the IPv4 protocol. This allows the usage of ngIRCd in IPv6-only setups.
260 Default: yes.
261 .TP
262 \fBConnectIPv6\fR (boolean)
263 Set this to no if you do not want ngIRCd to connect to other IRC servers using
264 the IPv6 protocol.
265 Default: yes.
266 .TP
267 \fBDefaultUserModes\fR (string)
268 Default user mode(s) to set on new local clients. Please note that only modes
269 can be set that the client could set on itself, you can't set "a" (away) or
270 "o" (IRC Op), for example!
271 Default: none.
272 .TP
273 \fBDNS\fR (boolean)
274 If set to false, ngIRCd will not make any DNS lookups when clients connect.
275 If you configure the daemon to connect to other servers, ngIRCd may still
276 perform a DNS lookup if required.
277 Default: yes.
278 .TP
279 \fBIdent\fR (boolean)
280 If ngIRCd is compiled with IDENT support this can be used to disable IDENT
281 lookups at run time.
282 Users identified using IDENT are registered without the "~" character
283 prepended to their user name.
284 Default: yes.
285 .TP
286 .TP
287 \fBIncludeDir\fR (string)
288 Directory containing configuration snippets (*.conf), that should be read in
289 after parsing the current configuration file.
290 Default: none.
291 \fBMorePrivacy\fR (boolean)
292 This will cause ngIRCd to censor user idle time, logon time as well as the
293 part/quit messages (that are sometimes used to inform everyone about which
294 client software is being used). WHOWAS requests are also silently ignored.
295 This option is most useful when ngIRCd is being used together with
296 anonymizing software such as TOR or I2P and one does not wish to make it
297 too easy to collect statistics on the users.
298 Default: no.
299 .TP
300 \fBNoticeAuth\fR (boolean)
301 Normally ngIRCd doesn't send any messages to a client until it is registered.
302 Enable this option to let the daemon send "NOTICE AUTH" messages to clients
303 while connecting. Default: no.
304 .TP
305 \fBOperCanUseMode\fR (boolean)
306 Should IRC Operators be allowed to use the MODE command even if they are
307 not(!) channel-operators? Default: no.
308 .TP
309 \fBOperChanPAutoOp\fR (boolean)
310 Should IRC Operators get AutoOp (+o) in persistent (+P) channels?
311 Default: yes.
312 .TP
313 \fBOperServerMode\fR (boolean)
314 If \fBOperCanUseMode\fR is enabled, this may lead the compatibility problems
315 with Servers that run the ircd-irc2 Software. This Option "masks" mode
316 requests by non-chanops as if they were coming from the server. Default: no;
317 only enable it if you have ircd-irc2 servers in your IRC network.
318 .TP
319 \fBPAM\fR (boolean)
320 If ngIRCd is compiled with PAM support this can be used to disable all calls
321 to the PAM library at runtime; all users connecting without password are
322 allowed to connect, all passwords given will fail.
323 Users identified using PAM are registered without the "~" character
324 prepended to their user name.
325 Default: yes.
326 .TP
327 \fBPAMIsOptional\fR (boolean)
328 When PAM is enabled, all clients are required to be authenticated using PAM;
329 connecting to the server without successful PAM authentication isn't possible.
330 If this option is set, clients not sending a password are still allowed to
331 connect: they won't become "identified" and keep the "~" character prepended
332 to their supplied user name.
333 Please note:
334 To make some use of this behavior, it most probably isn't useful to enable
335 "Ident", "PAM" and "PAMIsOptional" at the same time, because you wouldn't be
336 able to distinguish between Ident'ified and PAM-authenticated users: both
337 don't have a "~" character prepended to their respective user names!
338 Default: no.
339 .TP
340 \fBRequireAuthPing\fR (boolean)
341 Let ngIRCd send an "authentication PING" when a new client connects, and
342 register this client only after receiving the corresponding "PONG" reply.
343 Default: no.
344 .TP
345 \fBScrubCTCP\fR (boolean)
346 If set to true, ngIRCd will silently drop all CTCP requests sent to it from
347 both clients and servers. It will also not forward CTCP requests to any
348 other servers. CTCP requests can be used to query user clients about which
349 software they are using and which versions said software is. CTCP can also be
350 used to reveal clients IP numbers. ACTION CTCP requests are not blocked,
351 this means that /me commands will not be dropped, but please note that
352 blocking CTCP will disable file sharing between users!
353 Default: no.
354 .TP
355 \fBSyslogFacility\fR (string)
356 Syslog "facility" to which ngIRCd should send log messages. Possible
357 values are system dependent, but most probably "auth", "daemon", "user"
358 and "local1" through "local7" are possible values; see syslog(3).
359 Default is "local5" for historical reasons, you probably want to
360 change this to "daemon", for example.
361 .TP
362 \fBWebircPassword\fR (string)
363 Password required for using the WEBIRC command used by some Web-to-IRC
364 gateways. If not set or empty, the WEBIRC command can't be used.
365 Default: not set.
366 .SH [SSL]
367 All SSL-related configuration variables are located in the
368 .I [SSL]
369 section. Please note that this whole section is only recognized by ngIRCd
370 when it is compiled with support for SSL using OpenSSL or GnuTLS!
371 .TP
372 \fBCertFile\fR (string)
373 SSL Certificate file of the private server key.
374 .TP
375 \fBCipherList\fR (string)
376 Select cipher suites allowed for SSL/TLS connections.  This defaults to
377 "HIGH:!aNULL:@STRENGTH" (OpenSSL) or "SECURE128" (GnuTLS).
378 Please see 'man 1ssl ciphers' (OpenSSL) and 'man 3 gnutls_priority_init'
379 (GnuTLS) for details.
380 .TP
381 \fBDHFile\fR (string)
382 Name of the Diffie-Hellman Parameter file. Can be created with GnuTLS
383 "certtool \-\-generate-dh-params" or "openssl dhparam". If this file is not
384 present, it will be generated on startup when ngIRCd was compiled with GnuTLS
385 support (this may take some time). If ngIRCd was compiled with OpenSSL, then
386 (Ephemeral)-Diffie-Hellman Key Exchanges and several Cipher Suites will not be
387 available.
388 .TP
389 \fBKeyFile\fR (string)
390 Filename of SSL Server Key to be used for SSL connections. This is required
391 for SSL/TLS support.
392 .TP
393 \fBKeyFilePassword\fR (string)
394 OpenSSL only: Password to decrypt the private key file.
395 .TP
396 \fBPorts\fR (list of numbers)
397 Same as \fBPorts\fR , except that ngIRCd will expect incoming connections
398 to be SSL/TLS encrypted. Common port numbers for SSL-encrypted IRC are 6669
399 and 6697. Default: none.
400 .SH [OPERATOR]
401 .I [Operator]
402 sections are used to define IRC Operators. There may be more than one
403 .I [Operator]
404 block, one for each local operator.
405 .TP
406 \fBName\fR (string)
407 ID of the operator (may be different of the nickname).
408 .TP
409 \fBPassword\fR (string)
410 Password of the IRC operator.
411 .TP
412 \fBMask\fR (string)
413 Mask that is to be checked before an /OPER for this account is accepted.
414 Example: nick!ident@*.example.com
415 .SH [SERVER]
416 Other servers are configured in
417 .I [Server]
418 sections. If you configure a port for the connection, then this ngIRCd
419 tries to connect to to the other server on the given port (active);
420 if not, it waits for the other server to connect (passive).
421 .PP
422 ngIRCd supports "server groups": You can assign an "ID" to every server
423 with which you want this ngIRCd to link, and the daemon ensures that at
424 any given time only one direct link exists to servers with the same ID.
425 So if a server of a group won't answer, ngIRCd tries to connect to the next
426 server in the given group (="with the same ID"), but never tries to connect
427 to more than one server of this group simultaneously.
428 .PP
429 There may be more than one
430 .I [Server]
431 block.
432 .TP
433 \fBName\fR (string)
434 IRC name of the remote server.
435 .TP
436 \fBHost\fR (string)
437 Internet host name (or IP address) of the peer.
438 .TP
439 \fBBind\fR (string)
440 IP address to use as source IP for the outgoing connection. Default is
441 to let the operating system decide.
442 .TP
443 \fBPort\fR (number)
444 Port of the remote server to which ngIRCd should connect (active).
445 If no port is assigned to a configured server, the daemon only waits for
446 incoming connections (passive, default).
447 .TP
448 \fBMyPassword\fR (string)
449 Own password for this connection. This password has to be configured as
450 \fBPeerPassword\fR on the other server. Must not have ':' as first character.
451 .TP
452 \fBPeerPassword\fR (string)
453 Foreign password for this connection. This password has to be configured as
454 \fBMyPassword\fR on the other server.
455 .TP
456 \fBGroup\fR (number)
457 Group of this server (optional).
458 .TP
459 \fBPassive\fR (boolean)
460 Disable automatic connection even if port value is specified. Default: false.
461 You can use the IRC Operator command CONNECT later on to create the link.
462 .TP
463 \fBSSLConnect\fR (boolean)
464 Connect to the remote server using TLS/SSL. Default: false.
465 .TP
466 \fBServiceMask\fR (string)
467 Define a (case insensitive) list of masks matching nicknames that should be
468 treated as IRC services when introduced via this remote server, separated
469 by commas (","). REGULAR SERVERS DON'T NEED this parameter, so leave it empty
470 (which is the default).
471 .PP
472 .RS
473 When you are connecting IRC services which mask as a IRC server and which use
474 "virtual users" to communicate with, for example "NickServ" and "ChanServ",
475 you should set this parameter to something like "*Serv", "*Serv,OtherNick",
476 or "NickServ,ChanServ,XyzServ".
477 .SH [CHANNEL]
478 Pre-defined channels can be configured in
479 .I [Channel]
480 sections. Such channels are created by the server when starting up and even
481 persist when there are no more members left.
482 .PP
483 Persistent channels are marked with the mode 'P', which can be set and unset
484 by IRC operators like other modes on the fly.
485 .PP
486 There may be more than one
487 .I [Channel]
488 block.
489 .TP
490 \fBName\fR (string)
491 Name of the channel, including channel prefix ("#" or "&").
492 .TP
493 \fBTopic\fR (string)
494 Topic for this channel.
495 .TP
496 \fBModes\fR (string)
497 Initial channel modes.
498 .TP
499 \fBKey\fR (string)
500 Sets initial channel key (only relevant if channel mode "k" is set).
501 .TP
502 \fBKeyFile\fR (string)
503 Path and file name of a "key file" containing individual channel keys for
504 different users. The file consists of plain text lines with the following
505 syntax (without spaces!):
506 .PP
507 .RS
508 .RS
509 .I user
510 :
511 .I nick
512 :
513 .I key
514 .RE
515 .PP
516 .I user
517 and
518 .I nick
519 can contain the wildcard character "*".
520 .br
521 .I key
522 is an arbitrary password.
523 .PP
524 Valid examples are:
525 .PP
526 .RS
527 *:*:KeY
528 .br
529 *:nick:123
530 .br
531 ~user:*:xyz
532 .RE
533 .PP
534 The key file is read on each JOIN command when this channel has a key
535 (channel mode +k). Access is granted, if a) the channel key set using the
536 MODE +k command or b) one of the lines in the key file match.
537 .PP
538 .B Please note:
539 .br
540 The file is not reopened on each access, so you can modify and overwrite it
541 without problems, but moving or deleting the file will have not effect until
542 the daemon re-reads its configuration!
543 .RE
544 .TP
545 \fBMaxUsers\fR (number)
546 Set maximum user limit for this channel (only relevant if channel mode "l"
547 is set).
548 .SH HINTS
549 It's wise to use "ngircd \-\-configtest" to validate the configuration file
550 after changing it. See
551 .BR ngircd (8)
552 for details.
553 .SH AUTHOR
554 Alexander Barton, <alex@barton.de>
555 .br
556 Florian Westphal, <fw@strlen.de>
557 .PP
558 Homepage: http://ngircd.barton.de/
559 .SH "SEE ALSO"
560 .BR ngircd (8)
561 .\"
562 .\" -eof-