ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 1516
Committed: Thu Aug 30 15:08:36 2012 UTC (11 years, 6 months ago) by michael
Original Path: ircd-hybrid-8/doc/example.conf
File size: 34149 byte(s)
Log Message:
- Removed general::client_flood configuration option and added the
  new 'recvq' configuration directive to class{} blocks.
  The max size of a receive queue can be seen in "STATS Y" for each class
- Update NEWS

File Contents

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

Properties

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