]> arthur.barton.de Git - ngircd-alex.git/blob - man/ngircd.conf.5.tmpl
Merge branch 'bug145-ProvideHelp'
[ngircd-alex.git] / man / ngircd.conf.5.tmpl
1 .\"
2 .\" ngircd.conf(5) manual page template
3 .\"
4 .TH ngircd.conf 5 "Nov 2012" 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 \fBPassword\fR (string)
130 Global password for all users needed to connect to the server. The default is
131 empty, so no password is required. Please note: This feature is not available
132 if ngIRCd is using PAM!
133 .TP
134 \fBPidFile\fR (string)
135 This tells ngIRCd to write its current process ID to a file. Note that the
136 pidfile is written AFTER chroot and switching the user ID, e.g. the directory
137 the pidfile resides in must be writable by the ngIRCd user and exist in the
138 chroot directory (if configured, see above).
139 .TP
140 \fBPorts\fR (list of numbers)
141 Ports on which the server should listen for unencrypted connections. There
142 may be more than one port, separated with commas (","). Default: 6667.
143 .TP
144 \fBServerGID\fR (string or number)
145 Group ID under which the ngIRCd should run; you can use the name of the
146 group or the numerical ID.
147 .PP
148 .RS
149 .B Attention:
150 .br
151 For this to work the server must have been started with root privileges!
152 .RE
153 .TP
154 \fBServerUID\fR (string or number)
155 User ID under which the server should run; you can use the name of the user
156 or the numerical ID.
157 .PP
158 .RS
159 .B Attention:
160 .br
161 For this to work the server must have been started with root privileges! In
162 addition, the configuration and MOTD files must be readable by this user,
163 otherwise RESTART and REHASH won't work!
164 .RE
165 .SH [LIMITS]
166 Define some limits and timeouts for this ngIRCd instance. Default values
167 should be safe, but it is wise to double-check :-)
168 .TP
169 \fBConnectRetry\fR (number)
170 The server tries every <ConnectRetry> seconds to establish a link to not yet
171 (or no longer) connected servers. Default: 60.
172 .TP
173 \fBMaxConnections\fR (number)
174 Maximum number of simultaneous in- and outbound connections the server is
175 allowed to accept (0: unlimited). Default: 0.
176 .TP
177 \fBMaxConnectionsIP\fR (number)
178 Maximum number of simultaneous connections from a single IP address that
179 the server will accept (0: unlimited). This configuration options lowers
180 the risk of denial of service attacks (DoS). Default: 5.
181 .TP
182 \fBMaxJoins\fR (number)
183 Maximum number of channels a user can be member of (0: no limit).
184 Default: 10.
185 .TP
186 \fBMaxNickLength\fR (number)
187 Maximum length of an user nickname (Default: 9, as in RFC 2812). Please
188 note that all servers in an IRC network MUST use the same maximum nickname
189 length!
190 .TP
191 \fBMaxListSize\fR (number)
192 Maximum number of channels returned in response to a LIST command. Default: 100.
193 .TP
194 \fBPingTimeout\fR (number)
195 After <PingTimeout> seconds of inactivity the server will send a PING to
196 the peer to test whether it is alive or not. Default: 120.
197 .TP
198 \fBPongTimeout\fR (number)
199 If a client fails to answer a PING with a PONG within <PongTimeout>
200 seconds, it will be disconnected by the server. Default: 20.
201 .SH [OPTIONS]
202 Optional features and configuration options to further tweak the behavior of
203 ngIRCd. If you want to get started quickly, you most probably don't have to
204 make changes here -- they are all optional.
205 .TP
206 \fBAllowRemoteOper\fR (boolean)
207 Are IRC operators connected to remote servers allowed to control this server,
208 e.g. are they allowed to use administrative commands like CONNECT, DIE,
209 SQUIT, ... that affect this server? Default: no.
210 .TP
211 \fBChrootDir\fR (string)
212 A directory to chroot in when everything is initialized. It doesn't need
213 to be populated if ngIRCd is compiled as a static binary. By default ngIRCd
214 won't use the chroot() feature.
215 .PP
216 .RS
217 .B Attention:
218 .br
219 For this to work the server must have been started with root privileges!
220 .RE
221 .TP
222 \fBCloakHost\fR (string)
223 Set this hostname for every client instead of the real one. Default: empty,
224 don't change. Use %x to add the hashed value of the original hostname.
225 .TP
226 \fBCloakHostModeX\fR (string)
227 Use this hostname for hostname cloaking on clients that have the user mode
228 "+x" set, instead of the name of the server. Default: empty, use the name
229 of the server. Use %x to add the hashed value of the original hostname
230 .TP
231 \fBCloakHostSalt\fR (string)
232 The Salt for cloaked hostname hashing. When undefined a random hash is
233 generated after each server start.
234 .TP
235 \fBCloakUserToNick\fR (boolean)
236 Set every clients' user name to their nickname and hide the one supplied
237 by the IRC client. Default: no.
238 .TP
239 \fBConnectIPv4\fR (boolean)
240 Set this to no if you do not want ngIRCd to connect to other IRC servers using
241 the IPv4 protocol. This allows the usage of ngIRCd in IPv6-only setups.
242 Default: yes.
243 .TP
244 \fBConnectIPv6\fR (boolean)
245 Set this to no if you do not want ngIRCd to connect to other IRC servers using
246 the IPv6 protocol.
247 Default: yes.
248 .TP
249 \fBDNS\fR (boolean)
250 If set to false, ngIRCd will not make any DNS lookups when clients connect.
251 If you configure the daemon to connect to other servers, ngIRCd may still
252 perform a DNS lookup if required.
253 Default: yes.
254 .TP
255 \fBIdent\fR (boolean)
256 If ngIRCd is compiled with IDENT support this can be used to disable IDENT
257 lookups at run time.
258 Users identified using IDENT are registered without the "~" character
259 prepended to their user name.
260 Default: yes.
261 .TP
262 \fBMorePrivacy\fR (boolean)
263 This will cause ngIRCd to censor user idle time, logon time as well as the
264 part/quit messages (that are sometimes used to inform everyone about which
265 client software is being used). WHOWAS requests are also silently ignored.
266 This option is most useful when ngIRCd is being used together with
267 anonymizing software such as TOR or I2P and one does not wish to make it
268 too easy to collect statistics on the users.
269 Default: no.
270 .TP
271 \fBNoticeAuth\fR (boolean)
272 Normally ngIRCd doesn't send any messages to a client until it is registered.
273 Enable this option to let the daemon send "NOTICE AUTH" messages to clients
274 while connecting. Default: no.
275 .TP
276 \fBOperCanUseMode\fR (boolean)
277 Should IRC Operators be allowed to use the MODE command even if they are
278 not(!) channel-operators? Default: no.
279 .TP
280 \fBOperChanPAutoOp\fR (boolean)
281 Should IRC Operators get AutoOp (+o) in persistent (+P) channels?
282 Default: yes.
283 .TP
284 \fBOperServerMode\fR (boolean)
285 If \fBOperCanUseMode\fR is enabled, this may lead the compatibility problems
286 with Servers that run the ircd-irc2 Software. This Option "masks" mode
287 requests by non-chanops as if they were coming from the server. Default: no;
288 only enable it if you have ircd-irc2 servers in your IRC network.
289 .TP
290 \fBPAM\fR (boolean)
291 If ngIRCd is compiled with PAM support this can be used to disable all calls
292 to the PAM library at runtime; all users connecting without password are
293 allowed to connect, all passwords given will fail.
294 Users identified using PAM are registered without the "~" character
295 prepended to their user name.
296 Default: yes.
297 .TP
298 \fBPAMIsOptional\fR (boolean)
299 When PAM is enabled, all clients are required to be authenticated using PAM;
300 connecting to the server without successful PAM authentication isn't possible.
301 If this option is set, clients not sending a password are still allowed to
302 connect: they won't become "identified" and keep the "~" character prepended
303 to their supplied user name.
304 Please note:
305 To make some use of this behavior, it most probably isn't useful to enable
306 "Ident", "PAM" and "PAMIsOptional" at the same time, because you wouldn't be
307 able to distinguish between Ident'ified and PAM-authenticated users: both
308 don't have a "~" character prepended to their respective user names!
309 Default: no.
310 .TP
311 \fBPredefChannelsOnly\fR (boolean)
312 If enabled, no new channels can be created. Useful if you do not want to have
313 other channels than those defined in [Channel] sections in the configuration
314 file on this server.
315 Default: no.
316 .TP
317 \fBRequireAuthPing\fR (boolean)
318 Let ngIRCd send an "authentication PING" when a new client connects, and
319 register this client only after receiving the corresponding "PONG" reply.
320 Default: no.
321 .TP
322 \fBScrubCTCP\fR (boolean)
323 If set to true, ngIRCd will silently drop all CTCP requests sent to it from
324 both clients and servers. It will also not forward CTCP requests to any
325 other servers. CTCP requests can be used to query user clients about which
326 software they are using and which versions said software is. CTCP can also be
327 used to reveal clients IP numbers. ACTION CTCP requests are not blocked,
328 this means that /me commands will not be dropped, but please note that
329 blocking CTCP will disable file sharing between users!
330 Default: no.
331 .TP
332 \fBSyslogFacility\fR (string)
333 Syslog "facility" to which ngIRCd should send log messages. Possible
334 values are system dependent, but most probably "auth", "daemon", "user"
335 and "local1" through "local7" are possible values; see syslog(3).
336 Default is "local5" for historical reasons, you probably want to
337 change this to "daemon", for example.
338 .TP
339 \fBWebircPassword\fR (string)
340 Password required for using the WEBIRC command used by some Web-to-IRC
341 gateways. If not set or empty, the WEBIRC command can't be used.
342 Default: not set.
343 .SH [SSL]
344 All SSL-related configuration variables are located in the
345 .I [SSL]
346 section. Please note that this whole section is only recognized by ngIRCd
347 when it is compiled with support for SSL using OpenSSL or GnuTLS!
348 .TP
349 \fBCertFile\fR (string)
350 SSL Certificate file of the private server key.
351 .TP
352 \fBDHFile\fR (string)
353 Name of the Diffie-Hellman Parameter file. Can be created with GnuTLS
354 "certtool \-\-generate-dh-params" or "openssl dhparam". If this file is not
355 present, it will be generated on startup when ngIRCd was compiled with GnuTLS
356 support (this may take some time). If ngIRCd was compiled with OpenSSL, then
357 (Ephemeral)-Diffie-Hellman Key Exchanges and several Cipher Suites will not be
358 available.
359 .TP
360 \fBKeyFile\fR (string)
361 Filename of SSL Server Key to be used for SSL connections. This is required
362 for SSL/TLS support.
363 .TP
364 \fBKeyFilePassword\fR (string)
365 OpenSSL only: Password to decrypt the private key file.
366 .TP
367 \fBPorts\fR (list of numbers)
368 Same as \fBPorts\fR , except that ngIRCd will expect incoming connections
369 to be SSL/TLS encrypted. Common port numbers for SSL-encrypted IRC are 6669
370 and 6697. Default: none.
371 .SH [OPERATOR]
372 .I [Operator]
373 sections are used to define IRC Operators. There may be more than one
374 .I [Operator]
375 block, one for each local operator.
376 .TP
377 \fBName\fR (string)
378 ID of the operator (may be different of the nickname).
379 .TP
380 \fBPassword\fR (string)
381 Password of the IRC operator.
382 .TP
383 \fBMask\fR (string)
384 Mask that is to be checked before an /OPER for this account is accepted.
385 Example: nick!ident@*.example.com
386 .SH [SERVER]
387 Other servers are configured in
388 .I [Server]
389 sections. If you configure a port for the connection, then this ngIRCd
390 tries to connect to to the other server on the given port (active);
391 if not, it waits for the other server to connect (passive).
392 .PP
393 ngIRCd supports "server groups": You can assign an "ID" to every server
394 with which you want this ngIRCd to link, and the daemon ensures that at
395 any given time only one direct link exists to servers with the same ID.
396 So if a server of a group won't answer, ngIRCd tries to connect to the next
397 server in the given group (="with the same ID"), but never tries to connect
398 to more than one server of this group simultaneously.
399 .PP
400 There may be more than one
401 .I [Server]
402 block.
403 .TP
404 \fBName\fR (string)
405 IRC name of the remote server.
406 .TP
407 \fBHost\fR (string)
408 Internet host name (or IP address) of the peer.
409 .TP
410 \fBBind\fR (string)
411 IP address to use as source IP for the outgoing connection. Default is
412 to let the operating system decide.
413 .TP
414 \fBPort\fR (number)
415 Port of the remote server to which ngIRCd should connect (active).
416 If no port is assigned to a configured server, the daemon only waits for
417 incoming connections (passive, default).
418 .TP
419 \fBMyPassword\fR (string)
420 Own password for this connection. This password has to be configured as
421 \fBPeerPassword\fR on the other server. Must not have ':' as first character.
422 .TP
423 \fBPeerPassword\fR (string)
424 Foreign password for this connection. This password has to be configured as
425 \fBMyPassword\fR on the other server.
426 .TP
427 \fBGroup\fR (number)
428 Group of this server (optional).
429 .TP
430 \fBPassive\fR (boolean)
431 Disable automatic connection even if port value is specified. Default: false.
432 You can use the IRC Operator command CONNECT later on to create the link.
433 .TP
434 \fBSSLConnect\fR (boolean)
435 Connect to the remote server using TLS/SSL. Default: false.
436 .TP
437 \fBServiceMask\fR (string)
438 Define a (case insensitive) list of masks matching nicknames that should be
439 treated as IRC services when introduced via this remote server, separated
440 by commas (","). REGULAR SERVERS DON'T NEED this parameter, so leave it empty
441 (which is the default).
442 .PP
443 .RS
444 When you are connecting IRC services which mask as a IRC server and which use
445 "virtual users" to communicate with, for example "NickServ" and "ChanServ",
446 you should set this parameter to something like "*Serv", "*Serv,OtherNick",
447 or "NickServ,ChanServ,XyzServ".
448 .SH [CHANNEL]
449 Pre-defined channels can be configured in
450 .I [Channel]
451 sections. Such channels are created by the server when starting up and even
452 persist when there are no more members left.
453 .PP
454 Persistent channels are marked with the mode 'P', which can be set and unset
455 by IRC operators like other modes on the fly.
456 .PP
457 There may be more than one
458 .I [Channel]
459 block.
460 .TP
461 \fBName\fR (string)
462 Name of the channel, including channel prefix ("#" or "&").
463 .TP
464 \fBTopic\fR (string)
465 Topic for this channel.
466 .TP
467 \fBModes\fR (string)
468 Initial channel modes.
469 .TP
470 \fBKey\fR (string)
471 Sets initial channel key (only relevant if channel mode "k" is set).
472 .TP
473 \fBKeyFile\fR (string)
474 Path and file name of a "key file" containing individual channel keys for
475 different users. The file consists of plain text lines with the following
476 syntax (without spaces!):
477 .PP
478 .RS
479 .RS
480 .I user
481 :
482 .I nick
483 :
484 .I key
485 .RE
486 .PP
487 .I user
488 and
489 .I nick
490 can contain the wildcard character "*".
491 .br
492 .I key
493 is an arbitrary password.
494 .PP
495 Valid examples are:
496 .PP
497 .RS
498 *:*:KeY
499 .br
500 *:nick:123
501 .br
502 ~user:*:xyz
503 .RE
504 .PP
505 The key file is read on each JOIN command when this channel has a key
506 (channel mode +k). Access is granted, if a) the channel key set using the
507 MODE +k command or b) one of the lines in the key file match.
508 .PP
509 .B Please note:
510 .br
511 The file is not reopened on each access, so you can modify and overwrite it
512 without problems, but moving or deleting the file will have not effect until
513 the daemon re-reads its configuration!
514 .RE
515 .TP
516 \fBMaxUsers\fR (number)
517 Set maximum user limit for this channel (only relevant if channel mode "l"
518 is set).
519 .SH HINTS
520 It's wise to use "ngircd \-\-configtest" to validate the configuration file
521 after changing it. See
522 .BR ngircd (8)
523 for details.
524 .SH AUTHOR
525 Alexander Barton, <alex@barton.de>
526 .br
527 Florian Westphal, <fw@strlen.de>
528 .PP
529 Homepage: http://ngircd.barton.de/
530 .SH "SEE ALSO"
531 .BR ngircd (8)
532 .\"
533 .\" -eof-