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