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