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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 804 - (show annotations)
Thu Aug 31 23:39:38 2006 UTC (13 years, 11 months ago) by db
File size: 36037 byte(s)
- no more .fi


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

Properties

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

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