/[svn]/ircd-hybrid/trunk/doc/reference.conf
ViewVC logotype

Contents of /ircd-hybrid/trunk/doc/reference.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6484 - (show annotations)
Fri Sep 4 16:55:43 2015 UTC (6 years, 11 months ago) by michael
File size: 38927 byte(s)
- Minor correction to reference.conf

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

Properties

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

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