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