]> jfr.im git - solanum.git/blob - doc/example.conf
Pace aways.
[solanum.git] / doc / example.conf
1 /* doc/example.conf - brief example configuration file
2 *
3 * Copyright (C) 2000-2002 Hybrid Development Team
4 * Copyright (C) 2002-2005 ircd-ratbox development team
5 * Copyright (C) 2005-2006 charybdis development team
6 *
7 * $Id: example.conf 3582 2007-11-17 21:55:48Z jilles $
8 *
9 * See reference.conf for more information.
10 */
11
12 /* Extensions */
13 #loadmodule "extensions/chm_operonly_compat.so";
14 #loadmodule "extensions/chm_quietunreg_compat.so";
15 #loadmodule "extensions/chm_sslonly_compat.so";
16 #loadmodule "extensions/createauthonly.so";
17 #loadmodule "extensions/extb_account.so";
18 #loadmodule "extensions/extb_canjoin.so";
19 #loadmodule "extensions/extb_channel.so";
20 #loadmodule "extensions/extb_extgecos.so";
21 #loadmodule "extensions/extb_oper.so";
22 #loadmodule "extensions/extb_realname.so";
23 #loadmodule "extensions/extb_server.so";
24 #loadmodule "extensions/extb_ssl.so";
25 #loadmodule "extensions/hurt.so";
26 #loadmodule "extensions/m_findforwards.so";
27 #loadmodule "extensions/m_identify.so";
28 #loadmodule "extensions/no_oper_invis.so";
29 #loadmodule "extensions/sno_farconnect.so";
30 #loadmodule "extensions/sno_globalkline.so";
31 #loadmodule "extensions/sno_globaloper.so";
32 #loadmodule "extensions/sno_whois.so";
33 #loadmodule "extensions/override.so";
34
35 /*
36 * IP cloaking extensions: use ip_cloaking_4.0
37 * if you're linking 3.2 and later, otherwise use
38 * ip_cloaking.so, for compatibility with older 3.x
39 * releases.
40 */
41
42 #loadmodule "extensions/ip_cloaking_4.0.so";
43 #loadmodule "extensions/ip_cloaking.so";
44
45 serverinfo {
46 name = "hades.arpa";
47 sid = "42X";
48 description = "charybdis test server";
49 network_name = "StaticBox";
50 network_desc = "Your IRC network.";
51 hub = yes;
52
53 /* On multi-homed hosts you may need the following. These define
54 * the addresses we connect from to other servers. */
55 /* for IPv4 */
56 #vhost = "192.169.0.1";
57 /* for IPv6 */
58 #vhost6 = "3ffe:80e8:546::2";
59
60 /* ssl_private_key: our ssl private key */
61 ssl_private_key = "etc/ssl.key";
62
63 /* ssl_cert: certificate for our ssl server */
64 ssl_cert = "etc/ssl.cert";
65
66 /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */
67 ssl_dh_params = "etc/dh.pem";
68
69 /* ssld_count: number of ssld processes you want to start, if you
70 * have a really busy server, using N-1 where N is the number of
71 * cpu/cpu cores you have might be useful. A number greater than one
72 * can also be useful in case of bugs in ssld and because ssld needs
73 * two file descriptors per SSL connection.
74 */
75 ssld_count = 1;
76
77 /* default max clients: the default maximum number of clients
78 * allowed to connect. This can be changed once ircd has started by
79 * issuing:
80 * /quote set maxclients <limit>
81 */
82 default_max_clients = 1024;
83
84 /* nicklen: enforced nickname length (for this server only; must not
85 * be longer than the maximum length set while building).
86 */
87 nicklen = 30;
88 };
89
90 admin {
91 name = "Lazy admin (lazya)";
92 description = "StaticBox client server";
93 email = "nobody@127.0.0.1";
94 };
95
96 log {
97 fname_userlog = "logs/userlog";
98 #fname_fuserlog = "logs/fuserlog";
99 fname_operlog = "logs/operlog";
100 #fname_foperlog = "logs/foperlog";
101 fname_serverlog = "logs/serverlog";
102 #fname_klinelog = "logs/klinelog";
103 fname_killlog = "logs/killlog";
104 fname_operspylog = "logs/operspylog";
105 #fname_ioerrorlog = "logs/ioerror";
106 };
107
108 /* class {} blocks MUST be specified before anything that uses them. That
109 * means they must be defined before auth {} and before connect {}.
110 */
111 class "users" {
112 ping_time = 2 minutes;
113 number_per_ident = 10;
114 number_per_ip = 10;
115 number_per_ip_global = 50;
116 cidr_ipv4_bitlen = 24;
117 cidr_ipv6_bitlen = 64;
118 number_per_cidr = 200;
119 max_number = 3000;
120 sendq = 400 kbytes;
121 };
122
123 class "opers" {
124 ping_time = 5 minutes;
125 number_per_ip = 10;
126 max_number = 1000;
127 sendq = 1 megabyte;
128 };
129
130 class "server" {
131 ping_time = 5 minutes;
132 connectfreq = 5 minutes;
133 max_number = 1;
134 sendq = 4 megabytes;
135 };
136
137 listen {
138 /* If you want to listen on a specific IP only, specify host.
139 * host definitions apply only to the following port line.
140 */
141 #host = "192.169.0.1";
142 port = 5000, 6665 .. 6669;
143 sslport = 6697;
144
145 /* Listen on IPv6 (if you used host= above). */
146 #host = "3ffe:1234:a:b:c::d";
147 #port = 5000, 6665 .. 6669;
148 #sslport = 9999;
149 };
150
151 /* auth {}: allow users to connect to the ircd (OLD I:)
152 * auth {} blocks MUST be specified in order of precedence. The first one
153 * that matches a user will be used. So place spoofs first, then specials,
154 * then general access, then restricted.
155 */
156 auth {
157 /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user
158 * lines are permitted per auth block. This is matched against the
159 * hostname and IP address (using :: shortening for IPv6 and
160 * prepending a 0 if it starts with a colon) and can also use CIDR
161 * masks.
162 */
163 user = "*@172.16.0.0/12";
164 user = "*test@123D:B567:*";
165
166 /* password: an optional password that is required to use this block.
167 * By default this is not encrypted, specify the flag "encrypted" in
168 * flags = ...; below if it is.
169 */
170 password = "letmein";
171
172 /* spoof: fake the users user@host to be be this. You may either
173 * specify a host or a user@host to spoof to. This is free-form,
174 * just do everyone a favour and dont abuse it. (OLD I: = flag)
175 */
176 spoof = "I.still.hate.packets";
177
178 /* Possible flags in auth:
179 *
180 * encrypted | password is encrypted with mkpasswd
181 * spoof_notice | give a notice when spoofing hosts
182 * exceed_limit (old > flag) | allow user to exceed class user limits
183 * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls
184 * dnsbl_exempt | exempt this user from dnsbls
185 * spambot_exempt | exempt this user from spambot checks
186 * shide_exempt | exempt this user from serverhiding
187 * jupe_exempt | exempt this user from generating
188 * warnings joining juped channels
189 * resv_exempt | exempt this user from resvs
190 * flood_exempt | exempt this user from flood limits
191 * USE WITH CAUTION.
192 * no_tilde (old - flag) | don't prefix ~ to username if no ident
193 * need_ident (old + flag) | require ident for user in this class
194 * need_ssl | require SSL/TLS for user in this class
195 * need_sasl | require SASL id for user in this class
196 */
197 flags = kline_exempt, exceed_limit;
198
199 /* class: the class the user is placed in */
200 class = "opers";
201 };
202
203 auth {
204 user = "*@*";
205 class = "users";
206 };
207
208 /* privset {} blocks MUST be specified before anything that uses them. That
209 * means they must be defined before operator {}.
210 */
211 privset "local_op" {
212 privs = oper:local_kill, oper:operwall;
213 };
214
215 privset "server_bot" {
216 extends = "local_op";
217 privs = oper:kline, oper:remoteban, snomask:nick_changes;
218 };
219
220 privset "global_op" {
221 extends = "local_op";
222 privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
223 oper:resv, oper:mass_notice, oper:remoteban;
224 };
225
226 privset "admin" {
227 extends = "global_op";
228 privs = oper:admin, oper:die, oper:rehash, oper:spy;
229 };
230
231 operator "god" {
232 /* name: the name of the oper must go above */
233
234 /* user: the user@host required for this operator. CIDR *is*
235 * supported now. auth{} spoofs work here, other spoofs do not.
236 * multiple user="" lines are supported.
237 */
238 user = "*god@127.0.0.1";
239
240 /* password: the password required to oper. Unless ~encrypted is
241 * contained in flags = ...; this will need to be encrypted using
242 * mkpasswd, MD5 is supported
243 */
244 password = "etcnjl8juSU1E";
245
246 /* rsa key: the public key for this oper when using Challenge.
247 * A password should not be defined when this is used, see
248 * doc/challenge.txt for more information.
249 */
250 #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
251
252 /* umodes: the specific umodes this oper gets when they oper.
253 * If this is specified an oper will not be given oper_umodes
254 * These are described above oper_only_umodes in general {};
255 */
256 #umodes = locops, servnotice, operwall, wallop;
257
258 /* fingerprint: if specified, the oper's client certificate
259 * fingerprint will be checked against the specified fingerprint
260 * below.
261 */
262 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
263
264 /* snomask: specific server notice mask on oper up.
265 * If this is specified an oper will not be given oper_snomask.
266 */
267 snomask = "+Zbfkrsuy";
268
269 /* flags: misc options for the operator. You may prefix an option
270 * with ~ to disable it, e.g. ~encrypted.
271 *
272 * Default flags are encrypted.
273 *
274 * Available options:
275 *
276 * encrypted: the password above is encrypted [DEFAULT]
277 * need_ssl: must be using SSL/TLS to oper up
278 */
279 flags = encrypted;
280
281 /* privset: privileges set to grant */
282 privset = "admin";
283 };
284
285 connect "irc.uplink.com" {
286 host = "192.168.0.1";
287 send_password = "password";
288 accept_password = "anotherpassword";
289 port = 6666;
290 hub_mask = "*";
291 class = "server";
292 flags = compressed, topicburst;
293
294 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
295
296 /* If the connection is IPv6, uncomment below.
297 * Use 0::1, not ::1, for IPv6 localhost. */
298 #aftype = ipv6;
299 };
300
301 connect "ssl.uplink.com" {
302 host = "192.168.0.1";
303 send_password = "password";
304 accept_password = "anotherpassword";
305 port = 9999;
306 hub_mask = "*";
307 class = "server";
308 flags = ssl, topicburst;
309 };
310
311 service {
312 name = "services.int";
313 };
314
315 cluster {
316 name = "*";
317 flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv;
318 };
319
320 shared {
321 oper = "*@*", "*";
322 flags = all, rehash;
323 };
324
325 /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
326 exempt {
327 ip = "127.0.0.1";
328 };
329
330 channel {
331 use_invex = yes;
332 use_except = yes;
333 use_forward = yes;
334 use_knock = yes;
335 knock_delay = 5 minutes;
336 knock_delay_channel = 1 minute;
337 max_chans_per_user = 15;
338 max_bans = 100;
339 max_bans_large = 500;
340 default_split_user_count = 0;
341 default_split_server_count = 0;
342 no_create_on_split = no;
343 no_join_on_split = no;
344 burst_topicwho = yes;
345 kick_on_split_riding = no;
346 only_ascii_channels = no;
347 resv_forcepart = yes;
348 channel_target_change = yes;
349 disable_local_channels = no;
350 };
351
352 serverhide {
353 flatten_links = yes;
354 links_delay = 5 minutes;
355 hidden = no;
356 disable_hidden = no;
357 };
358
359 /* These are the blacklist settings.
360 * You can have multiple combinations of host and rejection reasons.
361 * They are used in pairs of one host/rejection reason.
362 *
363 * These settings should be adequate for most networks, and are (presently)
364 * required for use on StaticBox.
365 *
366 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
367 * connections.
368 *
369 * As of charybdis 2.2, you can do some keyword substitution on the rejection
370 * reason. The available keyword substitutions are:
371 *
372 * ${ip} - the user's IP
373 * ${host} - the user's canonical hostname
374 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
375 * ${nick} - the user's nickname
376 * ${network-name} - the name of the network
377 *
378 * As of charybdis 3.4, a type parameter is supported, which specifies the
379 * address families the blacklist supports. IPv4 and IPv6 are supported.
380 * IPv4 is currently the default as few blacklists support IPv6 operation
381 * as of this writing.
382 *
383 * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be
384 * contacted, via email, at admins@2mbit.com before using these BLs.
385 * See <http://www.ahbl.org/services.php> for more information.
386 */
387 blacklist {
388 host = "rbl.efnetrbl.org";
389 type = ipv4;
390 reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}";
391
392 # host = "ircbl.ahbl.org";
393 # type = ipv4;
394 # reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for having an open proxy. In order to protect ${network-name} from abuse, we are not allowing connections with open proxies to connect.";
395 #
396 # host = "tor.ahbl.org";
397 # type = ipv4;
398 # reject_reason = "${nick}, your IP (${ip}) is listed as a TOR exit node. In order to protect ${network-name} from tor-based abuse, we are not allowing TOR exit nodes to connect to our network.";
399 #
400 /* Example of a blacklist that supports both IPv4 and IPv6 */
401 # host = "foobl.blacklist.invalid";
402 # type = ipv4, ipv6;
403 # reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for some reason. In order to protect ${network-name} from abuse, we are not allowing connections listed in ${dnsbl-host} to connect";
404 };
405
406 alias "NickServ" {
407 target = "NickServ";
408 };
409
410 alias "ChanServ" {
411 target = "ChanServ";
412 };
413
414 alias "OperServ" {
415 target = "OperServ";
416 };
417
418 alias "MemoServ" {
419 target = "MemoServ";
420 };
421
422 alias "NS" {
423 target = "NickServ";
424 };
425
426 alias "CS" {
427 target = "ChanServ";
428 };
429
430 alias "OS" {
431 target = "OperServ";
432 };
433
434 alias "MS" {
435 target = "MemoServ";
436 };
437
438 general {
439 hide_error_messages = opers;
440 hide_spoof_ips = yes;
441
442 /*
443 * default_umodes: umodes to enable on connect.
444 * If you have enabled the new ip_cloaking_4.0 module, and you want
445 * to make use of it, add +x to this option, i.e.:
446 * default_umodes = "+ix";
447 *
448 * If you have enabled the old ip_cloaking module, and you want
449 * to make use of it, add +h to this option, i.e.:
450 * default_umodes = "+ih";
451 */
452 default_umodes = "+i";
453
454 default_operstring = "is an IRC Operator";
455 default_adminstring = "is a Server Administrator";
456 servicestring = "is a Network Service";
457 disable_fake_channels = no;
458 tkline_expire_notices = no;
459 default_floodcount = 10;
460 failed_oper_notice = yes;
461 dots_in_ident=2;
462 min_nonwildcard = 4;
463 min_nonwildcard_simple = 3;
464 max_accept = 100;
465 max_monitor = 100;
466 anti_nick_flood = yes;
467 max_nick_time = 20 seconds;
468 max_nick_changes = 5;
469 anti_spam_exit_message_time = 5 minutes;
470 ts_warn_delta = 30 seconds;
471 ts_max_delta = 5 minutes;
472 client_exit = yes;
473 collision_fnc = yes;
474 global_snotices = yes;
475 dline_with_reason = yes;
476 kline_delay = 0 seconds;
477 kline_with_reason = yes;
478 kline_reason = "K-Lined";
479 identify_service = "NickServ@services.int";
480 identify_command = "IDENTIFY";
481 non_redundant_klines = yes;
482 warn_no_nline = yes;
483 use_propagated_bans = yes;
484 stats_e_disabled = no;
485 stats_c_oper_only=no;
486 stats_h_oper_only=no;
487 stats_y_oper_only=no;
488 stats_o_oper_only=yes;
489 stats_P_oper_only=no;
490 stats_i_oper_only=masked;
491 stats_k_oper_only=masked;
492 map_oper_only = no;
493 operspy_admin_only = no;
494 operspy_dont_care_user_info = no;
495 caller_id_wait = 1 minute;
496 pace_wait_simple = 1 second;
497 pace_wait = 10 seconds;
498 short_motd = no;
499 ping_cookie = no;
500 connect_timeout = 30 seconds;
501 default_ident_timeout = 5;
502 disable_auth = no;
503 no_oper_flood = yes;
504 max_targets = 4;
505 client_flood_max_lines = 20;
506 use_whois_actually = no;
507 oper_only_umodes = operwall, locops, servnotice;
508 oper_umodes = locops, servnotice, operwall, wallop;
509 oper_snomask = "+s";
510 burst_away = yes;
511 nick_delay = 0 seconds; # 15 minutes if you want to enable this
512 reject_ban_time = 1 minute;
513 reject_after_count = 3;
514 reject_duration = 5 minutes;
515 throttle_duration = 60;
516 throttle_count = 4;
517 max_ratelimit_tokens = 30;
518 away_interval = 30;
519 };
520
521 modules {
522 path = "modules";
523 path = "modules/autoload";
524 };