ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 1522
Committed: Sun Sep 9 10:51:44 2012 UTC (12 years, 11 months ago) by michael
Original Path: ircd-hybrid-8/doc/example.conf
File size: 33721 byte(s)
Log Message:
- Update example configuration files

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

Properties

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