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