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