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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1049 - (show annotations)
Wed Jan 27 22:50:03 2010 UTC (10 years, 7 months ago) by michael
File size: 36757 byte(s)
- Update copyright years

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

Properties

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

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