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