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