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