]> jfr.im git - irc/rqf/shadowircd.git/blob - doc/reference.conf
Document special characters in stats i/testmask in sgml.
[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 * resv: allows /quote resv/unresv and cmode +LP [DEFAULT]
396 * operwall: allows the oper to send/receive operwalls [DEFAULT]
397 * oper_spy: allows 'operspy' features to see through +s
398 * channels etc. see /quote help operspy
399 * hidden_oper: hides the oper from /stats p (OLD UMODE +p)
400 * remoteban: allows remote kline etc [DEFAULT]
401 * mass_notice: allows sending wallops and mass notices [DEFAULT]
402 */
403 flags = global_kill, remote, kline, unkline, gline,
404 die, rehash, admin, xline, operwall;
405 };
406
407 /* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */
408 connect "irc.uplink.com" {
409 /* the name must go above */
410
411 /* host: the host or IP to connect to. If a hostname is used it
412 * must match the reverse dns of the server.
413 */
414 host = "192.168.0.1";
415
416 /* vhost: the host or IP to bind to for this connection. If this
417 * is not specified, the default vhost (in serverinfo {}) is used.
418 */
419 #vhost = "192.168.0.50";
420
421 /* passwords: the passwords we send (OLD C:) and accept (OLD N:).
422 * The remote server will have these passwords reversed.
423 */
424 send_password = "password";
425 accept_password = "anotherpassword";
426
427 /* port: the port to connect to this server on */
428 port = 6666;
429
430 /* hub mask: the mask of servers that this server may hub. Multiple
431 * entries are permitted
432 */
433 hub_mask = "*";
434
435 /* leaf mask: the mask of servers this server may not hub. Multiple
436 * entries are permitted. Useful for forbidding EU -> US -> EU routes.
437 */
438 #leaf_mask = "*.uk";
439
440 /* class: the class this server is in */
441 class = "server";
442
443 /* flags: controls special options for this server
444 * encrypted - marks the accept_password as being crypt()'d
445 * autoconn - automatically connect to this server
446 * compressed - compress traffic via ziplinks
447 * topicburst - burst topics between servers
448 */
449 flags = compressed, topicburst;
450 };
451
452 connect "ipv6.some.server" {
453 /* Hosts that are IPv6 addresses must be in :: shortened form
454 * if applicable. Addresses starting with a colon get an extra
455 * zero prepended, for example: 0::1
456 */
457 host = "3ffd:dead:beef::1";
458 send_password = "password";
459 accept_password = "password";
460 port = 6666;
461
462 /* aftype: controls whether the connection uses "ipv4" or "ipv6".
463 * Default is ipv4.
464 */
465 aftype = ipv6;
466 class = "server";
467 };
468
469 /* cluster {}; servers that we propagate things to automatically.
470 * NOTE: This does NOT grant them privileges to apply anything locally,
471 * you must add a seperate shared block for that. Clustering will
472 * only be done for actions by LOCAL opers, that arent directed
473 * remotely.
474 */
475 cluster {
476 /* name: the server to share with, this can be a wildcard and may be
477 * stacked.
478 */
479 /* flags: list of what to share, all the name lines above this (up
480 * until another flags entry) will receive these flags.
481 *
482 * kline - share perm klines
483 * tkline - share temp klines
484 * unkline - share unklines
485 * locops - share locops
486 * xline - share perm xlines
487 * txline - share temp xlines
488 * unxline - share unxlines
489 * resv - share perm resvs
490 * tresv - share temp resvs
491 * unresv - share unresvs
492 * all - share all of the above
493 */
494
495 /* share klines/unklines/xlines with *.lan */
496 name = "*.lan";
497 flags = kline, unkline, xline;
498
499 /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */
500 name = "irc.ircd-ratbox.org";
501 name = "ircd.ircd-ratbox.org";
502 flags = locops;
503 };
504
505 /* service{}: privileged servers (services). These servers have extra
506 * privileges such as setting login names on users and introducing clients
507 * with umode +S (unkickable, hide channels, etc). This does not allow them
508 * to set bans, you need a separate shared{} for that.
509 * Do not place normal servers here.
510 * There may be only one service{} block.
511 */
512 service {
513 /* name: the server name. These may be stacked. */
514 name = "services.int";
515 };
516
517 /* shared {}: users that are allowed to place remote bans on our server.
518 * NOTE: These are ordered top down. The first one the user@host and server
519 * matches will be used. Their access will then be decided on that
520 * block and will not fall back to another block that matches.
521 */
522 shared {
523 /* oper: the user@host and server the user must be on to set klines.
524 * The first field must be a user@host, the second field is an
525 * optional server. These may be stacked.
526 */
527 /* flags: list of what to allow them to place, all the oper lines
528 * above this (up until another flags entry) will receive these
529 * flags. This *must* be present.
530 *
531 * kline - allow setting perm/temp klines
532 * tkline - allow setting temp klines
533 * unkline - allow removing klines
534 * xline - allow setting perm/temp xlines
535 * txline - allow setting temp xlines
536 * unxline - allow removing xlines
537 * resv - allow setting perm/temp resvs
538 * tresv - allow setting temp resvs
539 * unresv - allow removing xlines
540 * all - allow oper/server to do all of above.
541 * locops - allow locops - only used for servers who cluster
542 * rehash - allow rehashing
543 * none - disallow everything
544 */
545
546 /* allow flame@*.leeh.co.uk on server irc.ircd-ratbox.org and
547 * allow leeh@*.leeh.co.uk on server ircd.ircd-ratbox.org to kline
548 */
549 oper = "flame@*.leeh.co.uk", "irc.ircd-ratbox.org";
550 oper = "leeh@*.leeh.co.uk", "ircd.ircd-ratbox.org";
551 flags = kline;
552
553 /* you may forbid certain opers/servers from doing anything */
554 oper = "irc@vanity.oper", "*";
555 oper = "*@*", "irc.vanity.server";
556 oper = "irc@another.vanity.oper", "bigger.vanity.server";
557 flags = none;
558
559 /* or allow everyone to place temp klines */
560 oper = "*@*";
561 flags = tkline;
562 };
563
564 /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
565 exempt {
566 ip = "192.168.0.0/16";
567
568 /* these may be stacked */
569 ip = "127.0.0.1";
570 ip = "10.0.0.0/8";
571 };
572
573 /* The channel block contains options pertaining to channels */
574 channel {
575 /* invex: Enable/disable channel mode +I, a n!u@h list of masks
576 * that can join a +i channel without an invite.
577 */
578 use_invex = yes;
579
580 /* except: Enable/disable channel mode +e, a n!u@h list of masks
581 * that can join a channel through a ban (+b).
582 */
583 use_except = yes;
584
585 /* forward: Enable/disable channel mode +f, a channel to forward
586 * users to if they can't join because of +i etc.
587 */
588 use_forward = yes;
589
590 /* knock: Allows users to request an invite to a channel that
591 * is locked somehow (+ikl). If the channel is +p or you are banned
592 * the knock will not be sent.
593 */
594 use_knock = yes;
595
596 /* knock delay: The amount of time a user must wait between issuing
597 * the knock command.
598 */
599 knock_delay = 5 minutes;
600
601 /* knock channel delay: How often a knock to any specific channel
602 * is permitted, regardless of the user sending the knock.
603 */
604 knock_delay_channel = 1 minute;
605
606 /* max chans: The maximum number of channels a user can join/be on. */
607 max_chans_per_user = 15;
608
609 /* max bans: maximum number of +b/e/I/q modes in a channel */
610 max_bans = 25;
611
612 /* max bans: maximum number of +b/e/I/q modes in a +L channel */
613 max_bans_large = 500;
614
615 /* splitcode: split users, split servers and either no join on split
616 * or no create on split must be enabled for split checking.
617 * splitmode will be entered on either split users or split servers
618 * dropping below the limit.
619 *
620 * you may force splitmode to be permanent by /quote set splitmode on
621 */
622
623 /* split users: when the usercount is lower than this level, consider
624 * ourselves split. this must be set for automatic splitmode
625 */
626 default_split_user_count = 0;
627
628 /* split servers: when the amount of servers that have acknowledged
629 * theyve finished bursting is lower than this, consider ourselves
630 * split. this must be set for automatic splitmode
631 */
632 default_split_server_count = 0;
633
634 /* split: no create: disallow users creating channels on split */
635 no_create_on_split = no;
636
637 /* split: no join: disallow users joining channels at all on a split */
638 no_join_on_split = no;
639
640 /* burst topicwho: when bursting topics, also burst the topic setter */
641 burst_topicwho = yes;
642
643 /* kick on split riding: kick users riding splits to join +i or +k
644 * channels. more precisely, if a bursting server sends an SJOIN
645 * for a channel with a lower TS with either a +i mode or a +k
646 * mode with a different key, kick all local users.
647 *
648 * note: this does not take +r, +b, +e and +I into account.
649 *
650 * warning: if there are any TS5 servers on the network, this
651 * will cause ban desyncs if they send such an SJOIN and the
652 * splitriders added any bans (our side will lose them, the TS5
653 * side will accept them). we will send a notice to the channel
654 * if this happens. most services do not send such SJOINs but
655 * ratbox-services does.
656 */
657 kick_on_split_riding = no;
658 };
659
660
661 /* The serverhide block contains the options regarding serverhiding */
662 serverhide {
663 /* flatten links: this option will hide various routing information
664 * and make all servers in /links appear that they are linked to
665 * this server.
666 */
667 flatten_links = no;
668
669 /* links delay: how long to wait before showing splits or new
670 * servers in a flattened /links output.
671 */
672 links_delay = 5 minutes;
673
674 /* hidden: hide this server from a /links output on servers with
675 * flatten_links enabled. this allows hub servers to be hidden etc.
676 */
677 hidden = no;
678
679 /* disable hidden: prevent servers hiding themselves from a
680 * /links ouput.
681 */
682 disable_hidden = no;
683 };
684
685 /* These are the blacklist settings.
686 * You can have multiple combinations of host and rejection reasons.
687 * They are used in pairs of one host/rejection reason, or multiple hosts/rejection reason.
688 *
689 * These settings should be adequate for most networks, and are (presently)
690 * required for use on AthemeNet.
691 *
692 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
693 * connections.
694 *
695 * As of charybdis 2.2, you can do some keyword substitution on the rejection
696 * reason. The available keyword substitutions are:
697 *
698 * ${ip} - the user's IP
699 * ${host} - the user's canonical hostname
700 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
701 * ${nick} - the user's nickname
702 * ${network-name} - the name of the network
703 *
704 * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be
705 * contacted, via email, at admins@2mbit.com before using these BLs.
706 * See <http://www.ahbl.org/services.php> for more information.
707 */
708 blacklist {
709 host = "dnsbl.dronebl.org";
710 reject_reason = "${nick}, your IP (${ip}) is listed in DroneBL. For assistance, see http://dronebl.org/lookup_branded.do?ip=${ip}&network=${network-name}";
711
712 # host = "ircbl.ahbl.org";
713 # 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.";
714 #
715 # host = "tor.ahbl.org";
716 # 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.";
717 };
718
719 /*
720 * Alias blocks allow you to define custom commands. (Old m_sshortcut.c)
721 * They send PRIVMSG to the given target. A real command takes
722 * precedence above an alias.
723 */
724 alias "NickServ" {
725 /* the name must go above */
726
727 /* target: the target nick (must be a network service) or
728 * user@server (cannot be this server, only opers can use
729 * user starting with "opers" reliably, interpreted on the target
730 * server only so you may need to use nick@server instead)
731 */
732 target = "NickServ";
733 };
734
735 alias "ChanServ" {
736 target = "ChanServ";
737 };
738
739 alias "OperServ" {
740 target = "OperServ";
741 };
742
743 alias "MemoServ" {
744 target = "MemoServ";
745 };
746
747 alias "NS" {
748 target = "NickServ";
749 };
750
751 alias "CS" {
752 target = "ChanServ";
753 };
754
755 alias "OS" {
756 target = "OperServ";
757 };
758
759 alias "MS" {
760 target = "MemoServ";
761 };
762
763 /* The general block contains many of the options that were once compiled
764 * in options in config.h. The general block is read at start time.
765 */
766 general {
767 /* hide error messages: defines whether error messages from
768 * servers that are not deemed fully safe are hidden or not.
769 * These can sometimes contain IPs and can have an adverse
770 * effect on server ip hiding. Set to:
771 * yes: hide from opers and admin
772 * opers: hide from opers only
773 * no: do not hide error messages
774 * Admins on other servers count as opers.
775 */
776 hide_error_messages = opers;
777
778 /* hide spoof ips: hide the real ips of auth{} spoofed users
779 * If disabled, local opers can see them.
780 * Dynamic spoofs (e.g. set by services) are unaffected by this;
781 * any oper (local and remote) can see the real ip.
782 * Warning: for whowas, this is checked when the client exits,
783 * not when the IP is shown.
784 */
785 hide_spoof_ips = yes;
786
787 /* default umodes: umodes to set upon connection
788 * If you have enabled the ip_cloaking extension, and you wish for
789 * incoming clients to be set +h upon connection, add +h to the umode
790 * string below.
791 */
792 default_umodes = "+i";
793
794 /* default operstring: defines the default oper response
795 * in /whois queries, eg "is an IRC Operator".
796 * After startup use /quote set operstring to change.
797 */
798 default_operstring = "is an IRC Operator";
799
800 /* default adminstring: defines the default admin response
801 * in /whois queries, eg "is a Server Administrator".
802 * After startup use /quote set adminstring to change.
803 */
804 default_adminstring = "is a Server Administrator";
805
806 /* servicestring: defines the response for opered services (+S)
807 * in /whois queries, eg "is a Network Service".
808 * This is updated on rehash.
809 */
810 servicestring = "is a Network Service";
811
812 /* disable fake channels: disable local users joining fake versions
813 * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse,
814 * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively).
815 */
816 disable_fake_channels = no;
817
818 /* tkline_expire_notices: give a notice to opers when a tkline
819 * expires
820 */
821 tkline_expire_notices = no;
822
823 /* floodcount: the default value of floodcount that is configurable
824 * via /quote set floodcount. This is the amount of lines a user
825 * may send to any other user/channel in one second.
826 */
827 default_floodcount = 10;
828
829 /* failed oper notice: send a notice to all opers on the server when
830 * someone tries to OPER and uses the wrong password, host or ident.
831 */
832 failed_oper_notice = yes;
833
834 /* dots in ident: the amount of '.' characters permitted in an ident
835 * reply before the user is rejected.
836 */
837 dots_in_ident=2;
838
839 /* min nonwildcard: the minimum non wildcard characters in k/d/g lines
840 * placed via the server. klines hand placed are exempt from limits.
841 * wildcard chars: '.' '*' '?' '@'
842 */
843 min_nonwildcard = 4;
844
845 /* min nonwildcard simple: the minimum non wildcard characters in
846 * xlines/resvs placed via the server.
847 * wildcard chars: '*' '?'
848 */
849 min_nonwildcard_simple = 3;
850
851 /* max accept: maximum allowed /accept's for +g usermode */
852 max_accept = 20;
853
854 /* max monitor: the maximum amount of nicknames a client may have in
855 * their monitor (server-side notify) list.
856 */
857 max_monitor = 100;
858
859 /* nick flood: enable the nickflood control code */
860 anti_nick_flood = yes;
861
862 /* nick flood: the nick changes allowed in the specified period */
863 max_nick_time = 20 seconds;
864 max_nick_changes = 5;
865
866 /* anti spam time: the minimum time a user must be connected before
867 * custom quit messages are allowed.
868 */
869 anti_spam_exit_message_time = 5 minutes;
870
871 /* ts delta: the time delta allowed between server clocks before
872 * a warning is given, or before the link is dropped. all servers
873 * should run ntpdate/rdate to keep clocks in sync
874 */
875 ts_warn_delta = 30 seconds;
876 ts_max_delta = 5 minutes;
877
878 /* client exit: prepend a users quit message with "Client exit: " */
879 client_exit = yes;
880
881 /* collision fnc: change user's nick to their UID instead of
882 * killing them, if possible. This setting only applies to nick
883 * collisions detected on this server. Only enable this if
884 * all servers on the network allow remote nicks to start with
885 * a digit.
886 */
887 collision_fnc = yes;
888
889 /* global snotices: send out certain snotices (most +b, +f, +y,
890 * some +s) to other servers via ENCAP SNOTE. Received SNOTEs are
891 * displayed unconditionally.
892 */
893 global_snotices = yes;
894
895 /* dline reason: show the user the dline reason when they connect
896 * and are dlined.
897 */
898 dline_with_reason = yes;
899
900 /* kline delay: delay the checking of klines until a specified time.
901 * Useful if large kline lists are applied often to prevent the
902 * server eating CPU.
903 */
904 kline_delay = 0 seconds;
905
906 /* kline reason: show the user the reason why they are k/d/glined
907 * on exit. may give away who set k/dline when set via tcm.
908 */
909 kline_with_reason = yes;
910
911 /* kline reason: make the users quit message on channels this
912 * reason instead of the oper's reason.
913 */
914 kline_reason = "Connection closed";
915
916 /* identify to services via server password
917 * if auth{} block had no password but the user specified a
918 * server password anyway, send a PRIVMSG to <identify_service>
919 * with as text <identify_command> <password>.
920 */
921 identify_service = "NickServ@services.int";
922 identify_command = "IDENTIFY";
923
924 /* non redundant klines: flag and ignore redundant klines */
925 non_redundant_klines = yes;
926
927 /* warn no nline: warn opers about servers that try to connect but
928 * we dont have a connect {} block for. Twits with misconfigured
929 * servers can get really annoying with this enabled.
930 */
931 warn_no_nline = yes;
932
933 /* stats e disabled: disable stats e. useful if server ips are
934 * exempted and you dont want them listing on irc.
935 */
936 stats_e_disabled = no;
937
938 /* stats c oper only: make stats c (connect {}) oper only */
939 stats_c_oper_only=no;
940
941 /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */
942 stats_h_oper_only=no;
943
944 /* stats y oper only: make stats y (class {}) oper only */
945 stats_y_oper_only=no;
946
947 /* stats o oper only: make stats o (opers) oper only */
948 stats_o_oper_only=yes;
949
950 /* stats P oper only: make stats P (ports) oper only
951 * NOTE: users doing stats P will never be given the ips that the
952 * server listens on, simply the ports.
953 */
954 stats_P_oper_only=no;
955
956 /* stats i oper only: make stats i (auth {}) oper only. set to:
957 * yes: show users no auth blocks, made oper only.
958 * masked: show users first matching auth block
959 * no: show users all auth blocks.
960 */
961 stats_i_oper_only=masked;
962
963 /* stats k/K oper only: make stats k/K (klines) oper only. set to:
964 * yes: show users no auth blocks, made oper only
965 * masked: show users first matching auth block
966 * no: show users all auth blocks.
967 */
968 stats_k_oper_only=masked;
969
970 /* map oper only: make /map oper only */
971 map_oper_only = no;
972
973 /* operspy admin only: make operspy notices to +Z admin only */
974 operspy_admin_only = no;
975
976 /* operspy dont care user info: treat /who mask as if there was
977 * an '!' always; do not log or server notice about operspy
978 * /who mask, /masktrace and /scan. channel information is still
979 * protected. */
980 operspy_dont_care_user_info = no;
981
982 /* caller id wait: time between notifying a +g user that somebody
983 * is messaging them.
984 */
985 caller_id_wait = 1 minute;
986
987 /* pace wait simple: time between use of less intensive commands
988 * (HELP, remote WHOIS, WHOWAS)
989 */
990 pace_wait_simple = 1 second;
991
992 /* pace wait: time between more intensive commands
993 * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION)
994 */
995 pace_wait = 10 seconds;
996
997 /* short motd: send clients a notice telling them to read the motd
998 * instead of forcing a motd to clients who may simply ignore it.
999 */
1000 short_motd = no;
1001
1002 /* ping cookies: require clients to respond exactly to a ping command,
1003 * can help block certain types of drones and FTP PASV mode spoofing.
1004 */
1005 ping_cookie = no;
1006
1007 /* connect timeout: sets how long we should wait for a connection
1008 * request to succeed
1009 */
1010 connect_timeout = 30 seconds;
1011
1012 /* disable auth: disables identd checking */
1013 disable_auth = no;
1014
1015 /* no oper flood: increase flood limits for opers. */
1016 no_oper_flood = yes;
1017
1018 /* glines: enable glines, network wide temp klines */
1019 glines = no;
1020
1021 /* gline time: the amount of time a gline will remain before expiring */
1022 gline_time = 1 day;
1023
1024 /* gline_min_cidr: If using a CIDR gline, the minimum length the
1025 * mask must be
1026 */
1027 gline_min_cidr = 16;
1028
1029 /* idletime: the maximum amount of time a user may idle before
1030 * they are disconnected
1031 */
1032 idletime = 0;
1033
1034 /* REMOVE ME. The following line checks you've been reading. */
1035 havent_read_conf = yes;
1036
1037 /* max targets: the maximum amount of targets in a single
1038 * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited.
1039 */
1040 max_targets = 4;
1041
1042 /* client flood: maximum number of lines in a clients queue before
1043 * they are dropped for flooding.
1044 */
1045 client_flood = 20;
1046
1047 /* use_whois_actually: send clients requesting a whois a numeric
1048 * giving the real IP of non-spoofed clients to prevent DNS abuse.
1049 */
1050 use_whois_actually = yes;
1051
1052 /* usermodes configurable: a list of usermodes for the options below
1053 *
1054 * +g - callerid - Server Side Ignore
1055 * +D - deaf - Don't see channel messages
1056 * +i - invisible - Not shown in NAMES or WHO unless you share a
1057 * a channel
1058 * +l - locops - See LOCOPS messages
1059 * +Q - noforward - Unaffected by channel forwarding
1060 * +R - regonlymsg - No messages from unindentified
1061 * +s - servnotice - See server notices
1062 * +w - wallop - See oper and server generated WALLOPS
1063 * +z - operwall - See operwalls
1064 */
1065
1066 /* oper only umodes: usermodes only opers may set */
1067 oper_only_umodes = operwall, locops, servnotice;
1068
1069 /* oper umodes: default usermodes opers get when they /oper */
1070 oper_umodes = locops, servnotice, operwall, wallop;
1071
1072 /* oper snomask: default snomask opers get when they /oper,
1073 * provided they have umode +s set */
1074 oper_snomask = "+s";
1075
1076 /* servlink path: path to 'servlink' program used by ircd to handle
1077 * encrypted/compressed server <-> server links.
1078 *
1079 * only define if servlink is not in same directory as ircd itself.
1080 */
1081 #servlink_path = "/usr/local/ircd/bin/servlink";
1082
1083 /* use egd: if your system does not have *random devices yet you
1084 * want to use OpenSSL and encrypted links, enable this. Beware -
1085 * EGD is *very* CPU intensive when gathering data for its pool
1086 */
1087 #use_egd = yes;
1088
1089 /* egdpool path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1090 * which automatically finds the path.
1091 */
1092 #egdpool_path = "/var/run/egd-pool";
1093
1094
1095 /* compression level: level of compression for compressed links between
1096 * servers.
1097 *
1098 * values are between: 1 (least compression, fastest)
1099 * and: 9 (most compression, slowest).
1100 */
1101 #compression_level = 6;
1102
1103 /* burst_away: This enables bursting away messages to servers.
1104 * With this disabled, we will only propogate AWAY messages
1105 * as users send them, but never burst them. Be warned though
1106 * enabling this could increase the size of a burst significantly
1107 * for a large network, like EFnet.
1108 */
1109 burst_away = yes;
1110
1111 /* nick delay: This locks nicks of split clients for the given time
1112 * or until a remote client uses the nick. This significantly
1113 * reduces nick collisions on short splits but it can be annoying.
1114 * To make things as fair as possible, this should be the same on
1115 * all servers. If you enable this, the suggested value is 15 minutes.
1116 */
1117 nick_delay = 0 seconds;
1118
1119 /* reject time: the amount of rejections through klines/dlines etc
1120 * allowed in the given time before the rejection is cached and
1121 * a pseudo temp dline is placed
1122 */
1123 reject_ban_time = 1 minute;
1124 reject_after_count = 3;
1125
1126 /* reject duration: the amount of time to cache the rejection */
1127 reject_duration = 5 minutes;
1128
1129 /* max_unknown_ip: maximum number of pending connections to the server
1130 * that are allowed per IP address
1131 */
1132 max_unknown_ip = 2;
1133 };
1134
1135 modules {
1136 /* module path: paths to search for modules specified below and
1137 * in /modload.
1138 */
1139 path = "/usr/local/ircd/modules";
1140 path = "/usr/local/ircd/modules/autoload";
1141
1142 /* module: the name of a module to load on startup/rehash */
1143 #module = "some_module.so";
1144 };