ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 1783
Committed: Thu Jan 24 19:26:51 2013 UTC (12 years, 7 months ago) by michael
Original Path: ircd-hybrid/trunk/doc/example.conf
File size: 34514 byte(s)
Log Message:
- Forward-port -r1774:
  - Configuration parser now does support 'year' and 'month' units
  - Add support for fake idle times to /whois. Known from csircd, this
    adds min_idle, and max_idle configuration directives to class{} blocks

File Contents

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

Properties

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