ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/example.conf
Revision: 1537
Committed: Tue Sep 25 19:27:03 2012 UTC (11 years, 6 months ago) by michael
Original Path: ircd-hybrid-8/doc/example.conf
File size: 34141 byte(s)
Log Message:
- example.conf: God doesn't need his/her own oper{} block

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 * 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
156 * from 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 = "sheep";
386
387 /*
388 * user: the user@host required for this operator. Multiple
389 * user="" lines are supported.
390 */
391 user = "*sheep@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 /*
535 * ssl_cipher_list:
536 *
537 * List of ciphers that the server we are connecting to must support.
538 * If the server isn't capable of any cipher listed below, the
539 * connection will simply be rejected.
540 * Can be used to enforce stronger ciphers, even though this option
541 * is not necessarily required to establish a SSL/TLS connection.
542 *
543 * Multiple ciphers are separated by colons. The order of preference
544 * is from left to right.
545 */
546 #ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
547
548 /*
549 * autoconn - controls whether we autoconnect to this server or not,
550 * dependent on class limits. By default, this is disabled.
551 * ssl - Initiates a TLS/SSL connection.
552 */
553 # flags = autoconn, ssl;
554 };
555
556 connect {
557 name = "ipv6.some.server";
558 host = "3ffd:dead:beef::1";
559 send_password = "password";
560 accept_password = "password";
561 port = 6666;
562
563 /*
564 * aftype: controls whether the connection uses "ipv4" or "ipv6".
565 * Default is ipv4.
566 */
567 aftype = ipv6;
568 class = "server";
569 };
570
571 /*
572 * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
573 * automatically
574 */
575 cluster {
576 /*
577 * name: the server to share with, this can take wildcards
578 *
579 * NOTE: only local actions will be clustered, meaning if
580 * the server receives a shared kline/unkline/etc, it
581 * will not be propagated to clustered servers.
582 *
583 * Remote servers are not necessarily required to accept
584 * clustered lines, they need a shared{} for *THIS* server
585 * in order to accept them.
586 */
587 name = "*.arpa";
588
589 /*
590 * type: list of what to share, options are as follows:
591 * dline - share dlines
592 * undline - share undlines
593 * kline - share klines
594 * unkline - share unklines
595 * xline - share xlines
596 * unxline - share unxlines
597 * resv - share resvs
598 * unresv - share unresvs
599 * locops - share locops
600 * all - share all of the above (default)
601 */
602 type = kline, unkline, locops, xline, resv;
603 };
604
605 /*
606 * shared {}: users that are allowed to remote kline
607 *
608 * NOTE: This can be effectively used for remote klines.
609 * Please note that there is no password authentication
610 * for users setting remote klines. You must also be
611 * /oper'd in order to issue a remote kline.
612 */
613 shared {
614 /*
615 * name: the server the user must be on to set klines. If this is not
616 * specified, the user will be allowed to kline from all servers.
617 */
618 name = "irc2.some.server";
619
620 /*
621 * user: the user@host mask that is allowed to set klines. If this is
622 * not specified, all users on the server above will be allowed to set
623 * a remote kline.
624 */
625 user = "oper@my.host.is.spoofed";
626
627 /*
628 * type: list of what to share, options are as follows:
629 * dline - allow oper/server to dline
630 * undline - allow oper/server to undline
631 * kline - allow oper/server to kline
632 * unkline - allow oper/server to unkline
633 * xline - allow oper/server to xline
634 * unxline - allow oper/server to unxline
635 * resv - allow oper/server to resv
636 * unresv - allow oper/server to unresv
637 * locops - allow oper/server to locops - only used for servers that cluster
638 * all - allow oper/server to do all of the above (default)
639 */
640 type = kline, unkline, resv;
641 };
642
643 /*
644 * kill {}: users that are not allowed to connect
645 * Oper issued klines will be added to the specified kline config
646 */
647 kill {
648 user = "bad@*.hacked.edu";
649 reason = "Obviously hacked account";
650 };
651
652 kill {
653 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
654
655 /*
656 * NOTE: You have to set type=regex; when using a regular expression
657 * based user entry
658 */
659 type = regex;
660 };
661
662 /*
663 * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
664 * Oper issued dlines will be added to the specified dline config
665 */
666 deny {
667 ip = "10.0.1.0/24";
668 reason = "Reconnecting vhosted bots";
669 };
670
671 /*
672 * exempt {}: IPs that are exempt from deny {} and Dlines
673 */
674 exempt {
675 ip = "192.168.0.0/16";
676 };
677
678 /*
679 * resv {}: nicks and channels users may not use/join
680 */
681 resv {
682 /* reason: the reason for the proceeding resv's */
683 reason = "Reserved for services";
684
685 /* resv: the nicks and channels users may not join/use */
686 nick = "Global";
687 nick = "DevNull";
688 nick = "BotServ";
689 nick = "Services";
690 nick = "StatServ";
691 nick = "HelpServ";
692 nick = "HostServ";
693 nick = "NickServ";
694 nick = "ChanServ";
695 nick = "MemoServ";
696 nick = "OperServ";
697 channel = "#services";
698
699 /* resv: wildcard masks are also supported in nicks only */
700 reason = "Clone bots";
701 nick = "clone*";
702 };
703
704 /*
705 * gecos {}: The X: replacement, used for banning users based on
706 * their "realname".
707 */
708 gecos {
709 name = "*sex*";
710 reason = "Possible spambot";
711 };
712
713 gecos {
714 name = "sub7server";
715 reason = "Trojan drone";
716 };
717
718 gecos {
719 name = "*http*";
720 reason = "Spambot";
721 };
722
723 gecos {
724 name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
725
726 /*
727 * NOTE: You have to set type=regex; when using a regular expression
728 * based name entry
729 */
730 type = regex;
731 };
732
733 /*
734 * channel {}: The channel block contains options pertaining to channels
735 */
736 channel {
737 /*
738 * disable_fake_channels: this option, if set to 'yes', will
739 * disallow clients to create or join channels that have one
740 * of the following ASCII characters in their name:
741 *
742 * 2 | bold
743 * 3 | mirc color
744 * 15 | plain text
745 * 22 | reverse
746 * 29 | italic
747 * 31 | underline
748 * 160 | non-breaking space
749 */
750 disable_fake_channels = yes;
751
752 /*
753 * restrict_channels: reverse channel RESVs logic, only reserved
754 * channels are allowed
755 */
756 restrict_channels = no;
757
758 /*
759 * knock_delay: The amount of time a user must wait between issuing
760 * the knock command.
761 */
762 knock_delay = 5 minutes;
763
764 /*
765 * knock_delay_channel: How often a knock to any specific channel
766 * is permitted, regardless of the user sending the knock.
767 */
768 knock_delay_channel = 1 minute;
769
770 /*
771 * max_chans_per_user: The maximum number of channels a user can
772 * join/be on.
773 */
774 max_chans_per_user = 25;
775
776 /*
777 * max_chans_per_oper: The maximum number of channels an oper can
778 * join/be on.
779 */
780 max_chans_per_oper = 50;
781
782 /* quiet_on_ban: stop banned people talking in channels. */
783 quiet_on_ban = yes;
784
785 /* max_bans: maximum number of +b/e/I modes in a channel */
786 max_bans = 100;
787
788 /*
789 * how many joins in how many seconds constitute a flood, use 0 to
790 * disable. +b opers will be notified (changeable via /set)
791 */
792 join_flood_count = 16;
793 join_flood_time = 8 seconds;
794
795 /*
796 * splitcode: The ircd will now check splitmode every few seconds.
797 *
798 * Either split users or split servers can activate splitmode, but
799 * both conditions must be met for the ircd to deactivate splitmode.
800 *
801 * You may force splitmode to be permanent by /quote set splitmode on
802 */
803
804 /*
805 * default_split_user_count: when the usercount is lower than this level,
806 * consider ourselves split. This must be set for automatic splitmode.
807 */
808 default_split_user_count = 0;
809
810 /*
811 * default_split_server_count: when the servercount is lower than this,
812 * consider ourselves split. This must be set for automatic splitmode.
813 */
814 default_split_server_count = 0;
815
816 /* no_create_on_split: disallow users creating channels on split. */
817 no_create_on_split = yes;
818
819 /* no_join_on_split: disallow users joining channels at all on a split. */
820 no_join_on_split = no;
821 };
822
823 /*
824 * serverhide {}: The serverhide block contains the options regarding
825 * serverhiding
826 */
827 serverhide {
828 /*
829 * flatten_links: this option will show all servers in /links appear
830 * that they are linked to this current server
831 */
832 flatten_links = no;
833
834 /*
835 * links_delay: how often to update the links file when it is
836 * flattened.
837 */
838 links_delay = 5 minutes;
839
840 /*
841 * hidden: hide this server from a /links output on servers that
842 * support it. This allows hub servers to be hidden etc.
843 */
844 hidden = no;
845
846 /*
847 * hide_servers: hide remote servernames everywhere and instead use
848 * hidden_name and network_desc.
849 */
850 hide_servers = no;
851
852 /*
853 * Use this as the servername users see if hide_servers = yes.
854 */
855 hidden_name = "*.hidden.com";
856
857 /*
858 * hide_server_ips: If this is disabled, opers will be unable to see
859 * servers ips and will be shown a masked ip, admins will be shown the
860 * real ip.
861 *
862 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
863 * it has the side effect of hiding the ips everywhere, including
864 * logfiles.
865 *
866 * We recommend you leave this disabled, and just take care with who you
867 * give admin=yes; to.
868 */
869 hide_server_ips = no;
870 };
871
872 /*
873 * general {}: The general block contains many of the options that were once
874 * compiled in options in config.h. The general block is read at start time.
875 */
876 general {
877 /* services_name: servername of nick/channel services */
878 services_name = "service.someserver";
879
880 /* max_watch: maximum WATCH entries a client can have. */
881 max_watch = 60;
882
883 /* gline_enable: enable glines, network wide temp klines */
884 gline_enable = yes;
885
886 /*
887 * gline_duration: the amount of time a gline will remain on your
888 * server before expiring
889 */
890 gline_duration = 1 day;
891
892 /*
893 * gline_request_duration: how long a pending G-line can be around.
894 * 10 minutes should be plenty
895 */
896 gline_request_duration = 10 minutes;
897
898 /*
899 * gline_min_cidr: the minimum required length of a CIDR bitmask
900 * for IPv4 based glines
901 */
902 gline_min_cidr = 16;
903
904 /*
905 * gline_min_cidr6: the minimum required length of a CIDR bitmask
906 * for IPv6 based glines
907 */
908 gline_min_cidr6 = 48;
909
910 /*
911 * Whether to automatically set mode +i on connecting users.
912 */
913 invisible_on_connect = yes;
914
915 /*
916 * Show "actually using host <ip>" on /whois when possible.
917 */
918 use_whois_actually = yes;
919
920 /*
921 * Max time from the nickname change that still causes KILL
922 * automatically to switch for the current nick of that user.
923 */
924 kill_chase_time_limit = 90 seconds;
925
926 /*
927 * If hide_spoof_ips is disabled, opers will be allowed to see the real
928 * IP of spoofed users in /trace etc. If this is defined they will be
929 * shown a masked IP.
930 */
931 hide_spoof_ips = yes;
932
933 /*
934 * Ignore bogus timestamps from other servers. Yes, this will desync
935 * the network, but it will allow chanops to resync with a valid non TS 0
936 *
937 * This should be enabled network wide, or not at all.
938 */
939 ignore_bogus_ts = no;
940
941 /*
942 * disable_auth: completely disable ident lookups; if you enable this,
943 * be careful of what you set need_ident to in your auth {} blocks
944 */
945 disable_auth = no;
946
947 /* disable_remote_commands: disable users doing commands on remote servers */
948 disable_remote_commands = no;
949
950 /*
951 * tkline_expire_notices: enables or disables temporary kline/xline
952 * expire notices.
953 */
954 tkline_expire_notices = no;
955
956 /*
957 * default_floodcount: the default value of floodcount that is configurable
958 * via /quote set floodcount. This is the amount of lines a user
959 * may send to any other user/channel in one second.
960 */
961 default_floodcount = 10;
962
963 /*
964 * failed_oper_notice: send a notice to all opers on the server when
965 * someone tries to OPER and uses the wrong password, host or ident.
966 */
967 failed_oper_notice = yes;
968
969 /*
970 * dots_in_ident: the amount of '.' characters permitted in an ident
971 * reply before the user is rejected.
972 */
973 dots_in_ident = 2;
974
975 /*
976 * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
977 * placed via the server. klines hand placed are exempt from limits.
978 * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
979 */
980 min_nonwildcard = 4;
981
982 /*
983 * min_nonwildcard_simple: the minimum non wildcard characters in
984 * gecos bans. wildcard chars: '*' '?' '#'
985 */
986 min_nonwildcard_simple = 3;
987
988 /* max_accept: maximum allowed /accept's for +g usermode */
989 max_accept = 20;
990
991 /* anti_nick_flood: enable the nickflood control code */
992 anti_nick_flood = yes;
993
994 /* nick flood: the nick changes allowed in the specified period */
995 max_nick_time = 20 seconds;
996 max_nick_changes = 5;
997
998 /*
999 * anti_spam_exit_message_time: the minimum time a user must be connected
1000 * before custom quit messages are allowed.
1001 */
1002 anti_spam_exit_message_time = 5 minutes;
1003
1004 /*
1005 * ts delta: the time delta allowed between server clocks before
1006 * a warning is given, or before the link is dropped. all servers
1007 * should run ntpdate/rdate to keep clocks in sync
1008 */
1009 ts_warn_delta = 30 seconds;
1010 ts_max_delta = 5 minutes;
1011
1012 /*
1013 * kline_with_reason: show the user the reason why they are k/d/glined
1014 * on exit. May give away who set k/dline when set via tcm.
1015 */
1016 kline_with_reason = yes;
1017
1018 /*
1019 * kline_reason: show this message to users on channel
1020 * instead of the oper reason.
1021 */
1022 kline_reason = "Connection closed";
1023
1024 /*
1025 * reject_hold_time: wait this amount of time before disconnecting
1026 * a rejected client. Use 0 to disable.
1027 */
1028 reject_hold_time = 0;
1029
1030 /*
1031 * warn_no_nline: warn opers about servers that try to connect but
1032 * we don't have a connect {} block for. Twits with misconfigured
1033 * servers can get really annoying with this enabled.
1034 */
1035 warn_no_nline = yes;
1036
1037 /*
1038 * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1039 * operators and administrators. Doing so is a good idea in case
1040 * there are any exempted (exempt{}) server IPs you don't want to
1041 * see leaked.
1042 */
1043 stats_e_disabled = no;
1044
1045 /* stats_o_oper only: make stats o (opers) oper only */
1046 stats_o_oper_only = yes;
1047
1048 /* stats_P_oper_only: make stats P (ports) oper only */
1049 stats_P_oper_only = yes;
1050
1051 /*
1052 * stats i oper only: make stats i (auth {}) oper only. set to:
1053 * yes: show users no auth blocks, made oper only.
1054 * masked: show users first matching auth block
1055 * no: show users all auth blocks.
1056 */
1057 stats_i_oper_only = yes;
1058
1059 /*
1060 * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1061 * yes: show users no auth blocks, made oper only
1062 * masked: show users first matching auth block
1063 * no: show users all auth blocks.
1064 */
1065 stats_k_oper_only = yes;
1066
1067 /*
1068 * caller_id_wait: time between notifying a +g user that somebody
1069 * is messaging them.
1070 */
1071 caller_id_wait = 1 minute;
1072
1073 /*
1074 * opers_bypass_callerid: allows operators to bypass +g and message
1075 * anyone who has it set (useful if you use services).
1076 */
1077 opers_bypass_callerid = no;
1078
1079 /*
1080 * pace_wait_simple: time between use of less intensive commands
1081 * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1082 */
1083 pace_wait_simple = 1 second;
1084
1085 /*
1086 * pace_wait: time between more intensive commands
1087 * (AWAY, INFO, LINKS, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1088 */
1089 pace_wait = 10 seconds;
1090
1091 /*
1092 * short_motd: send clients a notice telling them to read the motd
1093 * instead of forcing a motd to clients who may simply ignore it.
1094 */
1095 short_motd = no;
1096
1097 /*
1098 * ping_cookie: require clients to respond exactly to a ping command,
1099 * can help block certain types of drones and FTP PASV mode spoofing.
1100 */
1101 ping_cookie = no;
1102
1103 /* no_oper_flood: increase flood limits for opers. */
1104 no_oper_flood = yes;
1105
1106 /*
1107 * true_no_oper_flood: completely eliminate flood limits for opers
1108 * and for clients with can_flood = yes in their auth {} blocks
1109 */
1110 true_no_oper_flood = yes;
1111
1112 /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1113 oper_pass_resv = yes;
1114
1115 /* REMOVE ME. The following line checks you've been reading. */
1116 havent_read_conf = 1;
1117
1118 /*
1119 * max_targets: the maximum amount of targets in a single
1120 * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1121 */
1122 max_targets = 4;
1123
1124 /*
1125 * message_locale: the default message locale
1126 * Use "standard" for the compiled in defaults.
1127 * To install the translated messages, go into messages/ in the
1128 * source directory and run `make install'.
1129 */
1130 message_locale = "standard";
1131
1132 /*
1133 * usermodes configurable: a list of usermodes for the options below
1134 *
1135 * +b - bots - See bot and drone flooding notices
1136 * +c - cconn - Client connection/quit notices
1137 * +C - cconn_full - Client connection/quit notices full
1138 * +D - deaf - Don't receive channel messages
1139 * +d - debug - See debugging notices
1140 * +f - full - See auth{} block full notices
1141 * +G - softcallerid - Server Side Ignore for users not on your channels
1142 * +g - callerid - Server Side Ignore (for privmsgs etc)
1143 * +H - hidden - Hides operator status to other users
1144 * +i - invisible - Not shown in NAMES or WHO unless you share a
1145 * a channel
1146 * +j - rej - See rejected client notices
1147 * +k - skill - See server generated KILL messages
1148 * +l - locops - See LOCOPS messages
1149 * +n - nchange - See client nick changes
1150 * +s - servnotice - See general server notices
1151 * +u - unauth - See unauthorized client notices
1152 * +w - wallop - See server generated WALLOPS
1153 * +x - external - See remote server connection and split notices
1154 * +y - spy - See LINKS, STATS, TRACE notices etc.
1155 * +z - operwall - See oper generated WALLOPS
1156 */
1157
1158 /* oper_only_umodes: usermodes only opers may set */
1159 oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1160 nchange, rej, spy, external, operwall,
1161 locops, unauth;
1162
1163 /* oper_umodes: default usermodes opers get when they /oper */
1164 oper_umodes = bots, locops, servnotice, operwall, wallop;
1165
1166 /*
1167 * use_egd: if your system does not have *random devices yet you
1168 * want to use OpenSSL and encrypted links, enable this. Beware -
1169 * EGD is *very* CPU intensive when gathering data for its pool
1170 */
1171 # use_egd = yes;
1172
1173 /*
1174 * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1175 * which automatically finds the path.
1176 */
1177 # egdpool_path = "/var/run/egd-pool";
1178
1179 /*
1180 * throttle_time: the minimum amount of time between connections from
1181 * the same ip. exempt {} blocks are excluded from this throttling.
1182 * Offers protection against flooders who reconnect quickly.
1183 * Set to 0 to disable.
1184 */
1185 throttle_time = 10;
1186 };
1187
1188 modules {
1189 /*
1190 * path: other paths to search for modules specified below
1191 * and in "/module load".
1192 */
1193 path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1194 path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1195
1196 /* module: the name of a module to load on startup/rehash */
1197 #module = "some_module.la";
1198 };
1199
1200 /*
1201 * log {}: contains information about logfiles.
1202 */
1203 log {
1204 /* Do you want to enable logging to ircd.log? */
1205 use_logging = yes;
1206
1207 file {
1208 type = oper;
1209 name = "/home/ircd/var/log/oper.log";
1210 size = unlimited;
1211 };
1212
1213 file {
1214 type = user;
1215 name = "/home/ircd/var/log/user.log";
1216 size = 50 megabytes;
1217 };
1218
1219 file {
1220 type = kill;
1221 name = "/home/ircd/var/log/kill.log";
1222 size = 50 megabytes;
1223 };
1224
1225 file {
1226 type = kline;
1227 name = "/home/ircd/var/log/kline.log";
1228 size = 50 megabytes;
1229 };
1230
1231 file {
1232 type = dline;
1233 name = "/home/ircd/var/log/dline.log";
1234 size = 50 megabytes;
1235 };
1236
1237 file {
1238 type = gline;
1239 name = "/home/ircd/var/log/gline.log";
1240 size = 50 megabytes;
1241 };
1242
1243 file {
1244 type = debug;
1245 name = "/home/ircd/var/log/debug.log";
1246 size = 50 megabytes;
1247 };
1248 };

Properties

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