ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/doc/reference.conf
Revision: 4163
Committed: Thu Jul 3 19:45:30 2014 UTC (11 years, 1 month ago) by michael
File size: 38360 byte(s)
Log Message:
- Removed ssl_server_method and ssl_client_method configuration options.
  ircd now only allows TLSv1, TLSv1.1 and TLSv1.2 protocols depending
  on the OpenSSL version.

File Contents

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

Properties

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