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