ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/doc/reference.conf
Revision: 2038
Committed: Tue May 14 19:21:32 2013 UTC (13 years, 2 months ago) by michael
Original Path: ircd-hybrid/trunk/doc/reference.conf
File size: 35145 byte(s)
Log Message:
- Added 'locops' and 'wallops' to irc-operator flags
--- Diese und die folgenden Zeilen werden ignoriert --

M    include/client.h
M    src/conf_parser.c
M    src/conf_parser.h
M    src/conf_lexer.c
M    src/conf_parser.y
M    src/conf_lexer.l
M    doc/reference.conf
M    modules/m_locops.c
M    modules/m_wallops.c

File Contents

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

Properties

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