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