]> jfr.im git - solanum.git/blame - doc/reference.conf
CONNECT: allow using 3-argument CONNECT with port == 0 locally (closes #119)
[solanum.git] / doc / reference.conf
CommitLineData
212380e3
AC
1/* doc/reference.conf - charybdis 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 * Written by ejb, wcampbel, db, leeh and others
8 *
407b1826 9 * $Id: reference.conf 3582 2007-11-17 21:55:48Z jilles $
212380e3
AC
10 */
11
12/* IMPORTANT NOTES:
13 *
14 * class {} blocks MUST be specified before anything that uses them. That
15 * means they must be defined before auth {} and before connect {}.
16 *
17 * auth {} blocks MUST be specified in order of precedence. The first one
18 * that matches a user will be used. So place spoofs first, then specials,
19 * then general access, then restricted.
20 *
da77b103
JT
21 * privset {} blocks MUST be specified before anything that uses them. That
22 * means they must be defined before operator {}.
23 *
212380e3
AC
24 * Both shell style (#) and C style comments are supported.
25 *
26 * Files may be included by either:
27 * .include "filename"
28 * .include <filename>
29 *
30 * Times/durations are written as:
31 * 12 hours 30 minutes 1 second
32 *
33 * Valid units of time:
34 * month, week, day, hour, minute, second
35 *
36 * Valid units of size:
37 * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
38 *
39 * Sizes and times may be singular or plural.
40 */
41
42/* Extensions:
43 *
44 * Charybdis contains several extensions that are not enabled by default.
45 * To use them, uncomment the lines below.
46 *
d76258f5
AC
47 * Channel mode +-A (admin only) -- chm_adminonly.la
48 * Channel mode +-O (oper only) -- chm_operonly.la
49 * Channel mode +-S (ssl only) -- chm_sslonly.la
50 * Emulates channel mode +-O (oper only) (+-iI $o) -- chm_operonly_compat.la
51 * Emulates channel mode +-R (quiet unreg) (+-q $~a) -- chm_quietunreg_compat.la
52 * Emulates channel mode +-S (ssl only) (+-b $~z) -- chm_sslonly_compat.la
53 * Restrict channel creation to logged in users -- createauthonly.la
54 * Account bans (+b $a[:mask]) -- extb_account.la
55 * Banned from another channel (+b $j:mask) -- extb_canjoin.la
56 * Other-channel bans (+b $c:mask) -- extb_channel.la
57 * Combination extbans -- extb_combi.la
58 * Extended ban (+b $x:mask) -- extb_extgecos.la
59 * Hostmask bans (for combination extbans) -- extb_hostmask.la
60 * Oper bans (+b $o) -- extb_oper.la
61 * Realname (gecos) bans (+b $r:mask) -- extb_realname.la
62 * Server bans (+b $s:mask) -- extb_server.la
63 * SSL bans (+b $z) -- extb_ssl.la
64 * HURT system -- hurt.la
65 * New host mangling (umode +x) -- ip_cloaking_4.0.la
66 * Old host mangling (umode +h) -- ip_cloaking.la
a4721f5e 67 * Dynamically extend channel limits -- m_extendchans.la
d76258f5
AC
68 * Find channel forwards -- m_findforwards.la
69 * /identify support -- m_identify.la
70 * Opers cannot be invisible (umode +i) -- no_oper_invis.la
71 * Far connection notices (snomask +F) -- sno_farconnect.la
72 * Remote k/d/x line active notices -- sno_globalkline.la
73 * Remote oper up notices -- sno_globaloper.la
74 * /whois notifications (snomask +W) -- sno_whois.la
75 * Oper-override (modehacking only) -- override.la
76 * Stop services kills -- no_kill_services.la
212380e3 77 */
d76258f5
AC
78#loadmodule "extensions/chm_adminonly.la";
79#loadmodule "extensions/chm_operonly.la";
80#loadmodule "extensions/chm_sslonly.la";
81#loadmodule "extensions/chm_operonly_compat.la";
82#loadmodule "extensions/chm_quietunreg_compat.la";
83#loadmodule "extensions/chm_sslonly_compat.la";
84#loadmodule "extensions/createauthonly.la";
85#loadmodule "extensions/extb_account.la";
86#loadmodule "extensions/extb_canjoin.la";
87#loadmodule "extensions/extb_channel.la";
88#loadmodule "extensions/extb_combi.la";
89#loadmodule "extensions/extb_extgecos.la";
90#loadmodule "extensions/extb_hostmask.la";
91#loadmodule "extensions/extb_oper.la";
92#loadmodule "extensions/extb_realname.la";
93#loadmodule "extensions/extb_server.la";
94#loadmodule "extensions/extb_ssl.la";
95#loadmodule "extensions/hurt.la";
96#loadmodule "extensions/ip_cloaking_4.0.la";
97#loadmodule "extensions/ip_cloaking.la";
a4721f5e 98#loadmodule "extensions/m_extendchans.la";
d76258f5
AC
99#loadmodule "extensions/m_findforwards.la";
100#loadmodule "extensions/m_identify.la";
101#loadmodule "extensions/no_oper_invis.la";
102#loadmodule "extensions/sno_farconnect.la";
103#loadmodule "extensions/sno_globalkline.la";
104#loadmodule "extensions/sno_globaloper.la";
105#loadmodule "extensions/sno_whois.la";
106#loadmodule "extensions/override.la";
107#loadmodule "extensions/no_kill_services.la";
15d7a311 108
212380e3
AC
109/* serverinfo {}: Contains information about the server. (OLD M:) */
110serverinfo {
111 /* name: the name of our server */
112 name = "hades.arpa";
113
212380e3
AC
114 /* sid: the unique server id of our server. This must be three
115 * characters long. The first character must be a digit [0-9], the
116 * remaining two chars may be letters [A-Z] or digits [0-9].
117 *
cda8e9b8 118 * This parameter must be specified for the server to start.
212380e3
AC
119 */
120 sid = "42X";
121
122 /* description: the description of our server. '[' and ']' may not
123 * be used here for compatibility with older servers.
124 */
125 description = "charybdis test server";
126
127 /* network info: the name and description of the network this server
128 * is on. Shown in the 005 reply and used with serverhiding.
129 */
130 network_name = "MyNet";
212380e3
AC
131
132 /* hub: allow this server to act as a hub and have multiple servers
133 * connected to it.
134 */
135 hub = no;
136
137 /* vhost: the IP to bind to when we connect outward to ipv4 servers.
138 * This should be an ipv4 IP only.
139 */
cba8bbc3 140 #vhost = "192.0.2.6";
212380e3
AC
141
142 /* vhost6: the IP to bind to when we connect outward to ipv6 servers.
143 * This should be an ipv6 IP only.
144 */
cba8bbc3 145 #vhost6 = "2001:db7:2::6";
c6d72037 146
b8730cbf 147 /* ssl_private_key: our ssl private key */
f1e5a317 148 ssl_private_key = "etc/ssl.key";
b8730cbf
VY
149
150 /* ssl_cert: certificate for our ssl server */
b3c4dfd7 151 ssl_cert = "etc/ssl.pem";
b8730cbf
VY
152
153 /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */
154 ssl_dh_params = "etc/dh.pem";
155
c1725bda
AC
156 /* ssl_cipher_list: A list of ciphers, dependent on your TLS backend */
157 #ssl_cipher_list = "EECDH+HIGH:EDH+HIGH:HIGH:!aNULL";
158
fa1a7bef
JT
159 /* ssld_count: number of ssld processes you want to start, if you
160 * have a really busy server, using N-1 where N is the number of
161 * cpu/cpu cores you have might be useful. A number greater than one
162 * can also be useful in case of bugs in ssld and because ssld needs
163 * two file descriptors per SSL connection.
b8730cbf
VY
164 */
165 ssld_count = 1;
166
167 /* default max clients: the default maximum number of clients
168 * allowed to connect. This can be changed once ircd has started by
169 * issuing:
170 * /quote set maxclients <limit>
c2d96fcb 171 */
101db4c4 172 default_max_clients = 1024;
b583faf9 173
b225bf93
JT
174 /* nicklen: enforced nickname length (for this server only; must not
175 * be longer than the maximum length set while building).
176 */
b583faf9 177 nicklen = 30;
212380e3
AC
178};
179
180/* admin {}: contains admin information about the server. (OLD A:) */
181admin {
182 name = "Smurf target";
183 description = "Main Server Administrator";
184 email = "<syn@packets.r.us>";
185};
186
187/* log {}: contains information about logfiles. */
188log {
189 /* logfiles: the logfiles to use for specific activity. if these
190 * paths are defined, then ircd will log to them, otherwise it wont.
191 *
192 * The confs are, in order:
193 * - userlog: user exits
194 * - fuserlog: failed user connections
195 * - operlog: /oper usage
196 * - foperlog: failed /oper usage
197 * - serverlog: server connects/disconnects
212380e3
AC
198 * - klinelog: klines, etc
199 * - killlog: kills
200 * - operspylog: operspy usage
201 * - ioerrorlog: IO errors
202 */
203 fname_userlog = "logs/userlog";
204 #fname_fuserlog = "logs/fuserlog";
205 fname_operlog = "logs/operlog";
206 #fname_foperlog = "logs/foperlog";
207 fname_serverlog = "logs/serverlog";
212380e3
AC
208 #fname_klinelog = "logs/klinelog";
209 fname_killlog = "logs/killlog";
210 fname_operspylog = "logs/operspylog";
211 #fname_ioerrorlog = "logs/ioerror";
212};
213
214/* class {}: contain information about classes for users (OLD Y:) */
215class "users" {
216 /* class name must go above */
217
218 /* ping time: how often a client must reply to a PING from the
219 * server before they are dropped.
220 */
221 ping_time = 2 minutes;
222
da1b891f
KB
223 /* number per ident: the number of users per user@host networkwide
224 * allowed to connect. Unidented connections are classified as
225 * the same ident.
226 */
227 number_per_ident = 2;
212380e3
AC
228
229 /* number per ip: the number of local users per host allowed */
230 number_per_ip = 3;
231
da1b891f
KB
232 /* number per ip global: the number of network wide connections
233 * per host allowed for a user, including connections to the
234 * local server.
235 */
236 number_per_ip_global = 5;
212380e3 237
bc7c44dc
JT
238 /* cidr_ipv4_bitlen: Limits numbers of connections from a subnet size
239 */
240 cidr_ipv4_bitlen = 24;
241
242 /* cidr_ipv6_bitlen: Limits numbers of connections from a subnet size
212380e3
AC
243 * the following example makes the subnet /64 this is useful
244 * for IPv6 connections in particular
212380e3 245 */
bc7c44dc 246 cidr_ipv6_bitlen = 64;
212380e3
AC
247
248 /* number_per_cidr: Number of connections to allow from a subnet of the
bc7c44dc
JT
249 * size given in cidr_ipv4_bitlen/cidr_ipv6_bitlen.
250 * 4 seems to be a good default to me.
212380e3
AC
251 */
252 number_per_cidr = 4;
253
254 /* max number: the maximum number of users allowed in this class */
255 max_number = 100;
256
257 /* sendq: the amount of data allowed in a clients queue before
258 * they are dropped.
259 */
260 sendq = 100 kbytes;
261};
262
263class "restricted" {
264 ping_time = 1 minute 30 seconds;
265 number_per_ip = 1;
266 max_number = 100;
267 sendq = 60kb;
268};
269
270class "opers" {
271 ping_time = 5 minutes;
272 number_per_ip = 10;
273 max_number = 100;
274 sendq = 100kbytes;
275};
276
277class "server" {
278 ping_time = 5 minutes;
279
280 /* connectfreq: only used in server classes. specifies the delay
281 * between autoconnecting to servers.
282 */
283 connectfreq = 5 minutes;
284
2b121c81
JT
285 /* max number: the amount of servers to autoconnect to. if the number
286 * of servers in the class is or exceeds this, no more servers in the
287 * class are autoconnected. oper initiated connects are unaffected.
288 * this should usually be set to either 0 or 1. (autoconnecting from
289 * hubs to leaves may cause leaves to function as hubs by having
290 * multiple servers connected to them.)
291 */
212380e3
AC
292 max_number = 1;
293
294 /* sendq: servers need a higher sendq as they are sent more data */
295 sendq=2 megabytes;
296};
297
298/* listen {}: contain information about the ports ircd listens on (OLD P:) */
299listen {
02270e96
AC
300 /* defer_accept: wait for clients to send IRC handshake data before
301 * accepting them. if you intend to use software which depends on the
302 * server replying first, such as BOPM, you should disable this feature.
303 * otherwise, you probably want to leave it on.
304 */
305 defer_accept = yes;
306
212380e3
AC
307 /* port: the specific port to listen on. if no host is specified
308 * before, it will listen on all available IPs.
309 *
b8730cbf
VY
310 * sslport: the specific port to listen ssl connections on. if no
311 * host is specified before, it will listen on all available IPs.
312 *
212380e3
AC
313 * ports are seperated via a comma, a range may be specified using ".."
314 */
315
316 /* port: listen on all available IPs, ports 5000 and 6665 to 6669 */
317 port = 5000, 6665 .. 6669;
b8730cbf
VY
318
319 /* sslport: listen for ssl connections on all available IPs, port 9999 */
320 sslport = 9999;
212380e3
AC
321
322 /* host: set a specific IP/host the ports after the line will listen
323 * on. This may be ipv4 or ipv6.
324 */
cba8bbc3 325 host = "192.0.2.6";
212380e3 326 port = 7000, 7001;
b8730cbf 327 sslport = 9000, 9001;
212380e3 328
cba8bbc3 329 host = "2001:db8:2::6";
da1b891f
KB
330 port = 7002;
331 sslport = 9002;
212380e3
AC
332};
333
334/* auth {}: allow users to connect to the ircd (OLD I:) */
335auth {
b0dc8e03
JT
336 /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user
337 * lines are permitted per auth block. This is matched against the
338 * hostname and IP address (using :: shortening for IPv6 and
339 * prepending a 0 if it starts with a colon) and can also use CIDR
340 * masks.
212380e3 341 */
cba8bbc3
JT
342 user = "*@198.51.100.0/24";
343 user = "*test@2001:db8:1:*";
212380e3 344
f9bb3e0d
CM
345 /* auth_user: This allows specifying a username:password instead of
346 * just a password in PASS, so that a fixed user@host is not
347 * necessary for a specific auth{} block.
348 */
349 #auth_user = "SomeUser";
350
212380e3
AC
351 /* password: an optional password that is required to use this block.
352 * By default this is not encrypted, specify the flag "encrypted" in
353 * flags = ...; below if it is.
354 */
355 password = "letmein";
356
357 /* spoof: fake the users user@host to be be this. You may either
358 * specify a host or a user@host to spoof to. This is free-form,
359 * just do everyone a favour and dont abuse it. (OLD I: = flag)
360 */
da1b891f 361 spoof = "I.still.hate.packets";
212380e3
AC
362
363 /* Possible flags in auth:
364 *
365 * encrypted | password is encrypted with mkpasswd
366 * spoof_notice | give a notice when spoofing hosts
367 * exceed_limit (old > flag) | allow user to exceed class user limits
368 * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls
369 * dnsbl_exempt | exempt this user from dnsbls
212380e3
AC
370 * spambot_exempt | exempt this user from spambot checks
371 * shide_exempt | exempt this user from serverhiding
372 * jupe_exempt | exempt this user from generating
373 * warnings joining juped channels
374 * resv_exempt | exempt this user from resvs
da1b891f
KB
375 * flood_exempt | exempt this user from flood limits
376 * USE WITH CAUTION.
212380e3
AC
377 * no_tilde (old - flag) | don't prefix ~ to username if no ident
378 * need_ident (old + flag) | require ident for user in this class
b1594414 379 * need_ssl | require SSL/TLS for user in this class
212380e3 380 * need_sasl | require SASL id for user in this class
a4721f5e 381 * extend_chans | allow this user to join more channels than normal
212380e3
AC
382 */
383 flags = kline_exempt, exceed_limit;
384
385 /* class: the class the user is placed in */
386 class = "opers";
387};
388
389auth {
390 /* redirect: the server and port to redirect a user to. A user does
391 * not have to obey the redirection, the ircd just suggests to them
392 * an alternative server.
393 */
cba8bbc3 394 redirserv = "irc.example.net";
212380e3
AC
395 redirport = 6667;
396
cba8bbc3 397 user = "*.example.com";
212380e3
AC
398
399 /* class: a class is required even though it is not used */
400 class = "users";
401};
402
403auth {
404 user = "*@*";
405 class = "users";
212380e3
AC
406};
407
da77b103
JT
408/* privset{}: defines operator privilege sets. */
409privset "local_op" {
410 /* privs: controls the activities and commands an oper is
411 * allowed to do on the server
412 *
413 * Available options:
414 *
415 * oper:local_kill: allows local users to be /KILL'd
416 * oper:global_kill: allows local and remote users to be /KILL'd
3eae266c 417 * oper:routing: allows remote SQUIT and CONNECT
da77b103
JT
418 * oper:kline: allows KLINE and DLINE
419 * oper:unkline: allows UNKLINE and UNDLINE
420 * snomask:nick_changes: allows oper to see nickchanges via snomask +n
421 * oper:rehash: allows oper to REHASH config
422 * oper:die: allows DIE and RESTART
423 * oper:admin: gives admin privileges. admins
424 * may (un)load modules and see various
425 * additional information.
426 * oper:hidden_admin: gives admin privileges except
427 * will not have the admin lines in
428 * whois.
429 * oper:xline: allows use of /quote xline/unxline
430 * oper:resv: allows /quote resv/unresv and cmode +LP
431 * oper:operwall: allows the oper to send/receive operwalls
432 * oper:spy: allows 'operspy' features to see through +s
433 * channels etc. see /quote help operspy
434 * oper:hidden: hides the oper from /stats p
435 * oper:remoteban: allows remote kline etc
436 * oper:mass_notice: allows sending wallops and mass notices
fe749d37 437 * oper:grant: allows using the GRANT command
da77b103
JT
438 */
439 privs = oper:local_kill, oper:operwall;
440};
441
442privset "server_bot" {
443 /* extends: a privset to inherit in this privset */
444 extends = "local_op";
d9e7ca49 445 privs = oper:kline, oper:remoteban, snomask:nick_changes;
da77b103
JT
446};
447
448privset "global_op" {
449 extends = "local_op";
450 privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
451 oper:resv, oper:mass_notice, oper:remoteban;
452};
453
454privset "admin" {
455 extends = "global_op";
fe749d37 456 privs = oper:admin, oper:die, oper:rehash, oper:spy, oper:grant;
da77b103
JT
457};
458
459/* operator {}: defines ircd operators. (OLD O:) */
212380e3
AC
460operator "god" {
461 /* name: the name of the oper must go above */
462
463 /* user: the user@host required for this operator. CIDR *is*
464 * supported now. auth{} spoofs work here, other spoofs do not.
da1b891f 465 * multiple user="" lines are supported.
212380e3
AC
466 */
467 user = "*god@*";
468 user = "*@127.0.0.1";
469
470 /* password: the password required to oper. Unless ~encrypted is
471 * contained in flags = ...; this will need to be encrypted using
472 * mkpasswd, MD5 is supported
473 */
474 password = "etcnjl8juSU1E";
475
476 /* rsa key: the public key for this oper when using Challenge.
477 * A password should not be defined when this is used, see
478 * doc/challenge.txt for more information.
479 */
480 #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
481
ff31db84
AC
482 /* fingerprint: if specified, the oper's client certificate
483 * fingerprint will be checked against the specified fingerprint
484 * below.
485 */
486 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
487
212380e3
AC
488 /* umodes: the specific umodes this oper gets when they oper.
489 * If this is specified an oper will not be given oper_umodes
490 * These are described above oper_only_umodes in general {};
491 */
492 #umodes = locops, servnotice, operwall, wallop;
493
494 /* snomask: specific server notice mask on oper up.
495 * If this is specified an oper will not be given oper_snomask.
496 */
497 snomask = "+Zbfkrsuy";
498
da77b103
JT
499 /* flags: misc options for the operator. You may prefix an option
500 * with ~ to disable it, e.g. ~encrypted.
212380e3 501 *
da77b103 502 * Default flags are encrypted.
212380e3
AC
503 *
504 * Available options:
505 *
506 * encrypted: the password above is encrypted [DEFAULT]
b1594414 507 * need_ssl: must be using SSL/TLS to oper up
da1b891f 508 */
da77b103
JT
509 flags = encrypted;
510
511 /* privset: privileges set to grant */
512 privset = "admin";
212380e3
AC
513};
514
515/* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */
516connect "irc.uplink.com" {
517 /* the name must go above */
518
519 /* host: the host or IP to connect to. If a hostname is used it
520 * must match the reverse dns of the server.
521 */
cba8bbc3 522 host = "203.0.113.3";
212380e3
AC
523
524 /* vhost: the host or IP to bind to for this connection. If this
525 * is not specified, the default vhost (in serverinfo {}) is used.
526 */
cba8bbc3 527 #vhost = "192.0.2.131";
212380e3
AC
528
529 /* passwords: the passwords we send (OLD C:) and accept (OLD N:).
530 * The remote server will have these passwords reversed.
531 */
532 send_password = "password";
533 accept_password = "anotherpassword";
534
ff0cc1e6
AC
535 /* fingerprint: if specified, the server's client certificate
536 * fingerprint will be checked against the specified fingerprint
537 * below.
538 */
539 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
540
212380e3
AC
541 /* port: the port to connect to this server on */
542 port = 6666;
543
544 /* hub mask: the mask of servers that this server may hub. Multiple
545 * entries are permitted
546 */
547 hub_mask = "*";
548
549 /* leaf mask: the mask of servers this server may not hub. Multiple
550 * entries are permitted. Useful for forbidding EU -> US -> EU routes.
551 */
552 #leaf_mask = "*.uk";
553
554 /* class: the class this server is in */
555 class = "server";
556
557 /* flags: controls special options for this server
558 * encrypted - marks the accept_password as being crypt()'d
559 * autoconn - automatically connect to this server
560 * compressed - compress traffic via ziplinks
561 * topicburst - burst topics between servers
b8730cbf 562 * ssl - ssl/tls encrypted server connections
212380e3
AC
563 */
564 flags = compressed, topicburst;
565};
566
d76258f5 567connect "ipv6.lame.server" {
b0dc8e03
JT
568 /* Hosts that are IPv6 addresses must be in :: shortened form
569 * if applicable. Addresses starting with a colon get an extra
570 * zero prepended, for example: 0::1
571 */
cba8bbc3 572 host = "2001:db8:3::8";
da1b891f
KB
573 send_password = "password";
574 accept_password = "password";
575 port = 6666;
212380e3
AC
576
577 /* aftype: controls whether the connection uses "ipv4" or "ipv6".
578 * Default is ipv4.
579 */
580 aftype = ipv6;
da1b891f 581 class = "server";
212380e3
AC
582};
583
b8730cbf
VY
584connect "ssl.uplink.com" {
585 /* Example of ssl server-to-server connection, ssl flag doesn't need
586 * compressed flag, 'cause it uses own compression
587 */
cba8bbc3 588 host = "203.0.113.129";
b8730cbf
VY
589 send_password = "password";
590 accept_password = "anotherpassword";
591 port = 9999;
592 hub_mask = "*";
593 class = "server";
594 flags = ssl, topicburst;
595};
596
212380e3
AC
597/* cluster {}; servers that we propagate things to automatically.
598 * NOTE: This does NOT grant them privileges to apply anything locally,
599 * you must add a seperate shared block for that. Clustering will
600 * only be done for actions by LOCAL opers, that arent directed
601 * remotely.
602 */
603cluster {
604 /* name: the server to share with, this can be a wildcard and may be
605 * stacked.
606 */
607 /* flags: list of what to share, all the name lines above this (up
608 * until another flags entry) will receive these flags.
609 *
610 * kline - share perm klines
611 * tkline - share temp klines
612 * unkline - share unklines
613 * locops - share locops
614 * xline - share perm xlines
615 * txline - share temp xlines
616 * unxline - share unxlines
617 * resv - share perm resvs
618 * tresv - share temp resvs
619 * unresv - share unresvs
620 * all - share all of the above
621 */
622
d76258f5
AC
623 /* share klines/unklines/xlines with *.lan */
624 name = "*.lan";
212380e3
AC
625 flags = kline, unkline, xline;
626
627 /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */
628 name = "irc.ircd-ratbox.org";
629 name = "ircd.ircd-ratbox.org";
630 flags = locops;
631};
632
633/* service{}: privileged servers (services). These servers have extra
634 * privileges such as setting login names on users and introducing clients
635 * with umode +S (unkickable, hide channels, etc). This does not allow them
636 * to set bans, you need a separate shared{} for that.
637 * Do not place normal servers here.
638 * There may be only one service{} block.
639 */
640service {
641 /* name: the server name. These may be stacked. */
642 name = "services.int";
643};
644
645/* shared {}: users that are allowed to place remote bans on our server.
646 * NOTE: These are ordered top down. The first one the user@host and server
647 * matches will be used. Their access will then be decided on that
648 * block and will not fall back to another block that matches.
649 */
650shared {
651 /* oper: the user@host and server the user must be on to set klines.
652 * The first field must be a user@host, the second field is an
653 * optional server. These may be stacked.
654 */
655 /* flags: list of what to allow them to place, all the oper lines
656 * above this (up until another flags entry) will receive these
657 * flags. This *must* be present.
658 *
659 * kline - allow setting perm/temp klines
660 * tkline - allow setting temp klines
661 * unkline - allow removing klines
662 * xline - allow setting perm/temp xlines
663 * txline - allow setting temp xlines
664 * unxline - allow removing xlines
665 * resv - allow setting perm/temp resvs
666 * tresv - allow setting temp resvs
667 * unresv - allow removing xlines
668 * all - allow oper/server to do all of above.
669 * locops - allow locops - only used for servers who cluster
da1b891f 670 * rehash - allow rehashing
d8d2cb0a
JT
671 * dline - allow setting perm/temp dlines
672 * tdline - allow setting temp dlines
673 * undline - allow removing dlines
fe749d37 674 * grant - allow granting operator status
cc7ae51c 675 * die - allow remote DIE/RESTART
15feac53 676 * module - allow remote module commands
212380e3
AC
677 * none - disallow everything
678 */
679
680 /* allow flame@*.leeh.co.uk on server irc.ircd-ratbox.org and
681 * allow leeh@*.leeh.co.uk on server ircd.ircd-ratbox.org to kline
682 */
683 oper = "flame@*.leeh.co.uk", "irc.ircd-ratbox.org";
684 oper = "leeh@*.leeh.co.uk", "ircd.ircd-ratbox.org";
685 flags = kline;
686
687 /* you may forbid certain opers/servers from doing anything */
688 oper = "irc@vanity.oper", "*";
689 oper = "*@*", "irc.vanity.server";
690 oper = "irc@another.vanity.oper", "bigger.vanity.server";
691 flags = none;
692
693 /* or allow everyone to place temp klines */
694 oper = "*@*";
695 flags = tkline;
696};
697
b808adf9 698/* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
212380e3 699exempt {
cba8bbc3 700 ip = "192.0.2.0/24";
212380e3
AC
701
702 /* these may be stacked */
703 ip = "127.0.0.1";
212380e3
AC
704};
705
706/* The channel block contains options pertaining to channels */
707channel {
708 /* invex: Enable/disable channel mode +I, a n!u@h list of masks
709 * that can join a +i channel without an invite.
710 */
711 use_invex = yes;
712
713 /* except: Enable/disable channel mode +e, a n!u@h list of masks
714 * that can join a channel through a ban (+b).
715 */
716 use_except = yes;
717
2da6f6eb
JT
718 /* forward: Enable/disable channel mode +f, a channel to forward
719 * users to if they can't join because of +i etc. Also enables ban
720 * forwarding, <mask>$<channel>.
721 */
722 use_forward = yes;
723
212380e3
AC
724 /* knock: Allows users to request an invite to a channel that
725 * is locked somehow (+ikl). If the channel is +p or you are banned
726 * the knock will not be sent.
727 */
728 use_knock = yes;
729
212380e3
AC
730 /* knock delay: The amount of time a user must wait between issuing
731 * the knock command.
732 */
733 knock_delay = 5 minutes;
734
735 /* knock channel delay: How often a knock to any specific channel
736 * is permitted, regardless of the user sending the knock.
737 */
738 knock_delay_channel = 1 minute;
739
740 /* max chans: The maximum number of channels a user can join/be on. */
741 max_chans_per_user = 15;
742
a4721f5e
AC
743 /* max chans (large): The extended maximum number of channels a user can join. */
744 max_chans_per_user_large = 60;
745
da1b891f
KB
746 /* max bans: maximum number of +b/e/I/q modes in a channel */
747 max_bans = 100;
212380e3 748
da1b891f
KB
749 /* max bans: maximum number of +b/e/I/q modes in a +L channel */
750 max_bans_large = 500;
212380e3 751
da1b891f 752 /* splitcode: split users, split servers and either no join on split
212380e3
AC
753 * or no create on split must be enabled for split checking.
754 * splitmode will be entered on either split users or split servers
755 * dropping below the limit.
756 *
757 * you may force splitmode to be permanent by /quote set splitmode on
758 */
759
760 /* split users: when the usercount is lower than this level, consider
761 * ourselves split. this must be set for automatic splitmode
762 */
763 default_split_user_count = 0;
764
765 /* split servers: when the amount of servers that have acknowledged
766 * theyve finished bursting is lower than this, consider ourselves
767 * split. this must be set for automatic splitmode
768 */
769 default_split_server_count = 0;
770
771 /* split: no create: disallow users creating channels on split */
772 no_create_on_split = no;
773
774 /* split: no join: disallow users joining channels at all on a split */
775 no_join_on_split = no;
776
777 /* burst topicwho: when bursting topics, also burst the topic setter */
778 burst_topicwho = yes;
779
780 /* kick on split riding: kick users riding splits to join +i or +k
781 * channels. more precisely, if a bursting server sends an SJOIN
782 * for a channel with a lower TS with either a +i mode or a +k
783 * mode with a different key, kick all local users.
784 *
785 * note: this does not take +r, +b, +e and +I into account.
212380e3
AC
786 */
787 kick_on_split_riding = no;
6865c0b0
JT
788
789 /* only ascii channels: disable local users joining channels
790 * containing characters outside the range 33-126 (non-printable
791 * or non-ASCII).
792 */
793 only_ascii_channels = no;
da1b891f 794
c2c25552
JT
795 /* resv_forcepart: force any local users to part a channel
796 * when a RESV is issued.
797 */
798 resv_forcepart = yes;
717238d2
JT
799
800 /* channel target change: restrict how many channels users can
801 * message per unit of time. IRC operators, channel operators and
802 * voiced users are exempt.
803 */
804 channel_target_change = yes;
341f971e
SB
805
806 /* disable local channels: if yes, then local channels will not be
807 * supported.
808 */
809 disable_local_channels = no;
63eb8567
AC
810
811 /* autochanmodes: the channel modes that should be automatically set
812 * when a channel is created.
813 */
814 autochanmodes = "+nt";
d513218a
AC
815
816 /* displayed_usercount: the minimum amount of users on a channel before it
817 * is displayed in LIST. this parameter can be overridden using ELIST parameters,
818 * such as LIST >0.
819 */
820 displayed_usercount = 3;
212380e3
AC
821};
822
823
824/* The serverhide block contains the options regarding serverhiding */
825serverhide {
4acf2281
JT
826 /* flatten links: this option will hide various routing information
827 * and make all servers in /links appear that they are linked to
828 * this server.
212380e3
AC
829 */
830 flatten_links = no;
831
994544c2
JT
832 /* links delay: how long to wait before showing splits or new
833 * servers in a flattened /links output.
212380e3
AC
834 */
835 links_delay = 5 minutes;
836
4acf2281
JT
837 /* hidden: hide this server from a /links output on servers with
838 * flatten_links enabled. this allows hub servers to be hidden etc.
212380e3 839 */
da1b891f 840 hidden = no;
212380e3
AC
841
842 /* disable hidden: prevent servers hiding themselves from a
843 * /links ouput.
844 */
845 disable_hidden = no;
846};
847
848/* These are the blacklist settings.
849 * You can have multiple combinations of host and rejection reasons.
b2324470 850 * They are used in pairs of one host/rejection reason.
212380e3
AC
851 *
852 * These settings should be adequate for most networks, and are (presently)
765d839d 853 * required for use on StaticBox.
212380e3
AC
854 *
855 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
856 * connections.
857 *
92fb5c31
AC
858 * As of charybdis 2.2, you can do some keyword substitution on the rejection
859 * reason. The available keyword substitutions are:
860 *
861 * ${ip} - the user's IP
862 * ${host} - the user's canonical hostname
863 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
864 * ${nick} - the user's nickname
865 * ${network-name} - the name of the network
866 *
0a1e77c2
EM
867 * As of charybdis 3.4, a type parameter is supported, which specifies the
868 * address families the blacklist supports. IPv4 and IPv6 are supported.
869 * IPv4 is currently the default as few blacklists support IPv6 operation
870 * as of this writing.
871 *
3c93d380
EM
872 * As of charybdis 3.5, a matches parameter is allowed; if omitted, any result
873 * is considered a match. If included, a comma-separated list of *quoted*
874 * strings is allowed to match queries. They may be of the format "0" to "255"
875 * to match the final octet (e.g. 127.0.0.1) or "127.x.y.z" to explicitly match
876 * an A record. The blacklist is only applied if it matches anything in the
f0bce9d9
EM
877 * list. You may freely mix full IP's and final octets.
878 *
879 * Consult your blacklist provider for the meaning of these parameters; they
880 * are usually used to denote different ban types.
212380e3 881 */
57b8cb0f 882blacklist {
40e92fca 883 host = "rbl.efnetrbl.org";
0a1e77c2 884 type = ipv4;
40e92fca 885 reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}";
57b8cb0f 886
3c93d380 887 /* Example of a blacklist that supports both IPv4 and IPv6 and using matches */
0a1e77c2 888# host = "foobl.blacklist.invalid";
3c93d380 889# matches = "4", "6", "127.0.0.10";
0a1e77c2
EM
890# type = ipv4, ipv6;
891# 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";
57b8cb0f 892};
212380e3
AC
893
894/*
895 * Alias blocks allow you to define custom commands. (Old m_sshortcut.c)
896 * They send PRIVMSG to the given target. A real command takes
897 * precedence above an alias.
898 */
899alias "NickServ" {
900 /* the name must go above */
901
902 /* target: the target nick (must be a network service) or
903 * user@server (cannot be this server, only opers can use
904 * user starting with "opers" reliably, interpreted on the target
905 * server only so you may need to use nick@server instead)
906 */
907 target = "NickServ";
908};
909
910alias "ChanServ" {
911 target = "ChanServ";
912};
913
914alias "OperServ" {
915 target = "OperServ";
916};
917
918alias "MemoServ" {
919 target = "MemoServ";
920};
921
922alias "NS" {
923 target = "NickServ";
924};
925
926alias "CS" {
927 target = "ChanServ";
928};
929
930alias "OS" {
931 target = "OperServ";
932};
933
934alias "MS" {
935 target = "MemoServ";
936};
937
938/* The general block contains many of the options that were once compiled
939 * in options in config.h. The general block is read at start time.
940 */
941general {
942 /* hide error messages: defines whether error messages from
922aa826
JT
943 * servers that are not deemed fully safe are hidden or not.
944 * These can sometimes contain IPs and can have an adverse
945 * effect on server ip hiding. Set to:
212380e3
AC
946 * yes: hide from opers and admin
947 * opers: hide from opers only
948 * no: do not hide error messages
922aa826 949 * Admins on other servers count as opers.
212380e3
AC
950 */
951 hide_error_messages = opers;
952
953 /* hide spoof ips: hide the real ips of auth{} spoofed users
954 * If disabled, local opers can see them.
955 * Dynamic spoofs (e.g. set by services) are unaffected by this;
956 * any oper (local and remote) can see the real ip.
212380e3
AC
957 */
958 hide_spoof_ips = yes;
959
960 /* default umodes: umodes to set upon connection
961 * If you have enabled the ip_cloaking extension, and you wish for
a8560aff 962 * incoming clients to be set +h or +x upon connection, add +h or +x to the umode
212380e3
AC
963 * string below.
964 */
965 default_umodes = "+i";
966
967 /* default operstring: defines the default oper response
968 * in /whois queries, eg "is an IRC Operator".
969 * After startup use /quote set operstring to change.
970 */
971 default_operstring = "is an IRC Operator";
972
973 /* default adminstring: defines the default admin response
974 * in /whois queries, eg "is a Server Administrator".
975 * After startup use /quote set adminstring to change.
976 */
977 default_adminstring = "is a Server Administrator";
978
979 /* servicestring: defines the response for opered services (+S)
980 * in /whois queries, eg "is a Network Service".
981 * This is updated on rehash.
982 */
983 servicestring = "is a Network Service";
984
7d33cce8
MT
985 /*
986 * Nick of the network's SASL agent. Used to check whether services are here,
987 * SASL credentials are only sent to its server. Needs to be a service.
988 *
989 * Defaults to SaslServ if unspecified.
990 */
991 sasl_service = "SaslServ";
992
212380e3
AC
993 /* disable fake channels: disable local users joining fake versions
994 * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse,
995 * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively).
996 */
997 disable_fake_channels = no;
998
da1b891f
KB
999 /* tkline_expire_notices: give a notice to opers when a tkline
1000 * expires
1001 */
1002 tkline_expire_notices = no;
212380e3
AC
1003
1004 /* floodcount: the default value of floodcount that is configurable
1005 * via /quote set floodcount. This is the amount of lines a user
1006 * may send to any other user/channel in one second.
1007 */
da1b891f 1008 default_floodcount = 10;
212380e3
AC
1009
1010 /* failed oper notice: send a notice to all opers on the server when
1011 * someone tries to OPER and uses the wrong password, host or ident.
1012 */
1013 failed_oper_notice = yes;
1014
1015 /* dots in ident: the amount of '.' characters permitted in an ident
1016 * reply before the user is rejected.
1017 */
1018 dots_in_ident=2;
1019
da1b891f 1020 /* min nonwildcard: the minimum non wildcard characters in k/d/g lines
212380e3
AC
1021 * placed via the server. klines hand placed are exempt from limits.
1022 * wildcard chars: '.' '*' '?' '@'
1023 */
1024 min_nonwildcard = 4;
1025
1026 /* min nonwildcard simple: the minimum non wildcard characters in
1027 * xlines/resvs placed via the server.
1028 * wildcard chars: '*' '?'
1029 */
1030 min_nonwildcard_simple = 3;
1031
da1b891f
KB
1032 /* max accept: maximum allowed /accept's for +g usermode */
1033 max_accept = 20;
212380e3 1034
5f8fb56d
AW
1035 /* max monitor: the maximum amount of nicknames a client may have in
1036 * their monitor (server-side notify) list.
1037 */
1038 max_monitor = 100;
1039
212380e3
AC
1040 /* nick flood: enable the nickflood control code */
1041 anti_nick_flood = yes;
1042
1043 /* nick flood: the nick changes allowed in the specified period */
1044 max_nick_time = 20 seconds;
1045 max_nick_changes = 5;
1046
da1b891f 1047 /* anti spam time: the minimum time a user must be connected before
212380e3
AC
1048 * custom quit messages are allowed.
1049 */
da1b891f 1050 anti_spam_exit_message_time = 5 minutes;
212380e3
AC
1051
1052 /* ts delta: the time delta allowed between server clocks before
1053 * a warning is given, or before the link is dropped. all servers
1054 * should run ntpdate/rdate to keep clocks in sync
1055 */
1056 ts_warn_delta = 30 seconds;
1057 ts_max_delta = 5 minutes;
1058
f09c28e1 1059 /* client exit: prepend a user's quit message with "Quit: " */
212380e3
AC
1060 client_exit = yes;
1061
1062 /* collision fnc: change user's nick to their UID instead of
1063 * killing them, if possible. This setting only applies to nick
1064 * collisions detected on this server. Only enable this if
1065 * all servers on the network allow remote nicks to start with
1066 * a digit.
1067 */
1068 collision_fnc = yes;
1069
330692a1
KB
1070 /* resv fnc: change a user's nick to a nick they have recently used
1071 * (or their UID, if no such nick can be found) when a resv matching
1072 * them is set by services. Only enable this if all servers on the
1073 * network allow remote nicks to start with a digit.
1074 */
1075 resv_fnc = yes;
1076
212380e3
AC
1077 /* global snotices: send out certain snotices (most +b, +f, +y,
1078 * some +s) to other servers via ENCAP SNOTE. Received SNOTEs are
1079 * displayed unconditionally.
1080 */
1081 global_snotices = yes;
1082
1083 /* dline reason: show the user the dline reason when they connect
1084 * and are dlined.
1085 */
1086 dline_with_reason = yes;
1087
1088 /* kline delay: delay the checking of klines until a specified time.
1089 * Useful if large kline lists are applied often to prevent the
1090 * server eating CPU.
1091 */
1092 kline_delay = 0 seconds;
1093
170703fe 1094 /* kline reason: show the user the reason why they are k/dlined
212380e3
AC
1095 * on exit. may give away who set k/dline when set via tcm.
1096 */
1097 kline_with_reason = yes;
1098
1099 /* kline reason: make the users quit message on channels this
1100 * reason instead of the oper's reason.
1101 */
1102 kline_reason = "Connection closed";
1103
1104 /* identify to services via server password
1105 * if auth{} block had no password but the user specified a
1106 * server password anyway, send a PRIVMSG to <identify_service>
1107 * with as text <identify_command> <password>.
1108 */
1109 identify_service = "NickServ@services.int";
1110 identify_command = "IDENTIFY";
1111
1112 /* non redundant klines: flag and ignore redundant klines */
1113 non_redundant_klines = yes;
1114
1115 /* warn no nline: warn opers about servers that try to connect but
1116 * we dont have a connect {} block for. Twits with misconfigured
1117 * servers can get really annoying with this enabled.
1118 */
1119 warn_no_nline = yes;
1120
dca9e552 1121 /* use propagated bans: KLINE, XLINE and RESV set fully propagated bans.
3cbbfb25
JT
1122 * That means the bans are part of the netburst and restarted/split
1123 * servers will get them, but they will not apply to 3.2 and older
1124 * servers at all.
1702b694
JT
1125 */
1126 use_propagated_bans = yes;
1127
212380e3
AC
1128 /* stats e disabled: disable stats e. useful if server ips are
1129 * exempted and you dont want them listing on irc.
1130 */
1131 stats_e_disabled = no;
1132
1133 /* stats c oper only: make stats c (connect {}) oper only */
1134 stats_c_oper_only=no;
1135
1136 /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */
1137 stats_h_oper_only=no;
1138
1139 /* stats y oper only: make stats y (class {}) oper only */
1140 stats_y_oper_only=no;
1141
1142 /* stats o oper only: make stats o (opers) oper only */
1143 stats_o_oper_only=yes;
1144
1145 /* stats P oper only: make stats P (ports) oper only
1146 * NOTE: users doing stats P will never be given the ips that the
1147 * server listens on, simply the ports.
1148 */
1149 stats_P_oper_only=no;
1150
1151 /* stats i oper only: make stats i (auth {}) oper only. set to:
1152 * yes: show users no auth blocks, made oper only.
1153 * masked: show users first matching auth block
1154 * no: show users all auth blocks.
1155 */
1156 stats_i_oper_only=masked;
1157
1158 /* stats k/K oper only: make stats k/K (klines) oper only. set to:
1159 * yes: show users no auth blocks, made oper only
1160 * masked: show users first matching auth block
1161 * no: show users all auth blocks.
1162 */
1163 stats_k_oper_only=masked;
1164
da1b891f
KB
1165 /* map oper only: make /map oper only */
1166 map_oper_only = no;
212380e3
AC
1167
1168 /* operspy admin only: make operspy notices to +Z admin only */
1169 operspy_admin_only = no;
1170
1171 /* operspy dont care user info: treat /who mask as if there was
1172 * an '!' always; do not log or server notice about operspy
1173 * /who mask, /masktrace and /scan. channel information is still
1174 * protected. */
1175 operspy_dont_care_user_info = no;
1176
1177 /* caller id wait: time between notifying a +g user that somebody
1178 * is messaging them.
1179 */
1180 caller_id_wait = 1 minute;
1181
1182 /* pace wait simple: time between use of less intensive commands
1183 * (HELP, remote WHOIS, WHOWAS)
1184 */
1185 pace_wait_simple = 1 second;
1186
1187 /* pace wait: time between more intensive commands
1188 * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION)
1189 */
1190 pace_wait = 10 seconds;
1191
1192 /* short motd: send clients a notice telling them to read the motd
1193 * instead of forcing a motd to clients who may simply ignore it.
1194 */
1195 short_motd = no;
1196
1197 /* ping cookies: require clients to respond exactly to a ping command,
1198 * can help block certain types of drones and FTP PASV mode spoofing.
1199 */
1200 ping_cookie = no;
1201
1202 /* connect timeout: sets how long we should wait for a connection
1203 * request to succeed
1204 */
1205 connect_timeout = 30 seconds;
1206
0ffb8106
JH
1207 /* ident timeout: Amount of time (in seconds) that the IRCd will
1208 * wait for a user to respond to an ident request.
1209 */
944b0584 1210 default_ident_timeout = 5;
0ffb8106 1211
212380e3
AC
1212 /* disable auth: disables identd checking */
1213 disable_auth = no;
1214
1215 /* no oper flood: increase flood limits for opers. */
1216 no_oper_flood = yes;
1217
212380e3
AC
1218 /* REMOVE ME. The following line checks you've been reading. */
1219 havent_read_conf = yes;
1220
1221 /* max targets: the maximum amount of targets in a single
1222 * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited.
1223 */
1224 max_targets = 4;
1225
da1b891f
KB
1226 /* use_whois_actually: send clients requesting a whois a numeric
1227 * giving the real IP of non-spoofed clients to prevent DNS abuse.
1228 */
1229 use_whois_actually = yes;
212380e3
AC
1230
1231 /* usermodes configurable: a list of usermodes for the options below
1232 *
1233 * +g - callerid - Server Side Ignore
1234 * +D - deaf - Don't see channel messages
1235 * +i - invisible - Not shown in NAMES or WHO unless you share a
1236 * a channel
1237 * +l - locops - See LOCOPS messages
1238 * +Q - noforward - Unaffected by channel forwarding
1239 * +R - regonlymsg - No messages from unindentified
1240 * +s - servnotice - See server notices
1241 * +w - wallop - See oper and server generated WALLOPS
1242 * +z - operwall - See operwalls
1243 */
1244
1245 /* oper only umodes: usermodes only opers may set */
1246 oper_only_umodes = operwall, locops, servnotice;
1247
1248 /* oper umodes: default usermodes opers get when they /oper */
1249 oper_umodes = locops, servnotice, operwall, wallop;
1250
1251 /* oper snomask: default snomask opers get when they /oper,
1252 * provided they have umode +s set */
1253 oper_snomask = "+s";
1254
212380e3
AC
1255 /* compression level: level of compression for compressed links between
1256 * servers.
1257 *
1258 * values are between: 1 (least compression, fastest)
1259 * and: 9 (most compression, slowest).
1260 */
1261 #compression_level = 6;
1262
da1b891f
KB
1263 /* burst_away: This enables bursting away messages to servers.
1264 * With this disabled, we will only propogate AWAY messages
1265 * as users send them, but never burst them. Be warned though
1266 * enabling this could increase the size of a burst significantly
1267 * for a large network, like EFnet.
1268 */
1269 burst_away = yes;
212380e3
AC
1270
1271 /* nick delay: This locks nicks of split clients for the given time
1272 * or until a remote client uses the nick. This significantly
1273 * reduces nick collisions on short splits but it can be annoying.
1274 * To make things as fair as possible, this should be the same on
1275 * all servers. If you enable this, the suggested value is 15 minutes.
1276 */
1277 nick_delay = 0 seconds;
1278
1279 /* reject time: the amount of rejections through klines/dlines etc
1280 * allowed in the given time before the rejection is cached and
1281 * a pseudo temp dline is placed
1282 */
1283 reject_ban_time = 1 minute;
1284 reject_after_count = 3;
1285
1286 /* reject duration: the amount of time to cache the rejection */
1287 reject_duration = 5 minutes;
54015b5f 1288
43946961
JT
1289 /* throttle_duration: Amount of time that throttling will be applied to an IP
1290 * address.
54015b5f 1291 */
43946961
JT
1292 throttle_duration = 60;
1293
1294 /* throttle_count: Number of connections within throttle_duration that it takes
1295 * for throttling to take effect */
1296 throttle_count = 4;
e6e54763 1297
da1b891f
KB
1298 /* client flood_max_lines: maximum number of lines in a clients queue before
1299 * they are dropped for flooding.
1300 */
1301 client_flood_max_lines = 20;
1302
1303 /* Flood control settings. DO NOT CHANGE THESE without extensive discussion
1304 * and testing by someone who knows exactly what they do.
1305 *
1306 * These settings replicate charybdis-3.3 behaviour.
1307 */
1308 client_flood_burst_rate = 40;
1309 client_flood_burst_max = 5;
1310 client_flood_message_time = 1;
1311 client_flood_message_num = 2;
e88a1f1b
KB
1312
1313 /* max_ratelimit_tokens: the maximum number of ratelimit tokens that one
1314 * user can accumulate. This attempts to limit the amount of outbound
1315 * bandwidth one user can consume. Do not change unless you know what
1316 * you're doing.
1317 */
1318 max_ratelimit_tokens = 30;
d42e6915
JT
1319
1320 /* away_interval: the minimum interval between AWAY commands. One
1321 * additional AWAY command is allowed, and only marking as away
1322 * counts.
1323 */
1324 away_interval = 30;
13d8f0ed
AC
1325
1326 /* certfp_method: the method that should be used for computing certificate fingerprints.
1327 * Acceptable options are sha1, sha256 and sha512. Networks running versions of charybdis
1328 * prior to charybdis 3.5 MUST use sha1 for certfp_method.
1329 */
1330 certfp_method = sha1;
212380e3
AC
1331};
1332
1333modules {
1334 /* module path: paths to search for modules specified below and
1335 * in /modload.
1336 */
1337 path = "/usr/local/ircd/modules";
1338 path = "/usr/local/ircd/modules/autoload";
1339
1340 /* module: the name of a module to load on startup/rehash */
d76258f5 1341 #module = "some_module.la";
212380e3 1342};