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