ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 1715
Committed: Mon Dec 24 15:19:32 2012 UTC (12 years, 8 months ago) by michael
Original Path: ircd-hybrid/trunk/doc/example.conf
File size: 33741 byte(s)
Log Message:
- Improved WEBIRC authentication; added 'webirc' to auth::flags

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

Properties

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