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