/[svn]/ircd-hybrid/trunk/doc/example.efnet.conf
ViewVC logotype

Contents of /ircd-hybrid/trunk/doc/example.efnet.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1679 - (show annotations)
Tue Dec 18 18:02:28 2012 UTC (7 years, 7 months ago) by michael
File size: 34952 byte(s)
- Minor documentation update to example configuration files

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

Properties

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

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28