ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/doc/reference.conf
Revision: 9332
Committed: Sat Apr 11 17:01:20 2020 UTC (6 years, 3 months ago) by michael
File size: 39308 byte(s)
Log Message:
- Removed 'spoof_notice' from auth::flags. Spoofs are not 'hard spoofs' anymore as they used to be back in the days.
  The real host can always be seen via /whois. Also with vhosts now this notice doesn't make much sense anyway

File Contents

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

Properties

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