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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1533 - (show annotations)
Sun Sep 23 13:04:45 2012 UTC (8 years, 4 months ago) by michael
File size: 35688 byte(s)
- A server's description can again include the '[' and ']' characters

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

Properties

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

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