]> arthur.barton.de Git - ngircd-alex.git/blob - man/ngircd.conf.5.tmpl
ngircd.conf.5: describe types of variables
[ngircd-alex.git] / man / ngircd.conf.5.tmpl
1 .\"
2 .\" ngircd.conf(5) manual page template
3 .\"
4 .TH ngircd.conf 5 "Mar 2011" 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 you should adept to your 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 when a HUP signal is received.
18 .SH "FILE FORMAT"
19 The file consists of sections and parameters. A section begins with the name
20 of the section in square brackets and continues until the next section
21 begins.
22 .PP
23 Sections contain parameters of the form
24 .PP
25 .RS
26 .I name
27 =
28 .I value
29 .RE
30 .PP
31 Empty lines and any line beginning with a semicolon (';') or a hash ('#')
32 character are treated as a comment and will be ignored. Leading and trailing
33 whitespaces are trimmed before any processing takes place.
34 .PP
35 The file format is line-based - that means, each non-empty newline-terminated
36 line represents either a comment, a section name, or a parameter.
37 .PP
38 Section and parameter names are not case sensitive.
39 .PP
40 There are three types of variables:
41 .I booleans,
42 .I text strings,
43 and
44 .I numbers.
45 Boolean values are
46 .I true
47 if they are "yes", "true", or any non-null integer. Text strings are used 1:1
48 without leading and following spaces; there is not way to quote strings. And
49 for numbers all decimal integer values are valid.
50 .PP
51 In addition, some string or numerical variables accept lists of values,
52 separated by commas (",").
53 .SH "SECTION OVERVIEW"
54 The file can contain blocks of four types: [Global], [Operator], [Server],
55 and [Channel].
56 .PP
57 The main configuration of the server is stored in the
58 .I [Global]
59 section, like the server name, administrative information and the
60 ports on which the server should be listening. IRC operators of this
61 server are defined in
62 .I [Operator]
63 blocks.
64 .I [Features]
65 can be used to disable compile-time features at run time, e.g. if ngircd
66 was built to support ident lookups, but you do not want ngircd to perform
67 ident lookups you can disable them here.
68 This section is optional.
69 .I [Server]
70 is the section where server links are configured. And
71 .I [Channel]
72 blocks are used to configure pre-defined ("persistent") IRC channels.
73 .PP
74 There can be more than one [Operator], [Server] and [Channel] sections
75 per configuration file, but only one [Global] and one [Features] section.
76 .SH [GLOBAL]
77 The
78 .I [Global]
79 section is used to define the server main configuration, like the server
80 name and the ports on which the server should be listening.
81 .TP
82 \fBName\fR (string)
83 Server name in the IRC network. This is an individual name of the IRC
84 server, it is not related to the DNS host name. It must be unique in the
85 IRC network and must contain at least one dot (".") character.
86 .TP
87 \fBInfo\fR (string)
88 Info text of the server. This will be shown by WHOIS and LINKS requests for
89 example.
90 .TP
91 \fBPassword\fR (string)
92 Global password for all users needed to connect to the server. The default
93 is empty, so no password is required.
94 .TP
95 \fBWebircPassword\fR (string)
96 Password required for using the WEBIRC command used by some Web-to-IRC
97 gateways. If not set or empty, the WEBIRC command can't be used.
98 Default: not set.
99 .TP
100 \fBAdminInfo1\fR, \fBAdminInfo2\fR, \fBAdminEMail\fR (string)
101 Information about the server and the administrator, used by the ADMIN
102 command.
103 .TP
104 \fBPorts\fR (list of numbers)
105 Ports on which the server should listen. There may be more than one port,
106 separated with commas (","). Default: 6667, unless \fBSSL_Ports\fR are also
107 specified.
108 .TP
109 \fBSSLPorts\fR (list of numbers)
110 Same as \fBPorts\fR , except that ngIRCd will expect incoming connections
111 to be SSL/TLS encrypted. Common port numbers for SSL-encrypted IRC are 6669
112 and 6697. Default: none.
113 .TP
114 \fBSSLKeyFile\fR (string)
115 Filename of SSL Server Key to be used for SSL connections. This is required for
116 SSL/TLS support.
117 .TP
118 \fBSSLKeyFilePassword\fR (string)
119 (OpenSSL only:) Password to decrypt private key.
120 .TP
121 \fBSSLCertFile\fR (string)
122 Certificate file of the private key.
123 .TP
124 \fBSSLDHFile\fR (string)
125 Name of the Diffie-Hellman Parameter file. Can be created with gnutls
126 "certtool \-\-generate-dh-params" or "openssl dhparam".
127 If this file is not present, it will be generated on startup when ngIRCd
128 was compiled with gnutls support (this may take some time). If ngIRCd
129 was compiled with OpenSSL, then (Ephemeral)-Diffie-Hellman Key Exchanges and several
130 Cipher Suites will not be available.
131 .TP
132 \fBListen\fR (list of strings)
133 A comma separated list of IP address on which the server should listen.
134 If unset, the defaults value is "0.0.0.0" or, if ngIRCd was compiled
135 with IPv6 support, "::,0.0.0.0". So the server listens on all configured
136 IP addresses and interfaces by default.
137 .TP
138 \fBSyslogFacility\fR (string)
139 Syslog "facility" to which ngIRCd should send log messages. Possible
140 values are system dependant, but most probably "auth", "daemon", "user"
141 and "local1" through "local7" are possible values; see syslog(3).
142 Default is "local5" for historical reasons, you probably want to
143 change this to "daemon", for example.
144 .TP
145 \fBMotdFile\fR (string)
146 Text file with the "message of the day" (MOTD). This message will be shown
147 to all users connecting to the server. Changes made to this file
148 take effect when ngircd is instructed to re-read its configuration file.
149 .TP
150 \fBMotdPhrase\fR (string)
151 A simple Phrase (<256 chars) if you don't want to use a MOTD file.
152 .TP
153 \fBServerUID\fR (string or number)
154 User ID under which the server should run; you can use the name of the user
155 or the numerical ID.
156 .PP
157 .RS
158 .B Attention:
159 .br
160 For this to work the server must have been
161 started with root privileges! In addition, the configuration and MOTD files
162 must be readable by this user, otherwise RESTART and REHASH won't work!
163 .RE
164 .TP
165 \fBServerGID\fR (string or number)
166 Group ID under which the ngIRCd should run; you can use the name of the
167 group or the numerical ID.
168 .PP
169 .RS
170 .B Attention:
171 .br
172 For this to work the server must have
173 been started with root privileges!
174 .RE
175 .TP
176 \fBChrootDir\fR (string)
177 A directory to chroot in when everything is initialized. It doesn't need
178 to be populated if ngIRCd is compiled as a static binary. By default ngIRCd
179 won't use the chroot() feature.
180 .PP
181 .RS
182 .B Attention:
183 .br
184 For this to work the server must have
185 been started with root privileges!
186 .RE
187 .TP
188 \fBPidFile\fR (string)
189 This tells ngIRCd to write its current process ID to a file. Note that the
190 pidfile is written AFTER chroot and switching the user ID, i. e. the
191 directory the pidfile resides in must be writeable by the ngIRCd user and
192 exist in the chroot directory (if configured, see above).
193 .RE
194 .TP
195 \fBPingTimeout\fR (number)
196 After <PingTimeout> seconds of inactivity the server will send a PING to
197 the peer to test whether it is alive or not. Default: 120.
198 .TP
199 \fBPongTimeout\fR (number)
200 If a client fails to answer a PING with a PONG within <PongTimeout>
201 seconds, it will be disconnected by the server. Default: 20.
202 .TP
203 \fBConnectRetry\fR (number)
204 The server tries every <ConnectRetry> seconds to establish a link to not yet
205 (or no longer) connected servers. Default: 60.
206 .TP
207 \fBOperCanUseMode\fR (boolean)
208 Should IRC Operators be allowed to use the MODE command even if they are
209 not(!) channel-operators? Default: no.
210 .TP
211 \fBOperServerMode\fR (boolean)
212 If \fBOperCanUseMode\fR is enabled, this may lead the compatibility problems with
213 Servers that run the ircd-irc2 Software. This Option "masks" mode requests
214 by non-chanops as if they were coming from the server. Default: no.
215 .TP
216 \fBAllowRemoteOper\fR (boolean)
217 Are IRC operators connected to remote servers allowed to control this server,
218 e. g. are they allowed to use administrative commands like CONNECT, DIE,
219 SQUIT, ... that affect this server? Default: no.
220 .TP
221 \fBPredefChannelsOnly\fR (boolean)
222 If enabled, no new channels can be created. Useful if
223 you do not want to have channels other than those defined in
224 [Channel] sections in the configuration file.
225 Default: no.
226 .TP
227 \fBConnectIPv4\fR (boolean)
228 Set this to no if you do not want ngIRCd to connect to other IRC servers using
229 IPv4. This allows usage of ngIRCd in IPv6-only setups.
230 Default: yes.
231 .TP
232 \fBConnectIPv6\fR (boolean)
233 Set this to no if you do not want ngIRCd to connect to other irc servers using IPv6.
234 Default: yes.
235 .TP
236 \fBMaxConnections\fR (number)
237 Maximum number of simultaneous in- and outbound connections the server is
238 allowed to accept (0: unlimited). Default: 0.
239 .TP
240 \fBMaxConnectionsIP\fR (number)
241 Maximum number of simultaneous connections from a single IP address that
242 the server will accept (0: unlimited). This configuration options lowers
243 the risk of denial of service attacks (DoS). Default: 5.
244 .TP
245 \fBMaxJoins\fR (number)
246 Maximum number of channels a user can be member of (0: no limit).
247 Default: 10.
248 .TP
249 \fBMaxNickLength\fR (number)
250 Maximum length of an user nick name (Default: 9, as in RFC 2812). Please
251 note that all servers in an IRC network MUST use the same maximum nick name
252 length!
253 .SH [OPERATOR]
254 .I [Operator]
255 sections are used to define IRC Operators. There may be more than one
256 .I [Operator]
257 block, one for each local operator.
258 .TP
259 \fBName\fR (string)
260 ID of the operator (may be different of the nick name).
261 .TP
262 \fBPassword\fR (string)
263 Password of the IRC operator.
264 .TP
265 \fBMask\fR (string)
266 Mask that is to be checked before an /OPER for this account is accepted.
267 Example: nick!ident@*.example.com
268 .SH [FEATURES]
269 An optional section that can be used to disable features at
270 run-time. A feature is enabled by default if if ngircd was built with
271 support for it.
272 .TP
273 \fBDNS\fR (boolean)
274 If set to false, ngIRCd will not make 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 Default: yes.
283 .TP
284 \fBPAM\fR (boolean)
285 If ngIRCd is compiled with PAM support this can be used to disable all calls
286 to the PAM library at runtime; all users connecting without password are
287 allowed to connect, all passwords given will fail.
288 Default: yes.
289 .SH [SERVER]
290 Other servers are configured in
291 .I [Server]
292 sections. If you configure a port for the connection, then this ngIRCd
293 tries to connect to to the other server on the given port (active);
294 if not, it waits for the other server to connect (passive).
295 .PP
296 ngIRCd supports "server groups": You can assign an "ID" to every server
297 with which you want this ngIRCd to link, and the daemon ensures that at
298 any given time only one direct link exists to servers with the same ID.
299 So if a server of a group won't answer, ngIRCd tries to connect to the next
300 server in the given group (="with the same ID"), but never tries to connect
301 to more than one server of this group simultaneously.
302 .PP
303 There may be more than one
304 .I [Server]
305 block.
306 .TP
307 \fBName\fR (string)
308 IRC name of the remote server.
309 .TP
310 \fBHost\fR (string)
311 Internet host name (or IP address) of the peer.
312 .TP
313 \fBBind\fR (string)
314 IP address to use as source IP for the outgoing connection. Default is
315 to let the operating system decide.
316 .TP
317 \fBPort\fR (number)
318 Port of the remote server to which ngIRCd should connect (active).
319 If no port is assigned to a configured server, the daemon only waits for
320 incoming connections (passive, default).
321 .TP
322 \fBMyPassword\fR (string)
323 Own password for this connection. This password has to be configured as
324 \fBPeerPassword\fR on the other server. Must not have ':' as first character.
325 .TP
326 \fBPeerPassword\fR (string)
327 Foreign password for this connection. This password has to be configured as
328 \fBMyPassword\fR on the other server.
329 .TP
330 \fBGroup\fR (number)
331 Group of this server (optional).
332 .TP
333 \fBPassive\fR (boolean)
334 Disable automatic connection even if port value is specified. Default: false.
335 You can use the IRC Operator command CONNECT later on to create the link.
336 .TP
337 \fBSSLConnect\fR (boolean)
338 Connect to the remote server using TLS/SSL. Default: false.
339 .TP
340 \fBServiceMask\fR (string)
341 Define a (case insensitive) mask matching nick names that should be treated as
342 IRC services when introduced via this remote server. REGULAR SERVERS DON'T NEED
343 this parameter, so leave it empty (which is the default).
344 .PP
345 .RS
346 When you are connecting IRC services which mask as a IRC server and which use
347 "virtual users" to communicate with, for example "NickServ" and "ChanServ",
348 you should set this parameter to something like "*Serv".
349 .SH [CHANNEL]
350 Pre-defined channels can be configured in
351 .I [Channel]
352 sections. Such channels are created by the server when starting up and even
353 persist when there are no more members left.
354 .PP
355 Persistent channels are marked with the mode 'P', which can be set and unset
356 by IRC operators like other modes on the fly.
357 .PP
358 There may be more than one
359 .I [Channel]
360 block.
361 .TP
362 \fBName\fR (string)
363 Name of the channel, including channel prefix ("#" or "&").
364 .TP
365 \fBTopic\fR (string)
366 Topic for this channel.
367 .TP
368 \fBModes\fR (string)
369 Initial channel modes.
370 .TP
371 \fBKey\fR (string)
372 Sets initial channel key (only relevant if channel mode "k" is set).
373 .TP
374 \fBKeyFile\fR (string)
375 Path and file name of a "key file" containing individual channel keys for
376 different users. The file consists of plain text lines with the following
377 syntax (without spaces!):
378 .PP
379 .RS
380 .RS
381 .I user
382 :
383 .I nick
384 :
385 .I key
386 .RE
387 .PP
388 .I user
389 and
390 .I nick
391 can contain the wildcard character "*".
392 .br
393 .I key
394 is an arbitrary password.
395 .PP
396 Valid examples are:
397 .PP
398 .RS
399 *:*:KeY
400 .br
401 *:nick:123
402 .br
403 ~user:*:xyz
404 .RE
405 .PP
406 The key file is read on each JOIN command when this channel has a key
407 (channel mode +k). Access is granted, if a) the channel key set using the
408 MODE +k command or b) one of the lines in the key file match.
409 .PP
410 .B Please note:
411 .br
412 The file is not reopened on each access, so you can modify and overwrite it
413 without problems, but moving or deleting the file will have not effect until
414 the daemon re-reads its configuration!
415 .RE
416 .TP
417 \fBMaxUsers\fR (number)
418 Set maximum user limit for this channel (only relevant if channel mode "l"
419 is set).
420 .SH HINTS
421 It's wise to use "ngircd \-\-configtest" to validate the configuration file
422 after changing it. See
423 .BR ngircd (8)
424 for details.
425 .SH AUTHOR
426 Alexander Barton, <alex@barton.de>
427 .br
428 Florian Westphal, <fw@strlen.de>
429 .PP
430 Homepage: http://ngircd.barton.de/
431 .SH "SEE ALSO"
432 .BR ngircd (8)
433 .\"
434 .\" -eof-