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