]> jfr.im git - solanum.git/blob - doc/reference.conf
1b1bd1a5f34388c6a386bf46947da9e82f90a82e
[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.la
48 * Channel mode +-O (oper only) -- chm_operonly.la
49 * Channel mode +-S (ssl only) -- chm_sslonly.la
50 * Emulates channel mode +-O (oper only) (+-iI $o) -- chm_operonly_compat.la
51 * Emulates channel mode +-R (quiet unreg) (+-q $~a) -- chm_quietunreg_compat.la
52 * Emulates channel mode +-S (ssl only) (+-b $~z) -- chm_sslonly_compat.la
53 * Restrict channel creation to logged in users -- createauthonly.la
54 * Account bans (+b $a[:mask]) -- extb_account.la
55 * Banned from another channel (+b $j:mask) -- extb_canjoin.la
56 * Other-channel bans (+b $c:mask) -- extb_channel.la
57 * Combination extbans -- extb_combi.la
58 * Extended ban (+b $x:mask) -- extb_extgecos.la
59 * Hostmask bans (for combination extbans) -- extb_hostmask.la
60 * Oper bans (+b $o) -- extb_oper.la
61 * Realname (gecos) bans (+b $r:mask) -- extb_realname.la
62 * Server bans (+b $s:mask) -- extb_server.la
63 * SSL bans (+b $z) -- extb_ssl.la
64 * HURT system -- hurt.la
65 * New host mangling (umode +x) -- ip_cloaking_4.0.la
66 * Old host mangling (umode +h) -- ip_cloaking.la
67 * Find channel forwards -- m_findforwards.la
68 * /identify support -- m_identify.la
69 * Opers cannot be invisible (umode +i) -- no_oper_invis.la
70 * Far connection notices (snomask +F) -- sno_farconnect.la
71 * Remote k/d/x line active notices -- sno_globalkline.la
72 * Remote oper up notices -- sno_globaloper.la
73 * /whois notifications (snomask +W) -- sno_whois.la
74 * Oper-override (modehacking only) -- override.la
75 * Stop services kills -- no_kill_services.la
76 */
77 #loadmodule "extensions/chm_adminonly.la";
78 #loadmodule "extensions/chm_operonly.la";
79 #loadmodule "extensions/chm_sslonly.la";
80 #loadmodule "extensions/chm_operonly_compat.la";
81 #loadmodule "extensions/chm_quietunreg_compat.la";
82 #loadmodule "extensions/chm_sslonly_compat.la";
83 #loadmodule "extensions/createauthonly.la";
84 #loadmodule "extensions/extb_account.la";
85 #loadmodule "extensions/extb_canjoin.la";
86 #loadmodule "extensions/extb_channel.la";
87 #loadmodule "extensions/extb_combi.la";
88 #loadmodule "extensions/extb_extgecos.la";
89 #loadmodule "extensions/extb_hostmask.la";
90 #loadmodule "extensions/extb_oper.la";
91 #loadmodule "extensions/extb_realname.la";
92 #loadmodule "extensions/extb_server.la";
93 #loadmodule "extensions/extb_ssl.la";
94 #loadmodule "extensions/hurt.la";
95 #loadmodule "extensions/ip_cloaking_4.0.la";
96 #loadmodule "extensions/ip_cloaking.la";
97 #loadmodule "extensions/m_findforwards.la";
98 #loadmodule "extensions/m_identify.la";
99 #loadmodule "extensions/no_oper_invis.la";
100 #loadmodule "extensions/sno_farconnect.la";
101 #loadmodule "extensions/sno_globalkline.la";
102 #loadmodule "extensions/sno_globaloper.la";
103 #loadmodule "extensions/sno_whois.la";
104 #loadmodule "extensions/override.la";
105 #loadmodule "extensions/no_kill_services.la";
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 * oper:grant: allows using the GRANT command
435 */
436 privs = oper:local_kill, oper:operwall;
437 };
438
439 privset "server_bot" {
440 /* extends: a privset to inherit in this privset */
441 extends = "local_op";
442 privs = oper:kline, oper:remoteban, snomask:nick_changes;
443 };
444
445 privset "global_op" {
446 extends = "local_op";
447 privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
448 oper:resv, oper:mass_notice, oper:remoteban;
449 };
450
451 privset "admin" {
452 extends = "global_op";
453 privs = oper:admin, oper:die, oper:rehash, oper:spy, oper:grant;
454 };
455
456 /* operator {}: defines ircd operators. (OLD O:) */
457 operator "god" {
458 /* name: the name of the oper must go above */
459
460 /* user: the user@host required for this operator. CIDR *is*
461 * supported now. auth{} spoofs work here, other spoofs do not.
462 * multiple user="" lines are supported.
463 */
464 user = "*god@*";
465 user = "*@127.0.0.1";
466
467 /* password: the password required to oper. Unless ~encrypted is
468 * contained in flags = ...; this will need to be encrypted using
469 * mkpasswd, MD5 is supported
470 */
471 password = "etcnjl8juSU1E";
472
473 /* rsa key: the public key for this oper when using Challenge.
474 * A password should not be defined when this is used, see
475 * doc/challenge.txt for more information.
476 */
477 #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
478
479 /* fingerprint: if specified, the oper's client certificate
480 * fingerprint will be checked against the specified fingerprint
481 * below.
482 */
483 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
484
485 /* umodes: the specific umodes this oper gets when they oper.
486 * If this is specified an oper will not be given oper_umodes
487 * These are described above oper_only_umodes in general {};
488 */
489 #umodes = locops, servnotice, operwall, wallop;
490
491 /* snomask: specific server notice mask on oper up.
492 * If this is specified an oper will not be given oper_snomask.
493 */
494 snomask = "+Zbfkrsuy";
495
496 /* flags: misc options for the operator. You may prefix an option
497 * with ~ to disable it, e.g. ~encrypted.
498 *
499 * Default flags are encrypted.
500 *
501 * Available options:
502 *
503 * encrypted: the password above is encrypted [DEFAULT]
504 * need_ssl: must be using SSL/TLS to oper up
505 */
506 flags = encrypted;
507
508 /* privset: privileges set to grant */
509 privset = "admin";
510 };
511
512 /* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */
513 connect "irc.uplink.com" {
514 /* the name must go above */
515
516 /* host: the host or IP to connect to. If a hostname is used it
517 * must match the reverse dns of the server.
518 */
519 host = "203.0.113.3";
520
521 /* vhost: the host or IP to bind to for this connection. If this
522 * is not specified, the default vhost (in serverinfo {}) is used.
523 */
524 #vhost = "192.0.2.131";
525
526 /* passwords: the passwords we send (OLD C:) and accept (OLD N:).
527 * The remote server will have these passwords reversed.
528 */
529 send_password = "password";
530 accept_password = "anotherpassword";
531
532 /* fingerprint: if specified, the server's client certificate
533 * fingerprint will be checked against the specified fingerprint
534 * below.
535 */
536 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
537
538 /* port: the port to connect to this server on */
539 port = 6666;
540
541 /* hub mask: the mask of servers that this server may hub. Multiple
542 * entries are permitted
543 */
544 hub_mask = "*";
545
546 /* leaf mask: the mask of servers this server may not hub. Multiple
547 * entries are permitted. Useful for forbidding EU -> US -> EU routes.
548 */
549 #leaf_mask = "*.uk";
550
551 /* class: the class this server is in */
552 class = "server";
553
554 /* flags: controls special options for this server
555 * encrypted - marks the accept_password as being crypt()'d
556 * autoconn - automatically connect to this server
557 * compressed - compress traffic via ziplinks
558 * topicburst - burst topics between servers
559 * ssl - ssl/tls encrypted server connections
560 */
561 flags = compressed, topicburst;
562 };
563
564 connect "ipv6.lame.server" {
565 /* Hosts that are IPv6 addresses must be in :: shortened form
566 * if applicable. Addresses starting with a colon get an extra
567 * zero prepended, for example: 0::1
568 */
569 host = "2001:db8:3::8";
570 send_password = "password";
571 accept_password = "password";
572 port = 6666;
573
574 /* aftype: controls whether the connection uses "ipv4" or "ipv6".
575 * Default is ipv4.
576 */
577 aftype = ipv6;
578 class = "server";
579 };
580
581 connect "ssl.uplink.com" {
582 /* Example of ssl server-to-server connection, ssl flag doesn't need
583 * compressed flag, 'cause it uses own compression
584 */
585 host = "203.0.113.129";
586 send_password = "password";
587 accept_password = "anotherpassword";
588 port = 9999;
589 hub_mask = "*";
590 class = "server";
591 flags = ssl, topicburst;
592 };
593
594 /* cluster {}; servers that we propagate things to automatically.
595 * NOTE: This does NOT grant them privileges to apply anything locally,
596 * you must add a seperate shared block for that. Clustering will
597 * only be done for actions by LOCAL opers, that arent directed
598 * remotely.
599 */
600 cluster {
601 /* name: the server to share with, this can be a wildcard and may be
602 * stacked.
603 */
604 /* flags: list of what to share, all the name lines above this (up
605 * until another flags entry) will receive these flags.
606 *
607 * kline - share perm klines
608 * tkline - share temp klines
609 * unkline - share unklines
610 * locops - share locops
611 * xline - share perm xlines
612 * txline - share temp xlines
613 * unxline - share unxlines
614 * resv - share perm resvs
615 * tresv - share temp resvs
616 * unresv - share unresvs
617 * all - share all of the above
618 */
619
620 /* share klines/unklines/xlines with *.lan */
621 name = "*.lan";
622 flags = kline, unkline, xline;
623
624 /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */
625 name = "irc.ircd-ratbox.org";
626 name = "ircd.ircd-ratbox.org";
627 flags = locops;
628 };
629
630 /* service{}: privileged servers (services). These servers have extra
631 * privileges such as setting login names on users and introducing clients
632 * with umode +S (unkickable, hide channels, etc). This does not allow them
633 * to set bans, you need a separate shared{} for that.
634 * Do not place normal servers here.
635 * There may be only one service{} block.
636 */
637 service {
638 /* name: the server name. These may be stacked. */
639 name = "services.int";
640 };
641
642 /* shared {}: users that are allowed to place remote bans on our server.
643 * NOTE: These are ordered top down. The first one the user@host and server
644 * matches will be used. Their access will then be decided on that
645 * block and will not fall back to another block that matches.
646 */
647 shared {
648 /* oper: the user@host and server the user must be on to set klines.
649 * The first field must be a user@host, the second field is an
650 * optional server. These may be stacked.
651 */
652 /* flags: list of what to allow them to place, all the oper lines
653 * above this (up until another flags entry) will receive these
654 * flags. This *must* be present.
655 *
656 * kline - allow setting perm/temp klines
657 * tkline - allow setting temp klines
658 * unkline - allow removing klines
659 * xline - allow setting perm/temp xlines
660 * txline - allow setting temp xlines
661 * unxline - allow removing xlines
662 * resv - allow setting perm/temp resvs
663 * tresv - allow setting temp resvs
664 * unresv - allow removing xlines
665 * all - allow oper/server to do all of above.
666 * locops - allow locops - only used for servers who cluster
667 * rehash - allow rehashing
668 * dline - allow setting perm/temp dlines
669 * tdline - allow setting temp dlines
670 * undline - allow removing dlines
671 * grant - allow granting operator status
672 * none - disallow everything
673 */
674
675 /* allow flame@*.leeh.co.uk on server irc.ircd-ratbox.org and
676 * allow leeh@*.leeh.co.uk on server ircd.ircd-ratbox.org to kline
677 */
678 oper = "flame@*.leeh.co.uk", "irc.ircd-ratbox.org";
679 oper = "leeh@*.leeh.co.uk", "ircd.ircd-ratbox.org";
680 flags = kline;
681
682 /* you may forbid certain opers/servers from doing anything */
683 oper = "irc@vanity.oper", "*";
684 oper = "*@*", "irc.vanity.server";
685 oper = "irc@another.vanity.oper", "bigger.vanity.server";
686 flags = none;
687
688 /* or allow everyone to place temp klines */
689 oper = "*@*";
690 flags = tkline;
691 };
692
693 /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
694 exempt {
695 ip = "192.0.2.0/24";
696
697 /* these may be stacked */
698 ip = "127.0.0.1";
699 };
700
701 /* The channel block contains options pertaining to channels */
702 channel {
703 /* invex: Enable/disable channel mode +I, a n!u@h list of masks
704 * that can join a +i channel without an invite.
705 */
706 use_invex = yes;
707
708 /* except: Enable/disable channel mode +e, a n!u@h list of masks
709 * that can join a channel through a ban (+b).
710 */
711 use_except = yes;
712
713 /* forward: Enable/disable channel mode +f, a channel to forward
714 * users to if they can't join because of +i etc. Also enables ban
715 * forwarding, <mask>$<channel>.
716 */
717 use_forward = yes;
718
719 /* knock: Allows users to request an invite to a channel that
720 * is locked somehow (+ikl). If the channel is +p or you are banned
721 * the knock will not be sent.
722 */
723 use_knock = yes;
724
725 /* knock delay: The amount of time a user must wait between issuing
726 * the knock command.
727 */
728 knock_delay = 5 minutes;
729
730 /* knock channel delay: How often a knock to any specific channel
731 * is permitted, regardless of the user sending the knock.
732 */
733 knock_delay_channel = 1 minute;
734
735 /* max chans: The maximum number of channels a user can join/be on. */
736 max_chans_per_user = 15;
737
738 /* max bans: maximum number of +b/e/I/q modes in a channel */
739 max_bans = 100;
740
741 /* max bans: maximum number of +b/e/I/q modes in a +L channel */
742 max_bans_large = 500;
743
744 /* splitcode: split users, split servers and either no join on split
745 * or no create on split must be enabled for split checking.
746 * splitmode will be entered on either split users or split servers
747 * dropping below the limit.
748 *
749 * you may force splitmode to be permanent by /quote set splitmode on
750 */
751
752 /* split users: when the usercount is lower than this level, consider
753 * ourselves split. this must be set for automatic splitmode
754 */
755 default_split_user_count = 0;
756
757 /* split servers: when the amount of servers that have acknowledged
758 * theyve finished bursting is lower than this, consider ourselves
759 * split. this must be set for automatic splitmode
760 */
761 default_split_server_count = 0;
762
763 /* split: no create: disallow users creating channels on split */
764 no_create_on_split = no;
765
766 /* split: no join: disallow users joining channels at all on a split */
767 no_join_on_split = no;
768
769 /* burst topicwho: when bursting topics, also burst the topic setter */
770 burst_topicwho = yes;
771
772 /* kick on split riding: kick users riding splits to join +i or +k
773 * channels. more precisely, if a bursting server sends an SJOIN
774 * for a channel with a lower TS with either a +i mode or a +k
775 * mode with a different key, kick all local users.
776 *
777 * note: this does not take +r, +b, +e and +I into account.
778 */
779 kick_on_split_riding = no;
780
781 /* only ascii channels: disable local users joining channels
782 * containing characters outside the range 33-126 (non-printable
783 * or non-ASCII).
784 */
785 only_ascii_channels = no;
786
787 /* resv_forcepart: force any local users to part a channel
788 * when a RESV is issued.
789 */
790 resv_forcepart = yes;
791
792 /* channel target change: restrict how many channels users can
793 * message per unit of time. IRC operators, channel operators and
794 * voiced users are exempt.
795 */
796 channel_target_change = yes;
797
798 /* disable local channels: if yes, then local channels will not be
799 * supported.
800 */
801 disable_local_channels = no;
802
803 /* autochanmodes: the channel modes that should be automatically set
804 * when a channel is created.
805 */
806 autochanmodes = "+nt";
807
808 /* displayed_usercount: the minimum amount of users on a channel before it
809 * is displayed in LIST. this parameter can be overridden using ELIST parameters,
810 * such as LIST >0.
811 */
812 displayed_usercount = 3;
813 };
814
815
816 /* The serverhide block contains the options regarding serverhiding */
817 serverhide {
818 /* flatten links: this option will hide various routing information
819 * and make all servers in /links appear that they are linked to
820 * this server.
821 */
822 flatten_links = no;
823
824 /* links delay: how long to wait before showing splits or new
825 * servers in a flattened /links output.
826 */
827 links_delay = 5 minutes;
828
829 /* hidden: hide this server from a /links output on servers with
830 * flatten_links enabled. this allows hub servers to be hidden etc.
831 */
832 hidden = no;
833
834 /* disable hidden: prevent servers hiding themselves from a
835 * /links ouput.
836 */
837 disable_hidden = no;
838 };
839
840 /* These are the blacklist settings.
841 * You can have multiple combinations of host and rejection reasons.
842 * They are used in pairs of one host/rejection reason.
843 *
844 * These settings should be adequate for most networks, and are (presently)
845 * required for use on StaticBox.
846 *
847 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
848 * connections.
849 *
850 * As of charybdis 2.2, you can do some keyword substitution on the rejection
851 * reason. The available keyword substitutions are:
852 *
853 * ${ip} - the user's IP
854 * ${host} - the user's canonical hostname
855 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
856 * ${nick} - the user's nickname
857 * ${network-name} - the name of the network
858 *
859 * As of charybdis 3.4, a type parameter is supported, which specifies the
860 * address families the blacklist supports. IPv4 and IPv6 are supported.
861 * IPv4 is currently the default as few blacklists support IPv6 operation
862 * as of this writing.
863 *
864 * As of charybdis 3.5, a matches parameter is allowed; if omitted, any result
865 * is considered a match. If included, a comma-separated list of *quoted*
866 * strings is allowed to match queries. They may be of the format "0" to "255"
867 * to match the final octet (e.g. 127.0.0.1) or "127.x.y.z" to explicitly match
868 * an A record. The blacklist is only applied if it matches anything in the
869 * list. You may freely mix full IP's and final octets.
870 *
871 * Consult your blacklist provider for the meaning of these parameters; they
872 * are usually used to denote different ban types.
873 */
874 blacklist {
875 host = "rbl.efnetrbl.org";
876 type = ipv4;
877 reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}";
878
879 /* Example of a blacklist that supports both IPv4 and IPv6 and using matches */
880 # host = "foobl.blacklist.invalid";
881 # matches = "4", "6", "127.0.0.10";
882 # type = ipv4, ipv6;
883 # 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";
884 };
885
886 /*
887 * Alias blocks allow you to define custom commands. (Old m_sshortcut.c)
888 * They send PRIVMSG to the given target. A real command takes
889 * precedence above an alias.
890 */
891 alias "NickServ" {
892 /* the name must go above */
893
894 /* target: the target nick (must be a network service) or
895 * user@server (cannot be this server, only opers can use
896 * user starting with "opers" reliably, interpreted on the target
897 * server only so you may need to use nick@server instead)
898 */
899 target = "NickServ";
900 };
901
902 alias "ChanServ" {
903 target = "ChanServ";
904 };
905
906 alias "OperServ" {
907 target = "OperServ";
908 };
909
910 alias "MemoServ" {
911 target = "MemoServ";
912 };
913
914 alias "NS" {
915 target = "NickServ";
916 };
917
918 alias "CS" {
919 target = "ChanServ";
920 };
921
922 alias "OS" {
923 target = "OperServ";
924 };
925
926 alias "MS" {
927 target = "MemoServ";
928 };
929
930 /* The general block contains many of the options that were once compiled
931 * in options in config.h. The general block is read at start time.
932 */
933 general {
934 /* hide error messages: defines whether error messages from
935 * servers that are not deemed fully safe are hidden or not.
936 * These can sometimes contain IPs and can have an adverse
937 * effect on server ip hiding. Set to:
938 * yes: hide from opers and admin
939 * opers: hide from opers only
940 * no: do not hide error messages
941 * Admins on other servers count as opers.
942 */
943 hide_error_messages = opers;
944
945 /* hide spoof ips: hide the real ips of auth{} spoofed users
946 * If disabled, local opers can see them.
947 * Dynamic spoofs (e.g. set by services) are unaffected by this;
948 * any oper (local and remote) can see the real ip.
949 */
950 hide_spoof_ips = yes;
951
952 /* default umodes: umodes to set upon connection
953 * If you have enabled the ip_cloaking extension, and you wish for
954 * incoming clients to be set +h or +x upon connection, add +h or +x to the umode
955 * string below.
956 */
957 default_umodes = "+i";
958
959 /* default operstring: defines the default oper response
960 * in /whois queries, eg "is an IRC Operator".
961 * After startup use /quote set operstring to change.
962 */
963 default_operstring = "is an IRC Operator";
964
965 /* default adminstring: defines the default admin response
966 * in /whois queries, eg "is a Server Administrator".
967 * After startup use /quote set adminstring to change.
968 */
969 default_adminstring = "is a Server Administrator";
970
971 /* servicestring: defines the response for opered services (+S)
972 * in /whois queries, eg "is a Network Service".
973 * This is updated on rehash.
974 */
975 servicestring = "is a Network Service";
976
977 /*
978 * Nick of the network's SASL agent. Used to check whether services are here,
979 * SASL credentials are only sent to its server. Needs to be a service.
980 *
981 * Defaults to SaslServ if unspecified.
982 */
983 sasl_service = "SaslServ";
984
985 /* disable fake channels: disable local users joining fake versions
986 * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse,
987 * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively).
988 */
989 disable_fake_channels = no;
990
991 /* tkline_expire_notices: give a notice to opers when a tkline
992 * expires
993 */
994 tkline_expire_notices = no;
995
996 /* floodcount: the default value of floodcount that is configurable
997 * via /quote set floodcount. This is the amount of lines a user
998 * may send to any other user/channel in one second.
999 */
1000 default_floodcount = 10;
1001
1002 /* failed oper notice: send a notice to all opers on the server when
1003 * someone tries to OPER and uses the wrong password, host or ident.
1004 */
1005 failed_oper_notice = yes;
1006
1007 /* dots in ident: the amount of '.' characters permitted in an ident
1008 * reply before the user is rejected.
1009 */
1010 dots_in_ident=2;
1011
1012 /* min nonwildcard: the minimum non wildcard characters in k/d/g lines
1013 * placed via the server. klines hand placed are exempt from limits.
1014 * wildcard chars: '.' '*' '?' '@'
1015 */
1016 min_nonwildcard = 4;
1017
1018 /* min nonwildcard simple: the minimum non wildcard characters in
1019 * xlines/resvs placed via the server.
1020 * wildcard chars: '*' '?'
1021 */
1022 min_nonwildcard_simple = 3;
1023
1024 /* max accept: maximum allowed /accept's for +g usermode */
1025 max_accept = 20;
1026
1027 /* max monitor: the maximum amount of nicknames a client may have in
1028 * their monitor (server-side notify) list.
1029 */
1030 max_monitor = 100;
1031
1032 /* nick flood: enable the nickflood control code */
1033 anti_nick_flood = yes;
1034
1035 /* nick flood: the nick changes allowed in the specified period */
1036 max_nick_time = 20 seconds;
1037 max_nick_changes = 5;
1038
1039 /* anti spam time: the minimum time a user must be connected before
1040 * custom quit messages are allowed.
1041 */
1042 anti_spam_exit_message_time = 5 minutes;
1043
1044 /* ts delta: the time delta allowed between server clocks before
1045 * a warning is given, or before the link is dropped. all servers
1046 * should run ntpdate/rdate to keep clocks in sync
1047 */
1048 ts_warn_delta = 30 seconds;
1049 ts_max_delta = 5 minutes;
1050
1051 /* client exit: prepend a user's quit message with "Quit: " */
1052 client_exit = yes;
1053
1054 /* collision fnc: change user's nick to their UID instead of
1055 * killing them, if possible. This setting only applies to nick
1056 * collisions detected on this server. Only enable this if
1057 * all servers on the network allow remote nicks to start with
1058 * a digit.
1059 */
1060 collision_fnc = yes;
1061
1062 /* resv fnc: change a user's nick to a nick they have recently used
1063 * (or their UID, if no such nick can be found) when a resv matching
1064 * them is set by services. Only enable this if all servers on the
1065 * network allow remote nicks to start with a digit.
1066 */
1067 resv_fnc = yes;
1068
1069 /* global snotices: send out certain snotices (most +b, +f, +y,
1070 * some +s) to other servers via ENCAP SNOTE. Received SNOTEs are
1071 * displayed unconditionally.
1072 */
1073 global_snotices = yes;
1074
1075 /* dline reason: show the user the dline reason when they connect
1076 * and are dlined.
1077 */
1078 dline_with_reason = yes;
1079
1080 /* kline delay: delay the checking of klines until a specified time.
1081 * Useful if large kline lists are applied often to prevent the
1082 * server eating CPU.
1083 */
1084 kline_delay = 0 seconds;
1085
1086 /* kline reason: show the user the reason why they are k/dlined
1087 * on exit. may give away who set k/dline when set via tcm.
1088 */
1089 kline_with_reason = yes;
1090
1091 /* kline reason: make the users quit message on channels this
1092 * reason instead of the oper's reason.
1093 */
1094 kline_reason = "Connection closed";
1095
1096 /* identify to services via server password
1097 * if auth{} block had no password but the user specified a
1098 * server password anyway, send a PRIVMSG to <identify_service>
1099 * with as text <identify_command> <password>.
1100 */
1101 identify_service = "NickServ@services.int";
1102 identify_command = "IDENTIFY";
1103
1104 /* non redundant klines: flag and ignore redundant klines */
1105 non_redundant_klines = yes;
1106
1107 /* warn no nline: warn opers about servers that try to connect but
1108 * we dont have a connect {} block for. Twits with misconfigured
1109 * servers can get really annoying with this enabled.
1110 */
1111 warn_no_nline = yes;
1112
1113 /* use propagated bans: KLINE, XLINE and RESV set fully propagated bans.
1114 * That means the bans are part of the netburst and restarted/split
1115 * servers will get them, but they will not apply to 3.2 and older
1116 * servers at all.
1117 */
1118 use_propagated_bans = yes;
1119
1120 /* stats e disabled: disable stats e. useful if server ips are
1121 * exempted and you dont want them listing on irc.
1122 */
1123 stats_e_disabled = no;
1124
1125 /* stats c oper only: make stats c (connect {}) oper only */
1126 stats_c_oper_only=no;
1127
1128 /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */
1129 stats_h_oper_only=no;
1130
1131 /* stats y oper only: make stats y (class {}) oper only */
1132 stats_y_oper_only=no;
1133
1134 /* stats o oper only: make stats o (opers) oper only */
1135 stats_o_oper_only=yes;
1136
1137 /* stats P oper only: make stats P (ports) oper only
1138 * NOTE: users doing stats P will never be given the ips that the
1139 * server listens on, simply the ports.
1140 */
1141 stats_P_oper_only=no;
1142
1143 /* stats i oper only: make stats i (auth {}) oper only. set to:
1144 * yes: show users no auth blocks, made oper only.
1145 * masked: show users first matching auth block
1146 * no: show users all auth blocks.
1147 */
1148 stats_i_oper_only=masked;
1149
1150 /* stats k/K oper only: make stats k/K (klines) oper only. set to:
1151 * yes: show users no auth blocks, made oper only
1152 * masked: show users first matching auth block
1153 * no: show users all auth blocks.
1154 */
1155 stats_k_oper_only=masked;
1156
1157 /* map oper only: make /map oper only */
1158 map_oper_only = no;
1159
1160 /* operspy admin only: make operspy notices to +Z admin only */
1161 operspy_admin_only = no;
1162
1163 /* operspy dont care user info: treat /who mask as if there was
1164 * an '!' always; do not log or server notice about operspy
1165 * /who mask, /masktrace and /scan. channel information is still
1166 * protected. */
1167 operspy_dont_care_user_info = no;
1168
1169 /* caller id wait: time between notifying a +g user that somebody
1170 * is messaging them.
1171 */
1172 caller_id_wait = 1 minute;
1173
1174 /* pace wait simple: time between use of less intensive commands
1175 * (HELP, remote WHOIS, WHOWAS)
1176 */
1177 pace_wait_simple = 1 second;
1178
1179 /* pace wait: time between more intensive commands
1180 * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION)
1181 */
1182 pace_wait = 10 seconds;
1183
1184 /* short motd: send clients a notice telling them to read the motd
1185 * instead of forcing a motd to clients who may simply ignore it.
1186 */
1187 short_motd = no;
1188
1189 /* ping cookies: require clients to respond exactly to a ping command,
1190 * can help block certain types of drones and FTP PASV mode spoofing.
1191 */
1192 ping_cookie = no;
1193
1194 /* connect timeout: sets how long we should wait for a connection
1195 * request to succeed
1196 */
1197 connect_timeout = 30 seconds;
1198
1199 /* ident timeout: Amount of time (in seconds) that the IRCd will
1200 * wait for a user to respond to an ident request.
1201 */
1202 default_ident_timeout = 5;
1203
1204 /* disable auth: disables identd checking */
1205 disable_auth = no;
1206
1207 /* no oper flood: increase flood limits for opers. */
1208 no_oper_flood = yes;
1209
1210 /* REMOVE ME. The following line checks you've been reading. */
1211 havent_read_conf = yes;
1212
1213 /* max targets: the maximum amount of targets in a single
1214 * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited.
1215 */
1216 max_targets = 4;
1217
1218 /* use_whois_actually: send clients requesting a whois a numeric
1219 * giving the real IP of non-spoofed clients to prevent DNS abuse.
1220 */
1221 use_whois_actually = yes;
1222
1223 /* usermodes configurable: a list of usermodes for the options below
1224 *
1225 * +g - callerid - Server Side Ignore
1226 * +D - deaf - Don't see channel messages
1227 * +i - invisible - Not shown in NAMES or WHO unless you share a
1228 * a channel
1229 * +l - locops - See LOCOPS messages
1230 * +Q - noforward - Unaffected by channel forwarding
1231 * +R - regonlymsg - No messages from unindentified
1232 * +s - servnotice - See server notices
1233 * +w - wallop - See oper and server generated WALLOPS
1234 * +z - operwall - See operwalls
1235 */
1236
1237 /* oper only umodes: usermodes only opers may set */
1238 oper_only_umodes = operwall, locops, servnotice;
1239
1240 /* oper umodes: default usermodes opers get when they /oper */
1241 oper_umodes = locops, servnotice, operwall, wallop;
1242
1243 /* oper snomask: default snomask opers get when they /oper,
1244 * provided they have umode +s set */
1245 oper_snomask = "+s";
1246
1247 /* compression level: level of compression for compressed links between
1248 * servers.
1249 *
1250 * values are between: 1 (least compression, fastest)
1251 * and: 9 (most compression, slowest).
1252 */
1253 #compression_level = 6;
1254
1255 /* burst_away: This enables bursting away messages to servers.
1256 * With this disabled, we will only propogate AWAY messages
1257 * as users send them, but never burst them. Be warned though
1258 * enabling this could increase the size of a burst significantly
1259 * for a large network, like EFnet.
1260 */
1261 burst_away = yes;
1262
1263 /* nick delay: This locks nicks of split clients for the given time
1264 * or until a remote client uses the nick. This significantly
1265 * reduces nick collisions on short splits but it can be annoying.
1266 * To make things as fair as possible, this should be the same on
1267 * all servers. If you enable this, the suggested value is 15 minutes.
1268 */
1269 nick_delay = 0 seconds;
1270
1271 /* reject time: the amount of rejections through klines/dlines etc
1272 * allowed in the given time before the rejection is cached and
1273 * a pseudo temp dline is placed
1274 */
1275 reject_ban_time = 1 minute;
1276 reject_after_count = 3;
1277
1278 /* reject duration: the amount of time to cache the rejection */
1279 reject_duration = 5 minutes;
1280
1281 /* throttle_duration: Amount of time that throttling will be applied to an IP
1282 * address.
1283 */
1284 throttle_duration = 60;
1285
1286 /* throttle_count: Number of connections within throttle_duration that it takes
1287 * for throttling to take effect */
1288 throttle_count = 4;
1289
1290 /* client flood_max_lines: maximum number of lines in a clients queue before
1291 * they are dropped for flooding.
1292 */
1293 client_flood_max_lines = 20;
1294
1295 /* Flood control settings. DO NOT CHANGE THESE without extensive discussion
1296 * and testing by someone who knows exactly what they do.
1297 *
1298 * These settings replicate charybdis-3.3 behaviour.
1299 */
1300 client_flood_burst_rate = 40;
1301 client_flood_burst_max = 5;
1302 client_flood_message_time = 1;
1303 client_flood_message_num = 2;
1304
1305 /* max_ratelimit_tokens: the maximum number of ratelimit tokens that one
1306 * user can accumulate. This attempts to limit the amount of outbound
1307 * bandwidth one user can consume. Do not change unless you know what
1308 * you're doing.
1309 */
1310 max_ratelimit_tokens = 30;
1311
1312 /* away_interval: the minimum interval between AWAY commands. One
1313 * additional AWAY command is allowed, and only marking as away
1314 * counts.
1315 */
1316 away_interval = 30;
1317
1318 /* certfp_method: the method that should be used for computing certificate fingerprints.
1319 * Acceptable options are sha1, sha256 and sha512. Networks running versions of charybdis
1320 * prior to charybdis 3.5 MUST use sha1 for certfp_method.
1321 */
1322 certfp_method = sha1;
1323 };
1324
1325 modules {
1326 /* module path: paths to search for modules specified below and
1327 * in /modload.
1328 */
1329 path = "/usr/local/ircd/modules";
1330 path = "/usr/local/ircd/modules/autoload";
1331
1332 /* module: the name of a module to load on startup/rehash */
1333 #module = "some_module.la";
1334 };