/[svn]/ircd-hybrid/etc/example.conf
ViewVC logotype

Contents of /ircd-hybrid/etc/example.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 805 - (show annotations)
Thu Aug 31 23:41:45 2006 UTC (14 years ago) by db
File size: 35243 byte(s)
- don't use a potentially real server name for redirect example


1 /* doc/example.conf - ircd-hybrid-7 Example configuration file
2 * Copyright (C) 2000-2006 Hybrid Development Team
3 *
4 * Written by ejb, wcampbel, db, leeh and others
5 * Other example configurations can be found in the source dir under
6 * etc/.
7 *
8 * $Id$
9 */
10
11 /* IMPORTANT NOTES:
12 *
13 * auth {} blocks MUST be specified in order of precedence. The first one
14 * that matches a user will be used. So place spoofs first, then specials,
15 * then general access.
16 *
17 * Shell style (#), C++ style (//) and C style comments are supported.
18 *
19 * Files may be included by either:
20 * .include "filename"
21 * .include <filename>
22 *
23 * Times/durations are written as:
24 * 12 hours 30 minutes 1 second
25 *
26 * Valid units of time:
27 * month, week, day, hour, minute, second
28 *
29 * Valid units of size:
30 * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
31 *
32 * Sizes and times may be singular or plural.
33 */
34
35 /* EFNET NOTE:
36 *
37 * This config file is NOT suitable for EFNet. EFNet admins should use
38 * example.efnet.conf
39 */
40
41 /*
42 * serverinfo {}: contains information about the server. (OLD M:)
43 */
44 serverinfo {
45 /*
46 * name: the name of our server
47 */
48 name = "hades.arpa";
49
50 /*
51 * sid: a server's unique ID. This is three characters long and must
52 * be in the form [0-9][A-Z0-9][A-Z0-9]. The first character must be
53 * a digit, followed by 2 alpha-numerical letters.
54 * Note: The letters must be capitalized. This cannot be changed at
55 * runtime.
56 */
57 sid = "_CHANGE_ME_";
58
59 /*
60 * description: the description of the server. '[' and ']' may not
61 * be used here for compatibility with older servers.
62 */
63 description = "hybrid-7 test server";
64
65 /*
66 * network info: the name and description of the network this server
67 * is on. Shown in the 005 reply and used with serverhiding.
68 */
69 network_name = "MyNet";
70 network_desc = "This is My Network";
71
72 /*
73 * hub: allow this server to act as a hub and have multiple servers
74 * connected to it.
75 */
76 hub = no;
77
78 /*
79 * vhost: the IP to bind to when we connect outward to ipv4 servers.
80 * This should be an ipv4 IP only, or "* for INADDR_ANY.
81 */
82 #vhost = "192.169.0.1";
83
84 /*
85 * vhost6: the IP to bind to when we connect outward to ipv6 servers.
86 * This should be an ipv6 IP only, or "* for INADDR_ANY.
87 */
88 #vhost6 = "3ffe:80e8:546::2";
89
90 /* max_clients: the maximum number of clients allowed to connect */
91 max_clients = 512;
92
93 /*
94 * rsa_private_key_file: the path to the file containing our
95 * rsa key for cryptlink.
96 *
97 * Example command to store a 2048 bit RSA keypair in
98 * rsa.key, and the public key in rsa.pub:
99 *
100 * openssl genrsa -out rsa.key 2048
101 * openssl rsa -in rsa.key -pubout -out rsa.pub
102 * chown <ircd-user>.<ircd.group> rsa.key rsa.pub
103 * chmod 0600 rsa.key
104 * chmod 0644 rsa.pub
105 */
106 #rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
107
108 /*
109 * ssl_certificate_file: the path to the file containing our ssl
110 * certificate for encrypted client connection.
111 *
112 * This assumes your private RSA key is stored in rsa.key. You
113 * MUST have an RSA key in order to generate the certificate
114 *
115 * openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
116 *
117 * See http://www.openssl.org/docs/HOWTO/certificates.txt
118 *
119 * Please use the following values when generating the cert
120 *
121 * Organization Name: Network Name
122 * Organization Unit Name: changme.someirc.net
123 * Common Name: irc.someirc.net
124 * E-mail: you@domain.com
125 */
126 #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
127 };
128
129 /*
130 * admin {}: contains admin information about the server. (OLD A:)
131 */
132 admin {
133 name = "Admin's name";
134 description = "Main Server Administrator";
135 email = "<irc-admin@network.tld>";
136 };
137
138 /*
139 * log {}: contains information about logfiles.
140 */
141 log {
142 /* Do you want to enable logging to ircd.log? */
143 use_logging = yes;
144
145 /*
146 * logfiles: the logfiles to use for user connects, /oper uses,
147 * and failed /oper. These files must exist for logging to be used.
148 */
149 fname_userlog = "logs/userlog";
150 fname_operlog = "logs/operlog";
151 fname_killlog = "logs/kill";
152 fname_klinelog = "logs/kline";
153 fname_glinelog = "logs/gline";
154
155 /*
156 * log level: the amount of detail to log in ircd.log. The
157 * higher, the more information is logged. May be changed
158 * once the server is running via /quote SET LOG. Either:
159 * L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO or L_DEBUG
160 */
161 log_level = L_INFO;
162 };
163
164 /* class {}: contain information about classes for users (OLD Y:)
165 * ALL FIELDS EXCEPT 'name' ARE OPTIONAL. */
166 class {
167 /* name: the name of the class. (Classes are text now.) */
168 name = "users";
169
170 /*
171 * ping_time: how often a client must reply to a PING from the
172 * server before they are dropped.
173 */
174 ping_time = 90 seconds;
175
176 /*
177 * Clone control stuff: max number of clients per *@host or user@host.
178 *
179 * Remember everything is optional here. If you don't specify limit
180 * type, 'local' is assumed. NO SPACE CAN OCCUR AROUND ':' !!
181 *
182 * You can use names number_per_ip, number_per_userhost as well.
183 */
184 userhost_limit = local:1, global:4;
185 host_limit = global:10;
186
187 /* How many users this class can hold. */
188
189 # max_noident = 30; // per each host
190 max_number = 100;
191
192 /*
193 * The following lines are optional and allow you to define
194 * how many users can connect from one /NN subnet.
195 */
196 cidr_bitlen_ipv4 = 24;
197 cidr_bitlen_ipv6 = 120;
198 number_per_cidr = 16;
199
200 /*
201 * sendq: the amount of data allowed in a clients queue before
202 * they are dropped.
203 */
204 sendq = 100 kbytes;
205 };
206
207 class {
208 name = "opers";
209 ping_time = 90 seconds;
210 host_limit = 10;
211 max_total = 100;
212 sendq = 100kbytes;
213 };
214
215 class {
216 name = "server";
217 ping_time = 90 seconds;
218
219 /*
220 * ping_warning: how quickly a server must reply to a PING before
221 * a warning to opers is generated.
222 */
223 ping_warning = 15 seconds;
224
225 /*
226 * connectfreq: only used in server classes. Specifies the delay
227 * between autoconnecting to servers.
228 */
229 connectfreq = 5 minutes;
230
231 /* Here it specifies the amount of servers to autoconnect to */
232 max_total = 1;
233
234 /* sendq: servers need a higher sendq as they send more data */
235 sendq = 2 megabytes;
236 };
237
238 /*
239 * listen {}: contains information about the ports ircd listens on (OLD P:)
240 */
241 listen {
242 /*
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 separated via a comma, a range may be specified using ".."
247 */
248
249 /* port: listen on all available IPs, ports 6665 to 6669 */
250 port = 6665 .. 6669;
251
252 /*
253 * Listen on 192.168.0.1/6697 with ssl enabled and hidden from STATS P
254 * unless you are an administrator.
255 *
256 * NOTE: The "flags" directive has to come before "port". Always!
257 */
258 flags = hidden, ssl;
259 host = "192.168.0.1";
260 port = 6697;
261
262 /*
263 * host: set a specific IP/host the ports after the line will listen
264 * on. This may be ipv4 or ipv6.
265 */
266 host = "1.2.3.4";
267 port = 7000, 7001;
268
269 host = "3ffe:1234:a:b:c::d";
270 port = 7002;
271 };
272
273 /*
274 * auth {}: allow users to connect to the ircd (OLD I:)
275 */
276 auth {
277 /*
278 * user: the user@host allowed to connect. Multiple IPv4/IPv6 user
279 * lines are permitted per auth block.
280 */
281 user = "*@172.16.0.0/12";
282 user = "*test@123D:B567:*";
283
284 /* password: an optional password that is required to use this block */
285 password = "letmein";
286
287 /*
288 * encrypted: controls whether the auth password above has been
289 * encrypted.
290 */
291 encrypted = yes;
292
293 /*
294 * spoof: fake the users host to this. This is free-form,
295 * just do everyone a favor and don't abuse it. ('=' prefix on /stats I)
296 */
297 spoof = "chuck.norris.never.sleeps";
298
299 /* class: the class the user is placed in */
300 class = "opers";
301
302 /*
303 * need_password: don't allow users who haven't supplied the correct
304 * password to connect using another auth{} block
305 * ('&' prefix on /stats I if disabled)
306 * need_ident: require the user to have identd to connect ('+' prefix on /stats I)
307 * spoof_notice: enable spoofing notification to admins
308 * exceed_limit: allow a user to exceed class limits ('>' prefix on /stats I)
309 * kline_exempt: exempt this user from k/glines ('^' prefix on /stats I)
310 * gline_exempt: exempt this user from glines ('_' prefix on /stats I)
311 * resv_exempt: exempt this user from resvs ('$' prefix on /stats I)
312 * no_tilde: remove ~ from a user with no ident ('-' prefix on /stats I)
313 * can_flood: allow this user to exceed flood limits ('|' prefix on /stats I)
314 * can_idle: exempt this user from idle restrictions ('<' prefix on /stats I)
315 */
316 flags = need_password, spoof_notice, exceed_limit, kline_exempt,
317 gline_exempt, resv_exempt, no_tilde, can_flood, can_idle;
318 };
319
320 auth {
321 /*
322 * redirect: the server and port to redirect a user to. A user does
323 * not have to obey the redirection, the ircd just suggests an alternative
324 * server for them.
325 */
326 redirserv = "this.is.not.a.real.server";
327 redirport = 6667;
328
329 user = "*.server";
330
331 /* class: a class is required even though it is not used */
332 class = "users";
333 };
334
335 auth {
336 user = "*@*";
337 class = "users";
338 flags = need_ident;
339 };
340
341 /*
342 * operator {}: defines ircd operators. (OLD O:)
343 *
344 * ircd-hybrid no longer supports local operators, privileges are
345 * controlled via flags.
346 */
347 operator {
348 /* name: the name of the oper */
349 /* Note: operator "opername"{} is also supported */
350 name = "chuck";
351
352 /*
353 * user: the user@host required for this operator. CIDR is
354 * supported. Multiple user="" lines are supported.
355 */
356 user = "*norris@*";
357 user = "*@192.168.0.0/16";
358
359 /*
360 * password: the password required to oper. By default this will
361 * need to be encrypted using 'mkpasswd'. MD5 is supported.
362 */
363 password = "etcnjl8juSU1E";
364
365 /*
366 * encrypted: controls whether the oper password above has been
367 * encrypted. (OLD CRYPT_OPER_PASSWORD now optional per operator)
368 */
369 encrypted = yes;
370
371 /*
372 * rsa_public_key_file: the public key for this oper when using Challenge.
373 * A password should not be defined when this is used, see
374 * doc/challenge.txt for more information.
375 */
376 # rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
377
378 /* class: the class the oper joins when they successfully /oper */
379 class = "opers";
380
381 /*
382 * umodes: default usermodes opers get when they /oper. If defined,
383 * it will override oper_umodes settings in general {}.
384 * Available usermodes:
385 *
386 * +b - bots - See bot and drone flooding notices
387 * +c - cconn - Client connection/quit notices
388 * +D - deaf - Don't receive channel messages
389 * +d - debug - See debugging notices
390 * +f - full - See I: line full notices
391 * +G - softcallerid - Server Side Ignore for users not on your channels
392 * +g - callerid - Server Side Ignore (for privmsgs etc)
393 * +i - invisible - Not shown in NAMES or WHO unless you share a
394 * a channel
395 * +k - skill - See server generated KILL messages
396 * +l - locops - See LOCOPS messages
397 * +n - nchange - See client nick changes
398 * +r - rej - See rejected client notices
399 * +s - servnotice - See general server notices
400 * +u - unauth - See unauthorized client notices
401 * +w - wallop - See server generated WALLOPS
402 * +x - external - See remote server connection and split notices
403 * +y - spy - See LINKS, STATS, TRACE notices etc.
404 * +z - operwall - See oper generated WALLOPS
405 */
406 # umodes = locops, servnotice, operwall, wallop;
407
408 /*
409 * privileges: controls the activities and commands an oper is
410 * allowed to do on the server. All options default to no.
411 * Available options:
412 *
413 * global_kill: allows remote users to be /KILL'd (OLD 'O' flag)
414 * remote: allows remote SQUIT and CONNECT (OLD 'R' flag)
415 * remoteban: allows remote KLINE/UNKLINE
416 * kline: allows KILL, KLINE and DLINE (OLD 'K' flag)
417 * unkline: allows UNKLINE and UNDLINE (OLD 'U' flag)
418 * gline: allows GLINE (OLD 'G' flag)
419 * xline: allows XLINE (OLD 'X' flag)
420 * operwall: allows OPERWALL
421 * nick_changes: allows oper to see nickchanges (OLD 'N' flag)
422 * via usermode +n
423 * rehash: allows oper to REHASH config (OLD 'H' flag)
424 * die: allows DIE and RESTART (OLD 'D' flag)
425 * admin: gives admin privileges. admins
426 * may (un)load modules and see the
427 * real IPs of servers.
428 * hidden_admin: same as 'admin', but noone can recognize you as
429 * being an admin
430 * hidden_oper: not shown in /stats p (except for other operators)
431 */
432 /* You can either use
433 * die = yes;
434 * rehash = yes;
435 *
436 * or in a flags statement i.e.
437 * flags = die, rehash;
438 *
439 * You can also negate a flag with ~ i.e.
440 * flags = ~remote;
441 *
442 */
443 flags = global_kill, remote, kline, unkline, xline,
444 die, rehash, nick_changes, admin, operwall;
445 };
446
447 /*
448 * connect {}: controls servers we connect to (OLD C:, N:, H:, L:)
449 */
450 connect {
451 /* name: the name of the server */
452 name = "irc.uplink.com";
453
454 /*
455 * host: the host or IP to connect to. If a hostname is used it
456 * must match the reverse dns of the server.
457 */
458 host = "192.168.0.1";
459
460 /*
461 * vhost: the IP to bind to when we connect outward to servers.
462 * serverinfo::vhost and serverinfo::vhost6 will be overridden
463 * by this directive.
464 */
465 vhost = "192.168.0.2";
466
467 /*
468 * passwords: the passwords we send (OLD C:) and accept (OLD N:).
469 * The remote server will have these passwords reversed.
470 */
471 send_password = "password";
472 accept_password = "anotherpassword";
473
474 /*
475 * encrypted: controls whether the accept_password above has been
476 * encrypted. (OLD CRYPT_LINK_PASSWORD now optional per connect)
477 */
478 encrypted = no;
479
480 /* port: the port to connect to this server on */
481 port = 6666;
482
483 /*
484 * hub_mask: the mask of servers that this server may hub. Multiple
485 * entries are permitted
486 */
487 hub_mask = "*";
488
489 /*
490 * leaf_mask: the mask of servers this server may not hub. Multiple
491 * entries are permitted. Useful for forbidding EU -> US -> EU routes.
492 */
493 # leaf_mask = "*.uk";
494
495 /* fakename: the servername we pretend to be when we connect */
496 # fakename = "*.arpa";
497
498 /* class: the class this server is in */
499 class = "server";
500
501 /*
502 * autoconn: controls whether we autoconnect to this server or not,
503 * dependent on class limits. By default, this is disabled.
504 * compressed: controls whether traffic is compressed via ziplinks.
505 * By default, this is disabled
506 * cryptlink: enable full encryption for all data passing between our
507 * server and this link and rsa authentication.
508 * burst_away: This will send the /away string that users have set
509 * on the server burst. Note this can be a lot of data
510 * and slow down your server burst.
511 * topicburst: Send topics to this server during channel burst. Works
512 * only if the server we are connecting to is capable
513 * of TBURST/TB.
514 */
515 # flags = autoconn, compressed, cryptlink, burst_away, topicburst;
516 };
517
518 connect {
519 name = "encrypted.auth.example";
520 host = "some.host.somewhere";
521 port = 6667;
522
523 flags = cryptlink;
524
525 /*
526 * rsa_public_key_file: the path to the public keyfile of the server.
527 * Used instead of passwords.
528 */
529 rsa_public_key_file = "etc/remote.server.keyfile";
530
531 /*
532 * cipher_preference: set the preferred cipher for this link
533 *
534 * Available ciphers are:
535 * BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
536 * RC5.12/128 RC5.8/128 3DES/168 DES/56
537 *
538 * NOTE: Some ciphers may not be supported by your OpenSSL.
539 * Check the output from 'configure' for available ciphers.
540 *
541 * NOTE2: To help you decide what cipher to use, tools/encspeed
542 * will show you approximately how fast each cipher is.
543 * However, blowfish is fast and secure, and is probably
544 * a good default for most situations.
545 *
546 * NOTE3: Default if none is set is BF/128
547 *
548 * The cipher *MUST* be the same in both directions. If you
549 * set a cipher preference, your uplink must set the same cipher,
550 * else it will not link.
551 */
552 # cipher_preference = "BF/168";
553 };
554
555 /*
556 * Note: Don't add an extra 'name=' entry if you use
557 * the connect "name"{} feature
558 */
559 connect "ipv6.some.server" {
560 host = "3ffd:dead:beef::1";
561 send_password = "password";
562 accept_password = "password";
563 port = 6666;
564
565 /*
566 * aftype: controls whether the connection uses "ipv4" or "ipv6".
567 * Default is ipv4.
568 */
569 aftype = ipv6;
570 class = "server";
571 };
572
573 /* cluster{}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
574 * automatically (OLD hyb6 SLAVE_SERVERS)
575 */
576 cluster {
577 /* name: the server to share with, this can take wildcards.
578 *
579 * NOTE: only local actions will be clustered, meaning if
580 * the server receives a shared kline/unkline/etc, it
581 * will not be propagated to clustered servers.
582 *
583 * Remote servers are not necessarily required to accept
584 * clustered lines, they need a shared{} for *THIS* server
585 * in order to accept them.
586 */
587 name = "*.arpa";
588
589 /*
590 * type: list of what to share, options are as follows:
591 * kline - share klines
592 * tkline - share temporary klines
593 * unkline - share unklines
594 * xline - share xlines
595 * txline - share temporary xlines
596 * unxline - share unxlines
597 * resv - share resvs
598 * tresv - share temporary resvs
599 * unresv - share unresvs
600 * locops - share locops
601 * all - share all of the above (default)
602 */
603 type = kline, unkline, locops, xline, resv;
604 };
605
606 /*
607 * shared {}: users that are allowed to remote kline (OLD U:)
608 *
609 * NOTE: This can be effectively used for remote klines.
610 * Please note that there is no password authentication
611 * for users setting remote klines. You must also be
612 * /oper'd in order to issue a remote kline.
613 */
614 shared {
615 /*
616 * name: the server the user must be on to set klines. If this is not
617 * specified, the user will be allowed to kline from all servers.
618 */
619 name = "irc2.some.server";
620
621 /*
622 * user: the user@host mask that is allowed to set klines. If this is
623 * not specified, all users on the server above will be allowed to set
624 * a remote kline.
625 */
626 user = "oper@my.host.is.spoofed";
627
628 /*
629 * type: list of what to share, options are as follows:
630 * kline - allow oper/server to kline
631 * tkline - allow temporary klines
632 * unkline - allow oper/server to unkline
633 * xline - allow oper/server to xline
634 * txline - allow temporary xlines
635 * unxline - allow oper/server to unxline
636 * resv - allow oper/server to resv
637 * tresv - allow temporary resvs
638 * unresv - allow oper/server to unresv
639 * locops - allow oper/server to locops - only used for servers that cluster
640 * all - allow oper/server to do all of the above (default)
641 */
642 type = kline, unkline, resv;
643 };
644
645 /*
646 * kill {}: users that are not allowed to connect (OLD K:)
647 * Oper issued klines will be added to the specified kline config
648 */
649 kill {
650 user = "bad@*.hacked.edu";
651 reason = "Obviously hacked account";
652 };
653
654 kill {
655 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.org$";
656 type = regex;
657 };
658
659 /*
660 * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
661 * Oper issued dlines will be added to the specified dline config
662 */
663 deny {
664 ip = "10.0.1.0/24";
665 reason = "Reconnecting vhosted bots";
666 };
667
668 /*
669 * exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:)
670 */
671 exempt {
672 ip = "192.168.0.0/16";
673 };
674
675 /*
676 * resv {}: nicks and channels users may not use/join (OLD Q:)
677 */
678 resv {
679 /* reason: the reason for the proceeding resv's */
680 reason = "There are no services on this network";
681
682 /* resv: the nicks and channels users may not join/use */
683 nick = "nickserv";
684 nick = "chanserv";
685 channel = "#services";
686
687 /* resv: wildcard masks are also supported in nicks only */
688 reason = "Clone bots";
689 nick = "clone*";
690 };
691
692 /*
693 * gecos {}: The X: replacement, used for banning users based on their
694 * "realname".
695 */
696 gecos {
697 name = "*sex*";
698 reason = "Possible spambot";
699 };
700
701 gecos {
702 name = "sub7server";
703 reason = "Trojan drone";
704 };
705
706 gecos {
707 name = "*http*";
708 reason = "Spambot";
709 };
710
711 gecos {
712 name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
713 type = regex;
714 };
715
716 /*
717 * channel {}: The channel block contains options pertaining to channels
718 */
719 channel {
720 /*
721 * restrict_channels: reverse channel RESVs logic, only reserved
722 * channels are allowed
723 */
724 restrict_channels = no;
725
726 /*
727 * disable_local_channels: prevent users from joining &channels.
728 */
729 disable_local_channels = no;
730
731 /*
732 * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
733 * that can join a +i channel without an invite.
734 */
735 use_invex = yes;
736
737 /*
738 * use_except: Enable/disable channel mode +e, a n!u@h list of masks
739 * that can join a channel through a ban (+b).
740 */
741 use_except = yes;
742
743 /*
744 * use_knock: Allows users to request an invite to a channel that
745 * is locked somehow (+ikl). If the channel is +p or you are banned
746 * the knock will not be sent.
747 */
748 use_knock = yes;
749
750 /*
751 * knock_delay: The amount of time a user must wait between issuing
752 * the knock command.
753 */
754 knock_delay = 1 minute;
755
756 /*
757 * knock_delay_channel: How often a knock to any specific channel
758 * is permitted, regardless of the user sending the knock.
759 */
760 knock_delay_channel = 1 minute;
761
762 /*
763 * burst_topicwho: enable sending of who set topic on topicburst.
764 * default is yes
765 */
766 burst_topicwho = yes;
767
768 /*
769 * max_chans_per_user: The maximum number of channels a user can
770 * join/be on.
771 */
772 max_chans_per_user = 25;
773
774 /* quiet_on_ban: stop banned people talking in channels. */
775 quiet_on_ban = yes;
776
777 /* max_bans: maximum number of +b/e/I modes in a channel */
778 max_bans = 25;
779
780 /*
781 * how many joins in how many seconds constitute a flood, use 0 to
782 * disable. +b opers will be notified (changeable via /set)
783 */
784 join_flood_count = 16;
785 join_flood_time = 8 seconds;
786
787 /*
788 * splitcode: The ircd will now check splitmode every few seconds.
789 *
790 * Either split users or split servers can activate splitmode, but
791 * both conditions must be met for the ircd to deactivate splitmode.
792 *
793 * You may force splitmode to be permanent by /quote set splitmode on
794 */
795
796 /*
797 * default_split_user_count: when the usercount is lower than this level,
798 * consider ourselves split. This must be set for automatic splitmode.
799 */
800 default_split_user_count = 0;
801
802 /*
803 * default_split_server_count: when the servercount is lower than this,
804 * consider ourselves split. This must be set for automatic splitmode.
805 */
806 default_split_server_count = 0;
807
808 /* split no create: disallow users creating channels on split. */
809 no_create_on_split = yes;
810
811 /*
812 * no_join_on_split: disallow users joining channels at all on a split
813 */
814 no_join_on_split = no;
815 };
816
817 /*
818 * serverhide {}
819 *
820 * The serverhide block contains the options regarding serverhiding
821 */
822 serverhide {
823 /*
824 * flatten_links: this option will show all servers in /links appear
825 * that they are linked to this current server
826 */
827 flatten_links = no;
828
829 /*
830 * links_delay: how often to update the links file when it is
831 * flattened.
832 */
833 links_delay = 5 minutes;
834
835 /*
836 * hidden: hide this server from a /links output on servers that
837 * support it. this allows hub servers to be hidden etc.
838 */
839 hidden = no;
840
841 /*
842 * disable_hidden: prevent servers hiding themselves from a
843 * /links output.
844 */
845 disable_hidden = no;
846
847 /*
848 * hide_servers: hide remote servernames everywhere and instead use
849 * hidden_name and network_desc.
850 */
851 hide_servers = no;
852
853 /*
854 * Use this as the servername users see if hide_servers = yes.
855 */
856 hidden_name = "*.hidden.com";
857
858 /*
859 * hide_server_ips: If this is disabled, opers will be unable to see servers
860 * ips and will be shown a masked ip, admins will be shown the real ip.
861 *
862 * If this is enabled, nobody can see a servers ip. *This is a kludge*, it
863 * has the side effect of hiding the ips everywhere, including logfiles.
864 *
865 * We recommend you leave this disabled, and just take care with who you
866 * give admin=yes; to.
867 */
868 hide_server_ips = no;
869 };
870
871 /*
872 * general {}
873 *
874 * The general block contains many of the options that were once compiled
875 * in options in config.h. The general block is read at start time.
876 */
877 general {
878 /*
879 * disable_auth: completely disable ident lookups; if you enable this,
880 * be careful of what you set need_ident to in your auth {} blocks
881 */
882 disable_auth = no;
883
884 /*
885 * ping_cookie: require clients to respond exactly to a ping command,
886 * can help block certain types of drones and FTP PASV mode spoofing.
887 */
888 ping_cookie = no;
889
890 /*
891 * dots_in_ident: the amount of '.' characters permitted in an ident
892 * reply before the user is rejected.
893 */
894 dots_in_ident = 2;
895
896 /*
897 * dot_in_ip6_addr: ircd-hybrid-6.0 and earlier will disallow hosts
898 * without a '.' in them. this will add one to the end. only needed
899 * for older servers.
900 */
901 dot_in_ip6_addr = no;
902
903 /*
904 * short_motd: send clients a notice telling them to read the motd
905 * instead of forcing a motd to clients who may simply ignore it.
906 */
907 short_motd = no;
908
909 /*
910 * Whether to automatically set mode +i on connecting users.
911 */
912 invisible_on_connect = yes;
913
914 /* max_watch: maximum WATCH entries */
915 max_watch = 64;
916
917 /*
918 * If hide_spoof_ips is disabled, opers will be allowed to see the real IP of spoofed
919 * users in /trace etc. If this is defined they will be shown a masked IP.
920 */
921 hide_spoof_ips = yes;
922
923 /*
924 * Show "actually using host <ip>" on /whois when possible.
925 */
926 use_whois_actually = yes;
927
928 /*
929 * If you don't explicitly specify burst_away in your connect blocks, then
930 * they will default to the burst_away value below.
931 */
932 burst_away = no;
933
934 /* disable_remote_commands: disable users doing commands on remote servers */
935 disable_remote_commands = no;
936
937 /*
938 * message_locale: the default message locale
939 * Use "standard" for the compiled in defaults.
940 * To install the translated messages, go into messages/ in the
941 * source directory and run `make install'.
942 */
943 message_locale = "standard";
944
945 /* stats_o_oper only: make stats o (opers) oper only */
946 stats_o_oper_only = yes;
947
948 /* stats_P_oper_only: make stats P (ports) oper only */
949 stats_P_oper_only = yes;
950
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 = yes;
958
959 /*
960 * stats_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 = yes;
966
967 /*
968 * throttle_time: the minimum amount of time between connections from
969 * the same ip. exempt {} blocks are excluded from this throttling.
970 * Offers protection against flooders who reconnect quickly.
971 * Set to 0 to disable.
972 */
973 throttle_time = 10;
974
975 /*
976 * max_targets: the maximum amount of targets in a single
977 * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
978 */
979 max_targets = 4;
980
981 /* max_accept: maximum allowed /accept's for +g usermode */
982 max_accept = 20;
983
984 /*
985 * caller_id_wait: time between notifying a +g user that somebody
986 * is messaging them.
987 */
988 caller_id_wait = 1 minute;
989
990 /*
991 * opers_bypass_callerid: allows operators to bypass +g and message
992 * anyone who has it set (useful if you use services).
993 */
994 opers_bypass_callerid = no;
995
996 /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
997 oper_pass_resv = yes;
998
999 /*
1000 * client_flood: maximum amount of data in a clients queue before
1001 * they are dropped for flooding.
1002 */
1003 client_flood = 2560 bytes;
1004
1005 /* no_oper_flood: increase flood limits for opers. */
1006 no_oper_flood = yes;
1007
1008 /*
1009 * true_no_oper_flood: completely eliminate flood limits for opers
1010 * and for clients with can_flood = yes in their auth {} blocks
1011 */
1012 true_no_oper_flood = yes;
1013
1014 /*
1015 * pace_wait_simple: time between use of less intensive commands
1016 * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1017 */
1018 pace_wait_simple = 1 second;
1019
1020 /*
1021 * pace_wait: time between more intensive commands
1022 * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1023 */
1024 pace_wait = 10 seconds;
1025
1026 /*
1027 * default_floodcount: the default value of floodcount that is configurable
1028 * via /quote set floodcount. This is the amount of lines a user
1029 * may send to any other user/channel in one second.
1030 */
1031 default_floodcount = 10;
1032
1033 /* anti_nick_flood: enable the nickflood control code */
1034 anti_nick_flood = yes;
1035
1036 /* nick flood: the nick changes allowed in the specified period */
1037 max_nick_time = 20 seconds;
1038 max_nick_changes = 5;
1039
1040 /*
1041 * anti_spam_exit_message_time: the minimum time a user must be connected
1042 * before custom quit messages are allowed.
1043 */
1044 anti_spam_exit_message_time = 5 minutes;
1045
1046 /*
1047 * reject_hold_time: wait this amount of time before disconnecting
1048 * a rejected client. Use 0 to disable.
1049 */
1050 reject_hold_time = 0;
1051
1052 /*
1053 * idletime: the maximum amount of time a user may idle before
1054 * they are disconnected
1055 */
1056 idletime = 0;
1057
1058 /* REMOVE ME. The following line checks you've been reading. */
1059 havent_read_conf = 1;
1060
1061 /*
1062 * usermodes configurable: a list of usermodes for the options below
1063 *
1064 * +b - bots - See bot and drone flooding notices
1065 * +c - cconn - Client connection/quit notices
1066 * +D - deaf - Don't receive channel messages
1067 * +d - debug - See debugging notices
1068 * +f - full - See I: line full notices
1069 * +G - softcallerid - Server Side Ignore for users not on your channels
1070 * +g - callerid - Server Side Ignore (for privmsgs etc)
1071 * +i - invisible - Not shown in NAMES or WHO unless you share a
1072 * a channel
1073 * +k - skill - See server generated KILL messages
1074 * +l - locops - See LOCOPS messages
1075 * +n - nchange - See client nick changes
1076 * +r - rej - See rejected client notices
1077 * +s - servnotice - See general server notices
1078 * +u - unauth - See unauthorized client notices
1079 * +w - wallop - See server generated WALLOPS
1080 * +x - external - See remote server connection and split notices
1081 * +y - spy - See LINKS, STATS, TRACE notices etc.
1082 * +z - operwall - See oper generated WALLOPS
1083 */
1084
1085 /* oper_only_umodes: usermodes only opers may set */
1086 oper_only_umodes = bots, cconn, debug, full, skill, nchange,
1087 rej, spy, external, operwall, locops, unauth;
1088
1089 /* oper_umodes: default usermodes opers get when they /oper */
1090 oper_umodes = bots, locops, servnotice, operwall, wallop;
1091
1092 /*
1093 * Max time from the nickname change that still causes KILL
1094 * automatically to switch for the current nick of that user. (seconds)
1095 */
1096 kill_chase_time_limit = 90;
1097
1098 /*
1099 * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1100 * placed via the server. klines hand placed are exempt from limits.
1101 * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1102 */
1103 min_nonwildcard = 4;
1104
1105 /*
1106 * min_nonwildcard_simple: the minimum non wildcard characters in
1107 * gecos bans. wildcard chars: '*' '?' '#'
1108 */
1109 min_nonwildcard_simple = 3;
1110
1111 /*
1112 * gline_min_cidr: the minimum required length of a CIDR bitmask
1113 * for IPv4 based glines
1114 */
1115 gline_min_cidr = 16;
1116
1117 /*
1118 * gline_min_cidr6: the minimum required length of a CIDR bitmask
1119 * for IPv6 based glines
1120 */
1121 gline_min_cidr6 = 48;
1122
1123 /*
1124 * kline_with_reason: show the user the reason why they are k/d/glined
1125 * on exit. May give away who set k/dline when set via tcm.
1126 */
1127 kline_with_reason = yes;
1128
1129 /*
1130 * kline_reason: show this message to users on channel
1131 * instead of the oper reason.
1132 */
1133 kline_reason = "Connection closed";
1134
1135 /*
1136 * Disable temporary kline/xline expire notices yes/no
1137 */
1138 tkline_expire_notices = no;
1139
1140 /*
1141 * failed_oper_notice: send a notice to all opers on the server when
1142 * someone tries to OPER and uses the wrong password, host or ident.
1143 */
1144 failed_oper_notice = yes;
1145
1146 /*
1147 * warn_no_nline: warn opers about servers that try to connect but
1148 * we don't have a connect {} block for. Twits with misconfigured
1149 * servers can get really annoying with this enabled.
1150 */
1151 warn_no_nline = yes;
1152
1153 /*
1154 * Ignore bogus timestamps from other servers. Yes, this will desync
1155 * the network, but it will allow chanops to resync with a valid non TS 0
1156 *
1157 * This should be enabled network wide, or not at all.
1158 */
1159 ignore_bogus_ts = no;
1160
1161 /*
1162 * ts delta: the time delta allowed between server clocks before
1163 * a warning is given, or before the link is dropped. all servers
1164 * should run ntpdate/rdate to keep clocks in sync
1165 */
1166 ts_warn_delta = 30 seconds;
1167 ts_max_delta = 5 minutes;
1168
1169 /*
1170 * servlink_path: path to 'servlink' program used by ircd to handle
1171 * encrypted/compressed server <-> server links.
1172 *
1173 * only define if servlink is not in same directory as ircd itself.
1174 */
1175 #servlink_path = "/usr/local/ircd/bin/servlink";
1176
1177 /*
1178 * default_cipher_preference: default cipher to use for cryptlink when none is
1179 * specified in connect block.
1180 */
1181 #default_cipher_preference = "BF/168";
1182
1183 /*
1184 * use_egd: if your system does not have *random devices yet you
1185 * want to use OpenSSL and encrypted links, enable this. Beware -
1186 * EGD is *very* CPU intensive when gathering data for its pool
1187 */
1188 #use_egd = yes;
1189
1190 /*
1191 * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1192 * which automatically finds the path.
1193 */
1194 #egdpool_path = "/var/run/egd-pool";
1195
1196 /*
1197 * compression_level: level of compression for compressed links between
1198 * servers.
1199 *
1200 * values are between: 1 (least compression, fastest)
1201 * and: 9 (most compression, slowest).
1202 */
1203 #compression_level = 6;
1204 };
1205
1206 glines {
1207 /* enable: enable glines, network wide temp klines */
1208 enable = yes;
1209
1210 /* duration: the amount of time a gline will remain on your server before expiring */
1211 duration = 1 day;
1212
1213 /* logging: which types of rules you want to log when triggered (choose reject or block) */
1214 logging = reject, block;
1215
1216 /*
1217 * NOTE: gline ACLs can cause a desync of glines throughout the
1218 * network, meaning some servers may have a gline triggered, and
1219 * others may not. Also, you only need insert rules for glines
1220 * that you want to block and/or reject. If you want to accept and
1221 * propagate the gline, do NOT put a rule for it.
1222 */
1223
1224 /* user@host for rule to apply to */
1225 user = "user@chuck.norris.never.sleeps";
1226 /* server for rule to apply to */
1227 name = "hades.arpa";
1228
1229 /*
1230 * action: action to take when a matching gline is found. options are:
1231 * reject - do not apply the gline locally
1232 * block - do not propagate the gline
1233 */
1234 action = reject, block;
1235
1236 user = "user@*";
1237 name = "*";
1238 action = block;
1239 };
1240
1241 modules {
1242 /*
1243 * path: other paths to search for modules specified below
1244 * and in /modload.
1245 */
1246 path = "/usr/local/ircd/modules";
1247 path = "/usr/local/ircd/modules/autoload";
1248
1249 /* module: the name of a module to load on startup/rehash */
1250 #module = "some_module.so";
1251 };

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28