Blame


1 f6ce2d55 2006-12-25 alex .\"
2 82d32ffb 2007-11-23 fw .\" $Id: ngircd.conf.5.tmpl,v 1.7 2007/11/23 16:26:03 fw Exp $
3 f6ce2d55 2006-12-25 alex .\"
4 d02b0835 2008-05-13 alex .TH ngircd.conf 5 "May 2008" ngircd "ngIRCd Manual"
5 f6ce2d55 2006-12-25 alex .SH NAME
6 f6ce2d55 2006-12-25 alex ngircd.conf \- configuration file of ngIRCd
7 f6ce2d55 2006-12-25 alex .SH SYNOPSIS
8 f6ce2d55 2006-12-25 alex .B :ETCDIR:/ngircd.conf
9 f6ce2d55 2006-12-25 alex .SH DESCRIPTION
10 f6ce2d55 2006-12-25 alex .BR ngircd.conf
11 f6ce2d55 2006-12-25 alex is the configuration file of the
12 f6ce2d55 2006-12-25 alex .BR ngircd (8)
13 f6ce2d55 2006-12-25 alex Internet Relay Chat (IRC) daemon which you should adept to your local
14 f6ce2d55 2006-12-25 alex preferences and needs.
15 f6ce2d55 2006-12-25 alex .SH "FILE FORMAT"
16 f6ce2d55 2006-12-25 alex The file consists of sections and parameters. A section begins with the name
17 f6ce2d55 2006-12-25 alex of the section in square brackets and continues until the next section
18 f6ce2d55 2006-12-25 alex begins.
19 f6ce2d55 2006-12-25 alex .PP
20 f6ce2d55 2006-12-25 alex Sections contain parameters of the form
21 f6ce2d55 2006-12-25 alex .PP
22 f6ce2d55 2006-12-25 alex .RS
23 f6ce2d55 2006-12-25 alex .I name
24 f6ce2d55 2006-12-25 alex =
25 f6ce2d55 2006-12-25 alex .I value
26 f6ce2d55 2006-12-25 alex .RE
27 f6ce2d55 2006-12-25 alex .PP
28 f6ce2d55 2006-12-25 alex Empty lines and any line beginning with a semicolon (';') or a hash ('#')
29 d02b0835 2008-05-13 alex character are treated as a comment and will be ignored. Leading and trailing
30 d02b0835 2008-05-13 alex whitespaces are trimmed before any processing takes place.
31 f6ce2d55 2006-12-25 alex .PP
32 d02b0835 2008-05-13 alex The file format is line-based - that means, each non-empty newline-terminated
33 d02b0835 2008-05-13 alex line represents either a comment, a section name, or a parameter.
34 f6ce2d55 2006-12-25 alex .PP
35 f6ce2d55 2006-12-25 alex Section and parameter names are not case sensitive.
36 f6ce2d55 2006-12-25 alex .SH "SECTION OVERVIEW"
37 f6ce2d55 2006-12-25 alex The file can contain blocks of four types: [Global], [Operator], [Server],
38 f6ce2d55 2006-12-25 alex and [Channel].
39 f6ce2d55 2006-12-25 alex .PP
40 d02b0835 2008-05-13 alex The main configuration of the server is stored in the
41 f6ce2d55 2006-12-25 alex .I [Global]
42 d02b0835 2008-05-13 alex section, like the server name, administrative information and the
43 f6ce2d55 2006-12-25 alex ports on which the server should be listening. IRC operators of this
44 f6ce2d55 2006-12-25 alex server are defined in
45 f6ce2d55 2006-12-25 alex .I [Operator]
46 f6ce2d55 2006-12-25 alex blocks.
47 f6ce2d55 2006-12-25 alex .I [Server]
48 f6ce2d55 2006-12-25 alex is the section where server links are configured. And
49 f6ce2d55 2006-12-25 alex .I [Channel]
50 f6ce2d55 2006-12-25 alex blocks are used to configure pre-defined ("persistent") IRC channels.
51 f6ce2d55 2006-12-25 alex .PP
52 f6ce2d55 2006-12-25 alex There can be more than one [Operator], [Server] and [Channel] sections
53 f6ce2d55 2006-12-25 alex per configuration file, but only one [Global] section.
54 f6ce2d55 2006-12-25 alex .SH [GLOBAL]
55 f6ce2d55 2006-12-25 alex The
56 f6ce2d55 2006-12-25 alex .I [Global]
57 f6ce2d55 2006-12-25 alex section is used to define the server main configuration, like the server
58 f6ce2d55 2006-12-25 alex name and the ports on which the server should be listening.
59 f6ce2d55 2006-12-25 alex .TP
60 f6ce2d55 2006-12-25 alex \fBName\fR
61 d02b0835 2008-05-13 alex Server name in the IRC network, must contain at least one dot (".").
62 f6ce2d55 2006-12-25 alex .TP
63 f6ce2d55 2006-12-25 alex \fBInfo\fR
64 f6ce2d55 2006-12-25 alex Info text of the server. This will be shown by WHOIS and LINKS requests for
65 f6ce2d55 2006-12-25 alex example.
66 f6ce2d55 2006-12-25 alex .TP
67 f6ce2d55 2006-12-25 alex \fBAdminInfo1\fR, \fBAdminInfo2\fR, \fBAdminEMail\fR
68 f6ce2d55 2006-12-25 alex Information about the server and the administrator, used by the ADMIN
69 f6ce2d55 2006-12-25 alex command.
70 f6ce2d55 2006-12-25 alex .TP
71 f6ce2d55 2006-12-25 alex \fBPorts\fR
72 f6ce2d55 2006-12-25 alex Ports on which the server should listen. There may be more than one port,
73 f6ce2d55 2006-12-25 alex separated with ','. Default: 6667.
74 f6ce2d55 2006-12-25 alex .TP
75 f6ce2d55 2006-12-25 alex \fBListen\fR
76 4ed2cb1a 2008-05-19 fw A comma seperated list of IP address on which the server should listen.
77 4ed2cb1a 2008-05-19 fw If unset, the defaults value is "0.0.0.0", or, if ngircd was compiled
78 4ed2cb1a 2008-05-19 fw with IPv6 support, "::,0.0.0.0", so the server listens on all configured
79 4ed2cb1a 2008-05-19 fw IP addresses and interfaces by default.
80 f6ce2d55 2006-12-25 alex .TP
81 f6ce2d55 2006-12-25 alex \fBMotdFile\fR
82 f6ce2d55 2006-12-25 alex Text file with the "message of the day" (MOTD). This message will be shown
83 f6ce2d55 2006-12-25 alex to all users connecting to the server.
84 f6ce2d55 2006-12-25 alex .TP
85 f6ce2d55 2006-12-25 alex \fBMotdPhrase\fR
86 f6ce2d55 2006-12-25 alex A simple Phrase (<256 chars) if you don't want to use a MOTD file.
87 d02b0835 2008-05-13 alex If it is set no MotdFile will be read at all which can be handy if the
88 d02b0835 2008-05-13 alex daemon should run inside a chroot directory.
89 f6ce2d55 2006-12-25 alex .TP
90 f6ce2d55 2006-12-25 alex \fBServerUID\fR
91 f6ce2d55 2006-12-25 alex User ID under which the server should run; you can use the name of the user
92 f6ce2d55 2006-12-25 alex or the numerical ID.
93 f6ce2d55 2006-12-25 alex .PP
94 f6ce2d55 2006-12-25 alex .RS
95 f6ce2d55 2006-12-25 alex .B Attention:
96 f6ce2d55 2006-12-25 alex .br
97 f6ce2d55 2006-12-25 alex For this to work the server must have been
98 f6ce2d55 2006-12-25 alex started with root privileges! In addition, the configuration and MOTD files
99 f6ce2d55 2006-12-25 alex must be readable by this user, otherwise RESTART and REHASH won't work!
100 f6ce2d55 2006-12-25 alex .RE
101 f6ce2d55 2006-12-25 alex .TP
102 f6ce2d55 2006-12-25 alex \fBServerGID\fR
103 f6ce2d55 2006-12-25 alex Group ID under which the ngIRCd should run; you can use the name of the
104 f6ce2d55 2006-12-25 alex group or the numerical ID.
105 f6ce2d55 2006-12-25 alex .PP
106 f6ce2d55 2006-12-25 alex .RS
107 f6ce2d55 2006-12-25 alex .B Attention:
108 f6ce2d55 2006-12-25 alex .br
109 f6ce2d55 2006-12-25 alex For this to work the server must have
110 f6ce2d55 2006-12-25 alex been started with root privileges!
111 f6ce2d55 2006-12-25 alex .RE
112 f6ce2d55 2006-12-25 alex .TP
113 f6ce2d55 2006-12-25 alex \fBChrootDir\fR
114 f6ce2d55 2006-12-25 alex A directory to chroot in when everything is initialized. It doesn't need
115 f6ce2d55 2006-12-25 alex to be populated if ngIRCd is compiled as a static binary. By default ngIRCd
116 f6ce2d55 2006-12-25 alex won't use the chroot() feature.
117 f6ce2d55 2006-12-25 alex .PP
118 f6ce2d55 2006-12-25 alex .RS
119 f6ce2d55 2006-12-25 alex .B Attention:
120 f6ce2d55 2006-12-25 alex .br
121 f6ce2d55 2006-12-25 alex For this to work the server must have
122 f6ce2d55 2006-12-25 alex been started with root privileges!
123 f6ce2d55 2006-12-25 alex .RE
124 f6ce2d55 2006-12-25 alex .TP
125 f6ce2d55 2006-12-25 alex \fBPidFile\fR
126 f6ce2d55 2006-12-25 alex This tells ngIRCd to write its current process ID to a file. Note that the
127 f6ce2d55 2006-12-25 alex pidfile is written AFTER chroot and switching the user ID, i. e. the
128 f6ce2d55 2006-12-25 alex directory the pidfile resides in must be writeable by the ngIRCd user and
129 f6ce2d55 2006-12-25 alex exist in the chroot directory (if configured, see above).
130 f6ce2d55 2006-12-25 alex .RE
131 f6ce2d55 2006-12-25 alex .TP
132 f6ce2d55 2006-12-25 alex \fBPingTimeout\fR
133 f6ce2d55 2006-12-25 alex After <PingTimeout> seconds of inactivity the server will send a PING to
134 f6ce2d55 2006-12-25 alex the peer to test whether it is alive or not. Default: 120.
135 f6ce2d55 2006-12-25 alex .TP
136 f6ce2d55 2006-12-25 alex \fBPongTimeout\fR
137 f6ce2d55 2006-12-25 alex If a client fails to answer a PING with a PONG within <PongTimeout>
138 f6ce2d55 2006-12-25 alex seconds, it will be disconnected by the server. Default: 20.
139 f6ce2d55 2006-12-25 alex .TP
140 f6ce2d55 2006-12-25 alex \fBConnectRetry\fR
141 f6ce2d55 2006-12-25 alex The server tries every <ConnectRetry> seconds to establish a link to not yet
142 f6ce2d55 2006-12-25 alex (or no longer) connected servers. Default: 60.
143 f6ce2d55 2006-12-25 alex .TP
144 f6ce2d55 2006-12-25 alex \fBOperCanUseMode\fR
145 f6ce2d55 2006-12-25 alex Should IRC Operators be allowed to use the MODE command even if they are
146 f6ce2d55 2006-12-25 alex not(!) channel-operators? Default: no.
147 f6ce2d55 2006-12-25 alex .TP
148 f6ce2d55 2006-12-25 alex \fBOperServerMode\fR
149 f6ce2d55 2006-12-25 alex If OperCanUseMode is enabled, this may lead the compatibility problems with
150 f6ce2d55 2006-12-25 alex Servers that run the ircd-irc2 Software. This Option "masks" mode requests
151 f6ce2d55 2006-12-25 alex by non-chanops as if they were coming from the server. Default: no.
152 f6ce2d55 2006-12-25 alex .TP
153 f6ce2d55 2006-12-25 alex \fBPredefChannelsOnly\fR
154 f6ce2d55 2006-12-25 alex If enabled, no new channels can be created. Useful if
155 f6ce2d55 2006-12-25 alex you do not want to have channels other than those defined in
156 f6ce2d55 2006-12-25 alex the config file.
157 001c00b2 2007-10-25 fw Default: No.
158 f6ce2d55 2006-12-25 alex .TP
159 001c00b2 2007-10-25 fw \fBNoDNS\fR
160 001c00b2 2007-10-25 fw If enabled, ngircd will not make DNS lookups when clients connect.
161 001c00b2 2007-10-25 fw If you configure ngircd to connect to other servers, ngircd may still
162 001c00b2 2007-10-25 fw perform a DNS lookup if required.
163 001c00b2 2007-10-25 fw Default: No.
164 bb6ee468 2008-04-29 alex .TP
165 bb6ee468 2008-04-29 alex \fBConnectIPv4\fR
166 bb6ee468 2008-04-29 alex Set this to no if you do not want ngircd to connect to other irc servers using ipv4.
167 bb6ee468 2008-04-29 alex This allows use of ngircd in ipv6-only setups.
168 bb6ee468 2008-04-29 alex Default: Yes.
169 001c00b2 2007-10-25 fw .TP
170 bb6ee468 2008-04-29 alex \fBConnectIPv6\fR
171 bb6ee468 2008-04-29 alex Set this to no if you do not want ngircd to connect to other irc servers using ipv6.
172 bb6ee468 2008-04-29 alex Default: Yes.
173 bb6ee468 2008-04-29 alex .TP
174 f6ce2d55 2006-12-25 alex \fBMaxConnections\fR
175 f6ce2d55 2006-12-25 alex Maximum number of simultaneous connection the server is allowed to accept
176 b160f574 2007-10-13 fw (0: unlimited). Default: 0.
177 f6ce2d55 2006-12-25 alex .TP
178 f6ce2d55 2006-12-25 alex \fBMaxConnectionsIP\fR
179 f6ce2d55 2006-12-25 alex Maximum number of simultaneous connections from a single IP address that
180 b160f574 2007-10-13 fw the server will accept (0: unlimited). This configuration options lowers
181 f6ce2d55 2006-12-25 alex the risk of denial of service attacks (DoS). Default: 5.
182 f6ce2d55 2006-12-25 alex .TP
183 f6ce2d55 2006-12-25 alex \fBMaxJoins\fR
184 b160f574 2007-10-13 fw Maximum number of channels a user can be member of (0: no limit).
185 f6ce2d55 2006-12-25 alex Default: 10.
186 47ca178a 2007-11-21 alex .TP
187 47ca178a 2007-11-21 alex \fBMaxNickLength\fR
188 47ca178a 2007-11-21 alex Maximum length of an user nick name (Default: 9, as in RFC 2812). Please
189 47ca178a 2007-11-21 alex note that all servers in an IRC network MUST use the same maximum nick name
190 47ca178a 2007-11-21 alex length!
191 f6ce2d55 2006-12-25 alex .SH [OPERATOR]
192 f6ce2d55 2006-12-25 alex .I [Operator]
193 f6ce2d55 2006-12-25 alex sections are used to define IRC Operators. There may be more than one
194 f6ce2d55 2006-12-25 alex .I [Operator]
195 f6ce2d55 2006-12-25 alex block, one for each local operator.
196 f6ce2d55 2006-12-25 alex .TP
197 f6ce2d55 2006-12-25 alex \fBName\fR
198 f6ce2d55 2006-12-25 alex ID of the operator (may be different of the nick name).
199 f6ce2d55 2006-12-25 alex .TP
200 f6ce2d55 2006-12-25 alex \fBPassword\fR
201 f6ce2d55 2006-12-25 alex Password of the IRC operator.
202 f6ce2d55 2006-12-25 alex .TP
203 f6ce2d55 2006-12-25 alex \fBMask\fR
204 f6ce2d55 2006-12-25 alex Mask that is to be checked before an /OPER for this account is accepted.
205 f6ce2d55 2006-12-25 alex Example: nick!ident@*.example.com
206 f6ce2d55 2006-12-25 alex .SH [SERVER]
207 f6ce2d55 2006-12-25 alex Other servers are configured in
208 f6ce2d55 2006-12-25 alex .I [Server]
209 f6ce2d55 2006-12-25 alex sections. If you configure a port for the connection, then this ngIRCd
210 d02b0835 2008-05-13 alex tries to connect to to the other server on the given port (active);
211 d02b0835 2008-05-13 alex if not, it waits for the other server to connect (passive).
212 f6ce2d55 2006-12-25 alex .PP
213 d02b0835 2008-05-13 alex ngIRCd supports "server groups": You can assign an "ID" to every server
214 d02b0835 2008-05-13 alex with which you want this ngIRCd to link, and the daemon ensures that at
215 d02b0835 2008-05-13 alex any given time only one direct link exists to servers with the same ID.
216 d02b0835 2008-05-13 alex So if a server of a group won't answer, ngIRCd tries to connect to the next
217 d02b0835 2008-05-13 alex server in the given group (="with the same ID"), but never tries to connect
218 d02b0835 2008-05-13 alex to more than one server of this group simultaneously.
219 f6ce2d55 2006-12-25 alex .PP
220 f6ce2d55 2006-12-25 alex There may be more than one
221 f6ce2d55 2006-12-25 alex .I [Server]
222 f6ce2d55 2006-12-25 alex block.
223 f6ce2d55 2006-12-25 alex .TP
224 f6ce2d55 2006-12-25 alex \fBName\fR
225 d02b0835 2008-05-13 alex IRC name of the remote server.
226 f6ce2d55 2006-12-25 alex .TP
227 f6ce2d55 2006-12-25 alex \fBHost\fR
228 d02b0835 2008-05-13 alex Internet host name (or IP address) of the peer.
229 82d32ffb 2007-11-23 fw .TP
230 82d32ffb 2007-11-23 fw \fBBind\fR
231 82d32ffb 2007-11-23 fw IP address to use as source IP for the outgoing connection. Default ist
232 82d32ffb 2007-11-23 fw to let the operating system decide.
233 f6ce2d55 2006-12-25 alex .TP
234 f6ce2d55 2006-12-25 alex \fBPort\fR
235 d02b0835 2008-05-13 alex Port of the remote server to which ngIRCd should connect (active).
236 d02b0835 2008-05-13 alex If no port is assigned to a configured server, the daemon only waits for
237 d02b0835 2008-05-13 alex incoming connections (passive).
238 f6ce2d55 2006-12-25 alex .TP
239 f6ce2d55 2006-12-25 alex \fBMyPassword\fR
240 f6ce2d55 2006-12-25 alex Own password for this connection. This password has to be configured as
241 f6ce2d55 2006-12-25 alex "PeerPassword" on the other server. Must not have ':' as first character.
242 f6ce2d55 2006-12-25 alex .TP
243 f6ce2d55 2006-12-25 alex \fBPeerPassword\fR
244 f6ce2d55 2006-12-25 alex Foreign password for this connection. This password has to be configured as
245 f6ce2d55 2006-12-25 alex "MyPassword" on the other server.
246 f6ce2d55 2006-12-25 alex .TP
247 f6ce2d55 2006-12-25 alex \fBGroup\fR
248 f6ce2d55 2006-12-25 alex Group of this server (optional).
249 d02b0835 2008-05-13 alex .TP
250 2275add3 2007-06-28 fw \fBPassive\fR
251 2275add3 2007-06-28 fw Disable automatic connection even if port value is specified. Default: false.
252 2275add3 2007-06-28 fw You can use the IRC Operator command CONNECT later on to create the link.
253 f6ce2d55 2006-12-25 alex .SH [CHANNEL]
254 f6ce2d55 2006-12-25 alex Pre-defined channels can be configured in
255 f6ce2d55 2006-12-25 alex .I [Channel]
256 f6ce2d55 2006-12-25 alex sections. Such channels are created by the server when starting up and even
257 f6ce2d55 2006-12-25 alex persist when there are no more members left.
258 f6ce2d55 2006-12-25 alex .PP
259 f6ce2d55 2006-12-25 alex Persistent channels are marked with the mode 'P', which can be set and unset
260 f6ce2d55 2006-12-25 alex by IRC operators like other modes on the fly.
261 f6ce2d55 2006-12-25 alex .PP
262 f6ce2d55 2006-12-25 alex There may be more than one
263 f6ce2d55 2006-12-25 alex .I [Channel]
264 f6ce2d55 2006-12-25 alex block.
265 f6ce2d55 2006-12-25 alex .TP
266 f6ce2d55 2006-12-25 alex \fBName\fR
267 d02b0835 2008-05-13 alex Name of the channel, including channel prefix ("#").
268 f6ce2d55 2006-12-25 alex .TP
269 f6ce2d55 2006-12-25 alex \fBTopic\fR
270 d02b0835 2008-05-13 alex Topic for this channel.
271 f6ce2d55 2006-12-25 alex .TP
272 f6ce2d55 2006-12-25 alex \fBModes\fR
273 f6ce2d55 2006-12-25 alex Initial channel modes.
274 1b852fce 2006-12-29 fw .TP
275 1b852fce 2006-12-29 fw \fBKey\fR
276 d02b0835 2008-05-13 alex Sets initial channel key (only relevant if mode k is set).
277 1b852fce 2006-12-29 fw .TP
278 1b852fce 2006-12-29 fw \fBMaxUsers\fR
279 d02b0835 2008-05-13 alex Set maximum user limit for this channel (only relevant if mode l is set).
280 f6ce2d55 2006-12-25 alex .SH HINTS
281 f6ce2d55 2006-12-25 alex It's wise to use "ngircd --configtest" to validate the configuration file
282 f6ce2d55 2006-12-25 alex after changing it. See
283 f6ce2d55 2006-12-25 alex .BR ngircd (8)
284 f6ce2d55 2006-12-25 alex for details.
285 f6ce2d55 2006-12-25 alex .SH AUTHOR
286 f6ce2d55 2006-12-25 alex Alexander Barton,
287 f6ce2d55 2006-12-25 alex .UR mailto:alex@barton.de
288 f6ce2d55 2006-12-25 alex alex@barton.de
289 f6ce2d55 2006-12-25 alex .UE
290 f6ce2d55 2006-12-25 alex .br
291 f6ce2d55 2006-12-25 alex Homepage:
292 f6ce2d55 2006-12-25 alex .UR http://ngircd.barton.de/
293 f6ce2d55 2006-12-25 alex http://ngircd.barton.de/
294 f6ce2d55 2006-12-25 alex .UE
295 f6ce2d55 2006-12-25 alex .SH "SEE ALSO"
296 f6ce2d55 2006-12-25 alex .BR ngircd (8)
297 f6ce2d55 2006-12-25 alex .\"
298 f6ce2d55 2006-12-25 alex .\" -eof-