ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 5504
Committed: Sun Feb 8 19:24:06 2015 UTC (9 years, 2 months ago) by michael
File size: 39882 byte(s)
Log Message:
- Update reference.conf

File Contents

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

Properties

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