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

Properties

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