/[svn]/ircd-hybrid-7.2/etc/example.efnet.conf.in
ViewVC logotype

Contents of /ircd-hybrid-7.2/etc/example.efnet.conf.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 959 - (show annotations)
Fri Jul 31 14:42:09 2009 UTC (11 years ago) by michael
File size: 38969 byte(s)
- minor fixes to example configuration files

1 /* doc/example.efnet.conf - ircd-hybrid-7 EFnet Example configuration file
2 * Copyright (C) 2000-2009 Hybrid Development Team
3 *
4 * Written by ejb, wcampbel, db, leeh and others
5 * Other example configurations can be found in the source dir under
6 * etc/.
7 *
8 * $Id$
9 */
10
11 /* IMPORTANT NOTES:
12 *
13 * auth {} blocks MUST be specified in order of precedence. The first one
14 * that matches a user will be used. So place spoofs first, then specials,
15 * then general access.
16 *
17 * Shell style (#), C++ style (//) and C style comments are supported.
18 *
19 * Files may be included by either:
20 * .include "filename"
21 * .include <filename>
22 *
23 * Times/durations are written as:
24 * 12 hours 30 minutes 1 second
25 *
26 * Valid units of time:
27 * month, week, day, hour, minute, second
28 *
29 * Valid units of size:
30 * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
31 *
32 * Sizes and times may be singular or plural.
33 */
34
35 /* EFNET NOTE:
36 *
37 * This 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. (OLD M:)
47 */
48 serverinfo {
49 /*
50 * name: the name of our 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. '[' and ']' may not
64 * be used here for compatibility with older servers.
65 */
66 description = "hybrid-7 test server";
67
68 /*
69 * network info: the name and description of the network this server
70 * is on. Shown in the 005 reply and used with serverhiding.
71 */
72 network_name = "EFnet";
73 network_desc = "Eris Free Network";
74
75 /*
76 * hub: allow this server to act as a hub and have multiple servers
77 * connected to it.
78 */
79 hub = no;
80
81 /*
82 * vhost: the IP to bind to when we connect outward to ipv4 servers.
83 * This should be an ipv4 IP only, or "*" for INADDR_ANY.
84 */
85 #vhost = "192.169.0.1";
86
87 /*
88 * vhost6: the IP to bind to when we connect outward to ipv6 servers.
89 * This should be an ipv6 IP only, or "*" for INADDR_ANY.
90 */
91 #vhost6 = "3ffe:80e8:546::2";
92
93 /* max_clients: the maximum number of clients allowed to connect */
94 max_clients = 512;
95
96 /*
97 * rsa_private_key_file: the path to the file containing our
98 * rsa key for cryptlink.
99 *
100 * Example command to store a 2048 bit RSA keypair in
101 * rsa.key, and the public key in rsa.pub:
102 *
103 * openssl genrsa -out rsa.key 2048
104 * openssl rsa -in rsa.key -pubout -out rsa.pub
105 * chown <ircd-user>.<ircd.group> rsa.key rsa.pub
106 * chmod 0600 rsa.key
107 * chmod 0644 rsa.pub
108 */
109 #rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
110
111 /*
112 * ssl_certificate_file: the path to the file containing our
113 * ssl certificate for encrypted client connection.
114 *
115 * This assumes your private RSA key is stored in rsa.key. You
116 * MUST have an RSA key in order to generate the certificate
117 *
118 * openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
119 *
120 * See http://www.openssl.org/docs/HOWTO/certificates.txt
121 *
122 * Please use the following values when generating the cert
123 *
124 * Organization Name: Network Name
125 * Organization Unit Name: changme.someirc.net
126 * Common Name: irc.someirc.net
127 * E-mail: you@domain.com
128 */
129 #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
130 };
131
132 /*
133 * admin {}: contains admin information about the server. (OLD A:)
134 */
135 admin {
136 name = "EFnet Admin";
137 description = "Main Server Administrator";
138 email = "<irc-admin@efnet.irc>";
139 };
140
141 /*
142 * log {}: contains information about logfiles.
143 */
144 log {
145 /* Do you want to enable logging to ircd.log? */
146 use_logging = yes;
147
148 /*
149 * logfiles: the logfiles to use for user connects, /oper uses,
150 * and failed /oper. These files must exist for logging to be used.
151 */
152 fname_userlog = "logs/userlog";
153 fname_operlog = "logs/operlog";
154 fname_killlog = "logs/kill";
155 fname_klinelog = "logs/kline";
156 fname_glinelog = "logs/gline";
157
158 /*
159 * log_level: the amount of detail to log in ircd.log. The
160 * higher, the more information is logged. May be changed
161 * once the server is running via /quote SET LOG. Either:
162 * L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO or L_DEBUG
163 */
164 log_level = L_INFO;
165 };
166
167 /*
168 * class {}: contains information about classes for users (OLD Y:)
169 */
170 class {
171 /* name: the name of the class. classes are text now */
172 name = "users";
173
174 /*
175 * ping_time: how often a client must reply to a PING from the
176 * server before they are dropped.
177 */
178 ping_time = 90 seconds;
179
180 /*
181 * number_per_ip: how many local users are allowed to connect
182 * from one IP (optional)
183 */
184 number_per_ip = 2;
185
186 /*
187 * max_local: how many local users are allowed to connect
188 * from one ident@host (optional)
189 */
190 max_local = 2;
191
192 /*
193 * max_global: network-wide limit of users per ident@host (optional)
194 */
195 max_global = 10;
196
197 /*
198 * max_number: the maximum number of users allowed in this class (optional)
199 */
200 max_number = 100;
201
202 /*
203 * the following lines are optional and allow you to define
204 * how many users can connect from one /NN subnet
205 */
206 cidr_bitlen_ipv4 = 24;
207 cidr_bitlen_ipv6 = 120;
208 number_per_cidr = 16;
209
210 /*
211 * sendq: the amount of data allowed in a clients queue before
212 * they are dropped.
213 */
214 sendq = 100 kbytes;
215 };
216
217 class {
218 name = "opers";
219
220 /*
221 * contrary to seeming popular belief, setting ping time
222 * higher for an oper is NOT doing them a favor.
223 * Since if a link is dead its dead and it means
224 * you have to use another nick long enough to kill the old one :-)
225 * Its much better to use a fairly standard 90 second ping time
226 */
227 ping_time = 90 seconds;
228 number_per_ip = 10;
229 max_number = 100;
230 sendq = 1 mbyte;
231 };
232
233 class {
234 name = "server";
235
236 /*
237 * Same thing here. It's a fallacy to think increasing
238 * ping time for servers is a "good idea." All it leads to
239 * is "ghosting" on one end. Not a good idea.
240 */
241 ping_time = 90 seconds;
242
243 /*
244 * ping_warning: how fast a server must reply to a PING before
245 * a warning to opers is generated.
246 */
247 ping_warning = 15 seconds;
248
249 /*
250 * connectfreq: only used in server classes. Specifies the delay
251 * between autoconnecting to servers.
252 *
253 * Both comstud and I recommend 10 minutes a few years ago.
254 * 15 minutes might be right now. The reason you don't want it too
255 * low is, you make the servers reconnect too quickly with
256 * a large sendq, and they _will_ nick collide. badly. 5 minutes
257 * IS way too short.
258 */
259 connectfreq = 15 minutes;
260
261 /* max number: the amount of servers to autoconnect to */
262 max_number = 1;
263
264 /* sendq: servers need a higher sendq as they send more data */
265 sendq = 15 megabytes;
266 };
267
268 /*
269 * listen {}: contains information about the ports ircd listens on (OLD P:)
270 */
271 listen {
272 /*
273 * port: the specific port to listen on. If no host is specified
274 * before, it will listen on all available IPs.
275 *
276 * Ports are separated via a comma, a range may be specified using ".."
277 */
278
279 /* port: listen on all available IPs, ports 6665 to 6669 */
280 port = 6665 .. 6669;
281
282 /*
283 * Listen on 192.168.0.1/6697 with ssl enabled and hidden from STATS P
284 * unless you are an administrator.
285 *
286 * NOTE: The "flags" directive has to come before "port". Always!
287 *
288 * Currently available flags are:
289 *
290 * ssl - Port is for SSL client connections only
291 * server - Only server connections are permitted
292 * hidden - Port is hidden from /stats P
293 */
294 flags = hidden, ssl;
295 host = "192.168.0.1";
296 port = 6697;
297
298 /*
299 * host: set a specific IP/host the ports after the line will listen
300 * on. This may be ipv4 or ipv6.
301 */
302 host = "1.2.3.4";
303 port = 7000, 7001;
304
305 host = "3ffe:1234:a:b:c::d";
306 port = 7002;
307 };
308
309 /*
310 * auth {}: allow users to connect to the ircd (OLD I:)
311 */
312 auth {
313 /*
314 * user: the user@host allowed to connect. Multiple IPv4/IPv6 user
315 * lines are permitted per auth block.
316 */
317 user = "*@172.16.0.0/12";
318 user = "*test@123D:B567:*";
319
320 /* password: an optional password that is required to use this block */
321 password = "letmein";
322
323 /*
324 * encrypted: controls whether the auth password above has been
325 * encrypted.
326 */
327 encrypted = yes;
328
329 /*
330 * spoof: fake the users host to this. This is free-form,
331 * just do everyone a favor and don't abuse it. ('=' prefix on /stats I)
332 */
333 spoof = "I.still.hate.packets";
334
335 /* class: the class the user is placed in */
336 class = "opers";
337
338 /*
339 * need_password: don't allow users who haven't supplied the correct
340 * password to connect using another auth{} block
341 * ('&' prefix on /stats I if disabled)
342 * need_ident: require the user to have identd to connect ('+' prefix on /stats I)
343 * spoof_notice: enable spoofing notification to admins
344 * exceed_limit: allow a user to exceed class limits ('>' prefix on /stats I)
345 * kline_exempt: exempt this user from k/glines ('^' prefix on /stats I)
346 * gline_exempt: exempt this user from glines ('_' prefix on /stats I)
347 * resv_exempt: exempt this user from resvs ('$' prefix on /stats I)
348 * no_tilde: remove ~ from a user with no ident ('-' prefix on /stats I)
349 * can_flood: allow this user to exceed flood limits ('|' prefix on /stats I)
350 * can_idle: exempt this user from idle restrictions ('<' prefix on /stats I)
351 */
352 flags = need_password, spoof_notice, exceed_limit, kline_exempt,
353 gline_exempt, resv_exempt, no_tilde, can_flood, can_idle;
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. (OLD O:)
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 /* NOTE: operator "opername"{} is also supported */
386 name = "god";
387
388 /*
389 * user: the user@host required for this operator. CIDR is not
390 * supported. Multiple user="" lines are supported.
391 */
392 user = "*god@*";
393 user = "*@127.0.0.1";
394
395 /*
396 * password: the password required to oper. By default this will
397 * need to be encrypted using 'mkpasswd'. MD5 is supported.
398 */
399 password = "etcnjl8juSU1E";
400
401 /*
402 * encrypted: controls whether the oper password above has been
403 * encrypted. (OLD CRYPT_OPER_PASSWORD now optional per operator)
404 */
405 encrypted = yes;
406
407 /*
408 * rsa_public_key_file: the public key for this oper when using Challenge.
409 * A password should not be defined when this is used, see
410 * doc/challenge.txt for more information.
411 */
412 # rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
413
414 /* class: the class the oper joins when they successfully /oper */
415 class = "opers";
416
417 /*
418 * umodes: default usermodes opers get when they /oper. If defined,
419 * it will override oper_umodes settings in general {}.
420 * Available usermodes:
421 *
422 * +b - bots - See bot and drone flooding notices
423 * +c - cconn - Client connection/quit notices
424 * +C - cconn_full - Client connection/quit notices full
425 * +D - deaf - Don't receive channel messages
426 * +d - debug - See debugging notices
427 * +f - full - See I: line full notices
428 * +G - softcallerid - Server Side Ignore for users not on your channels
429 * +g - callerid - Server Side Ignore (for privmsgs etc)
430 * +i - invisible - Not shown in NAMES or WHO unless you share a
431 * a channel
432 * +k - skill - See server generated KILL messages
433 * +l - locops - See LOCOPS messages
434 * +n - nchange - See client nick changes
435 * +r - rej - See rejected client notices
436 * +s - servnotice - See general server notices
437 * +u - unauth - See unauthorized client notices
438 * +w - wallop - See server generated WALLOPS
439 * +x - external - See remote server connection and split notices
440 * +y - spy - See LINKS, STATS, TRACE notices etc.
441 * +z - operwall - See oper generated WALLOPS
442 */
443 # umodes = locops, servnotice, operwall, wallop;
444
445 /*
446 * privileges: controls the activities and commands an oper is
447 * allowed to do on the server. All options default to no.
448 * Available options:
449 *
450 * global_kill: allows remote users to be /KILL'd (OLD 'O' flag)
451 * remote: allows remote SQUIT and CONNECT (OLD 'R' flag)
452 * remoteban: allows remote KLINE/UNKLINE
453 * kline: allows KILL, KLINE and DLINE (OLD 'K' flag)
454 * unkline: allows UNKLINE and UNDLINE (OLD 'U' flag)
455 * gline: allows GLINE (OLD 'G' flag)
456 * xline: allows XLINE (OLD 'X' flag)
457 * operwall: allows OPERWALL
458 * nick_changes: allows oper to see nickchanges (OLD 'N' flag)
459 * via usermode +n
460 * rehash: allows oper to REHASH config (OLD 'H' flag)
461 * die: allows DIE and RESTART (OLD 'D' flag)
462 * admin: gives admin privileges. admins
463 * may (un)load modules and see the
464 * real IPs of servers.
465 * hidden_admin: same as 'admin', but noone can recognize you as
466 * being an admin
467 * hidden_oper: not shown in /stats p (except for other operators)
468 */
469 /* You can either use
470 * die = yes;
471 * rehash = yes;
472 *
473 * or in a flags statement i.e.
474 * flags = die, rehash;
475 *
476 * You can also negate a flag with ~ i.e.
477 * flags = ~remote;
478 *
479 */
480 flags = global_kill, remote, kline, unkline, xline,
481 die, rehash, nick_changes, admin, operwall;
482 };
483
484 /*
485 * connect {}: controls servers we connect to (OLD C:, N:, H:, L:)
486 */
487 connect {
488 /* name: the name of the server */
489 name = "irc.uplink.com";
490
491 /*
492 * host: the host or IP to connect to. If a hostname is used it
493 * must match the reverse dns of the server.
494 */
495 host = "192.168.0.1";
496
497 /*
498 * vhost: the IP to bind to when we connect outward to servers.
499 * serverinfo::vhost and serverinfo::vhost6 will be overridden
500 * by this directive.
501 */
502 vhost = "192.168.0.2";
503
504 /*
505 * passwords: the passwords we send (OLD C:) and accept (OLD N:).
506 * The remote server will have these passwords reversed.
507 */
508 send_password = "password";
509 accept_password = "anotherpassword";
510
511 /*
512 * encrypted: controls whether the accept_password above has been
513 * encrypted. (OLD CRYPT_LINK_PASSWORD now optional per connect)
514 */
515 encrypted = no;
516
517 /* port: the port to connect to this server on */
518 port = 6666;
519
520 /*
521 * hub_mask: the mask of servers that this server may hub. Multiple
522 * entries are permitted
523 */
524 hub_mask = "*";
525
526 /*
527 * leaf_mask: the mask of servers this server may not hub. Multiple
528 * entries are permitted. Useful for forbidding EU -> US -> EU routes.
529 */
530 # leaf_mask = "*.uk";
531
532 /* fakename: the servername we pretend to be when we connect */
533 # fakename = "*.arpa";
534
535 /* class: the class this server is in */
536 class = "server";
537
538 /*
539 * autoconn: controls whether we autoconnect to this server or not,
540 * dependent on class limits. By default, this is disabled.
541 * compressed: controls whether traffic is compressed via ziplinks.
542 * By default, this is disabled
543 * cryptlink: enable full encryption for all data passing between our
544 * server and this link and rsa authentication.
545 * burst_away: This will send the /away string that users have set
546 * on the server burst. Note this can be a lot of data
547 * and slow down your server burst.
548 * topicburst: Send topics to this server during channel burst. Works
549 * only if the server we are connecting to is capable
550 * of TBURST/TB.
551 */
552 # flags = autoconn, compressed, cryptlink, burst_away, topicburst;
553 };
554
555 connect {
556 name = "encrypted.auth.example";
557 host = "some.host.somewhere";
558 port = 6667;
559
560 flags = cryptlink;
561
562 /*
563 * rsa_public_key_file: the path to the public keyfile of the server.
564 * Used instead of passwords.
565 */
566 rsa_public_key_file = "etc/remote.server.keyfile";
567
568 /*
569 * cipher preference: set the preferred cipher for this link
570 *
571 * Available ciphers are:
572 * BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
573 * RC5.12/128 RC5.8/128 3DES/168 DES/56
574 *
575 * NOTE: Some ciphers may not be supported by your OpenSSL.
576 * Check the output from 'configure' for available ciphers.
577 *
578 * NOTE2: To help you decide what cipher to use, tools/encspeed
579 * will show you approximately how fast each cipher is.
580 * However, blowfish is fast and secure, and is probably
581 * a good default for most situations.
582 *
583 * NOTE3: Default if none is set is BF/128
584 *
585 * The cipher *MUST* be the same in both directions. If you
586 * set a cipher preference, your uplink must set the same cipher,
587 * else it will not link.
588 */
589 # cipher_preference = "BF/168";
590 };
591
592 /*
593 * NOTE: Don't add an extra 'name=' entry if you use
594 * the connect "name"{} feature
595 */
596 connect "ipv6.some.server" {
597 host = "3ffd:dead:beef::1";
598 send_password = "password";
599 accept_password = "password";
600 port = 6666;
601
602 /*
603 * aftype: controls whether the connection uses "ipv4" or "ipv6".
604 * Default is ipv4.
605 */
606 aftype = ipv6;
607 class = "server";
608 };
609
610 /*
611 * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
612 * automatically (OLD hyb6 SLAVE_SERVERS)
613 */
614 cluster {
615 /*
616 * name: the server to share with, this can take wildcards
617 *
618 * NOTE: only local actions will be clustered, meaning if
619 * the server receives a shared kline/unkline/etc, it
620 * will not be propagated to clustered servers.
621 *
622 * Remote servers are not necessarily required to accept
623 * clustered lines, they need a shared{} for *THIS* server
624 * in order to accept them.
625 */
626 name = "*.arpa";
627
628 /*
629 * type: list of what to share, options are as follows:
630 * kline - share klines
631 * tkline - share temporary klines
632 * unkline - share unklines
633 * xline - share xlines
634 * txline - share temporary xlines
635 * unxline - share unxlines
636 * resv - share resvs
637 * tresv - share temporary resvs
638 * unresv - share unresvs
639 * locops - share locops
640 * all - share all of the above (default)
641 */
642 type = kline, unkline, locops, xline, resv;
643 };
644
645 /*
646 * shared {}: users that are allowed to remote kline (OLD U:)
647 *
648 * NOTE: This can be effectively used for remote klines.
649 * Please note that there is no password authentication
650 * for users setting remote klines. You must also be
651 * /oper'd in order to issue a remote kline.
652 */
653 shared {
654 /*
655 * name: the server the user must be on to set klines. If this is not
656 * specified, the user will be allowed to kline from all servers.
657 */
658 name = "irc2.some.server";
659
660 /*
661 * user: the user@host mask that is allowed to set klines. If this is
662 * not specified, all users on the server above will be allowed to set
663 * a remote kline.
664 */
665 user = "oper@my.host.is.spoofed";
666
667 /*
668 * type: list of what to share, options are as follows:
669 * kline - allow oper/server to kline
670 * tkline - allow temporary klines
671 * unkline - allow oper/server to unkline
672 * xline - allow oper/server to xline
673 * txline - allow temporary xlines
674 * unxline - allow oper/server to unxline
675 * resv - allow oper/server to resv
676 * tresv - allow temporary resvs
677 * unresv - allow oper/server to unresv
678 * locops - allow oper/server to locops - only used for servers that cluster
679 * all - allow oper/server to do all of the above (default)
680 */
681 type = kline, unkline, resv;
682 };
683
684 /*
685 * kill {}: users that are not allowed to connect (OLD K:)
686 * Oper issued klines will be added to the specified kline config
687 */
688 kill {
689 user = "bad@*.hacked.edu";
690 reason = "Obviously hacked account";
691 };
692
693 kill {
694 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
695
696 /*
697 * NOTE: You have to set type=regex; when using a regular expression
698 * based user entry
699 */
700 type = regex;
701 };
702
703 /*
704 * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
705 * Oper issued dlines will be added to the specified dline config
706 */
707 deny {
708 ip = "10.0.1.0/24";
709 reason = "Reconnecting vhosted bots";
710 };
711
712 /*
713 * exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:)
714 *
715 * EFnet Note: We really suggest to enable general::stats_e_disabled
716 * if you plan to exempt EFnet server IPs you don't want to show to
717 * other operators and/or administrators through "STATS e".
718 */
719 exempt {
720 ip = "192.168.0.0/16";
721 };
722
723 /*
724 * resv {}: nicks and channels users may not use/join (OLD Q:)
725 */
726 resv {
727 /* reason: the reason for the proceeding resv's */
728 reason = "There are no services on this network";
729
730 /* resv: the nicks and channels users may not join/use */
731 nick = "nickserv";
732 nick = "chanserv";
733 nick = "operserv";
734 nick = "JUPES";
735 nick = "JUPE";
736 nick = "CH?NF?X"; # CHANFIX (services.int)
737
738 /* These are totally optional, but may be a good idea */
739 nick = "oper";
740 nick = "ircop";
741 nick = "op";
742 nick = "ident";
743 nick = "pass";
744 channel = "#jupedchan";
745
746 /* resv: wildcard masks are also supported in nicks only */
747 reason = "Clone bots";
748 nick = "clone*";
749 };
750
751 /*
752 * gecos {}: The X: replacement, used for banning users based on
753 * their "realname".
754 */
755 gecos {
756 name = "*sex*";
757 reason = "Possible spambot";
758 };
759
760 gecos {
761 name = "sub7server";
762 reason = "Trojan drone";
763 };
764
765 gecos {
766 name = "*http*";
767 reason = "Spambot";
768 };
769
770 gecos {
771 name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
772
773 /*
774 * NOTE: You have to set type=regex; when using a regular expression
775 * based name entry
776 */
777 type = regex;
778 };
779
780 /*
781 * channel {}: The channel block contains options pertaining to channels
782 */
783 channel {
784 /*
785 * disable_fake_channels: this option, if set to 'yes', will
786 * disallow clients to create or join channels that have one
787 * of the following ASCII characters in their name:
788 *
789 * 2 | bold
790 * 3 | mirc color
791 * 15 | plain text
792 * 22 | reverse
793 * 31 | underline
794 * 160 | non-breaking space
795 */
796 disable_fake_channels = yes;
797
798 /*
799 * restrict_channels: reverse channel RESVs logic, only reserved
800 * channels are allowed
801 */
802 restrict_channels = no;
803
804 /*
805 * disable_local_channels: prevent users from joining &channels.
806 */
807 disable_local_channels = no;
808
809 /*
810 * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
811 * that can join a +i channel without an invite.
812 */
813 use_invex = yes;
814
815 /*
816 * use_except: Enable/disable channel mode +e, a n!u@h list of masks
817 * that can join a channel through a ban (+b).
818 */
819 use_except = yes;
820
821 /*
822 * use_knock: Allows users to request an invite to a channel that
823 * is locked somehow (+ikl). If the channel is +p or you are banned
824 * the knock will not be sent.
825 *
826 * EFnet Note: This seems to be used mostly by European servers
827 * and not North American ones.
828 * Please feel free to disable this if you do not
829 * want to run channel knock.
830 * channel knock allows an user to "/quote knock #channel"
831 * to ask for an invite. It is typically used in eu-efnet
832 * to ask for an invite to #eu-opers.
833 * A user who is banned will not have their knock
834 * sent to channel. It is paced, so knock will not
835 * cause a flood.
836 */
837 use_knock = yes;
838
839 /*
840 * knock_delay: The amount of time a user must wait between issuing
841 * the knock command.
842 */
843 knock_delay = 5 minutes;
844
845 /*
846 * knock_delay_channel: How often a knock to any specific channel
847 * is permitted, regardless of the user sending the knock.
848 */
849 knock_delay_channel = 1 minute;
850
851 /*
852 * burst_topicwho: enable sending of who set topic on topicburst
853 * default is yes
854 */
855 burst_topicwho = yes;
856
857 /*
858 * max_chans_per_user: The maximum number of channels a user can
859 * join/be on.
860 */
861 max_chans_per_user = 25;
862
863 /* quiet_on_ban: stop banned people talking in channels. */
864 quiet_on_ban = yes;
865
866 /* max_bans: maximum number of +b/e/I modes in a channel */
867 max_bans = 100;
868
869 /*
870 * how many joins in how many seconds constitute a flood, use 0 to
871 * disable. +b opers will be notified (changeable via /set)
872 */
873 join_flood_count = 16;
874 join_flood_time = 8 seconds;
875
876 /*
877 * splitcode: The ircd will now check splitmode every few seconds.
878 *
879 * Either split users or split servers can activate splitmode, but
880 * both conditions must be met for the ircd to deactivate splitmode.
881 *
882 * You may force splitmode to be permanent by /quote set splitmode on
883 */
884
885 /*
886 * default_split_user_count: when the usercount is lower than this level,
887 * consider ourselves split. This must be set for automatic splitmode.
888 */
889 default_split_user_count = 40000;
890
891 /*
892 * default_split_server_count: when the servercount is lower than this,
893 * consider ourselves split. This must be set for automatic splitmode.
894 */
895 default_split_server_count = 10;
896
897 /* no_create_on_split: disallow users creating channels on split. */
898 no_create_on_split = yes;
899
900 /* no_join_on_split: disallow users joining channels at all on a split. */
901 no_join_on_split = no;
902 };
903
904 /*
905 * serverhide {}: The serverhide block contains the options regarding
906 * serverhiding
907 */
908 serverhide {
909 /*
910 * flatten_links: this option will show all servers in /links appear
911 * that they are linked to this current server
912 *
913 * EFnet Note: While this is not a requirement on EFnet, it
914 * may be a good idea. Except, it's useless
915 * unless the entire net runs it.
916 */
917 flatten_links = no;
918
919 /*
920 * links_delay: how often to update the links file when it is
921 * flattened.
922 */
923 links_delay = 5 minutes;
924
925 /*
926 * hidden: hide this server from a /links output on servers that
927 * support it. This allows hub servers to be hidden etc.
928 */
929 hidden = no;
930
931 /*
932 * disable_hidden: prevent servers hiding themselves from a
933 * /links output.
934 */
935 disable_hidden = no;
936
937 /*
938 * hide_servers: hide remote servernames everywhere and instead use
939 * hidden_name and network_desc.
940 */
941 hide_servers = no;
942
943 /*
944 * Use this as the servername users see if hide_servers = yes.
945 */
946 hidden_name = "*.hidden.com";
947
948 /*
949 * hide_server_ips: If this is disabled, opers will be unable to see
950 * servers ips and will be shown a masked ip, admins will be shown the
951 * real ip.
952 *
953 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
954 * it has the side effect of hiding the ips everywhere, including
955 * logfiles.
956 *
957 * We recommend you leave this disabled, and just take care with who you
958 * give admin=yes; to.
959 */
960 hide_server_ips = yes;
961 };
962
963 /*
964 * general {}: The general block contains many of the options that were once
965 * compiled in options in config.h. The general block is read at start time.
966 */
967 general {
968 /* max_watch: maximum WATCH entries a client can have. */
969 max_watch = 64;
970
971 /*
972 * gline_min_cidr: the minimum required length of a CIDR bitmask
973 * for IPv4 based glines
974 */
975 gline_min_cidr = 16;
976
977 /*
978 * gline_min_cidr6: the minimum required length of a CIDR bitmask
979 * for IPv6 based glines
980 */
981 gline_min_cidr6 = 48;
982
983 /*
984 * Whether to automatically set mode +i on connecting users.
985 */
986 invisible_on_connect = yes;
987
988 /*
989 * If you don't explicitly specify burst_away in your connect blocks, then
990 * they will default to the burst_away value below.
991 */
992 burst_away = no;
993
994 /*
995 * Show "actually using host <ip>" on /whois when possible.
996 */
997 use_whois_actually = yes;
998
999 /*
1000 * Max time from the nickname change that still causes KILL
1001 * automatically to switch for the current nick of that user. (seconds)
1002 */
1003 kill_chase_time_limit = 90;
1004
1005 /*
1006 * If hide_spoof_ips is disabled, opers will be allowed to see the real
1007 * IP of spoofed users in /trace etc. If this is defined they will be
1008 * shown a masked IP.
1009 */
1010 hide_spoof_ips = yes;
1011
1012 /*
1013 * Ignore bogus timestamps from other servers. Yes, this will desync
1014 * the network, but it will allow chanops to resync with a valid non TS 0
1015 *
1016 * This should be enabled network wide, or not at all.
1017 */
1018 ignore_bogus_ts = no;
1019
1020 /*
1021 * disable_auth: completely disable ident lookups; if you enable this,
1022 * be careful of what you set need_ident to in your auth {} blocks
1023 */
1024 disable_auth = no;
1025
1026 /* disable_remote_commands: disable users doing commands on remote servers */
1027 disable_remote_commands = no;
1028
1029 /*
1030 * tkline_expire_notices: enables or disables temporary kline/xline
1031 * expire notices.
1032 */
1033 tkline_expire_notices = no;
1034
1035 /*
1036 * default_floodcount: the default value of floodcount that is configurable
1037 * via /quote set floodcount. This is the amount of lines a user
1038 * may send to any other user/channel in one second.
1039 */
1040 default_floodcount = 10;
1041
1042 /*
1043 * failed_oper_notice: send a notice to all opers on the server when
1044 * someone tries to OPER and uses the wrong password, host or ident.
1045 */
1046 failed_oper_notice = yes;
1047
1048 /*
1049 * dots_in_ident: the amount of '.' characters permitted in an ident
1050 * reply before the user is rejected.
1051 */
1052 dots_in_ident = 2;
1053
1054 /*
1055 * dot_in_ip6_addr: ircd-hybrid-6.0 and earlier will disallow hosts
1056 * without a '.' in them. This will add one to the end. Only needed
1057 * for older servers.
1058 */
1059 dot_in_ip6_addr = no;
1060
1061 /*
1062 * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1063 * placed via the server. klines hand placed are exempt from limits.
1064 * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1065 */
1066 min_nonwildcard = 3;
1067
1068 /*
1069 * min_nonwildcard_simple: the minimum non wildcard characters in
1070 * gecos bans. wildcard chars: '*' '?' '#'
1071 */
1072 min_nonwildcard_simple = 3;
1073
1074 /* max_accept: maximum allowed /accept's for +g usermode */
1075 max_accept = 20;
1076
1077 /* anti_nick_flood: enable the nickflood control code */
1078 anti_nick_flood = yes;
1079
1080 /* nick flood: the nick changes allowed in the specified period */
1081 max_nick_time = 20 seconds;
1082 max_nick_changes = 5;
1083
1084 /*
1085 * anti_spam_exit_message_time: the minimum time a user must be connected
1086 * before custom quit messages are allowed.
1087 */
1088 anti_spam_exit_message_time = 5 minutes;
1089
1090 /*
1091 * ts delta: the time delta allowed between server clocks before
1092 * a warning is given, or before the link is dropped. all servers
1093 * should run ntpdate/rdate to keep clocks in sync
1094 */
1095 ts_warn_delta = 30 seconds;
1096 ts_max_delta = 5 minutes;
1097
1098 /*
1099 * kline_with_reason: show the user the reason why they are k/d/glined
1100 * on exit. May give away who set k/dline when set via tcm.
1101 */
1102 kline_with_reason = yes;
1103
1104 /*
1105 * kline_reason: show this message to users on channel
1106 * instead of the oper reason.
1107 */
1108 kline_reason = "Connection closed";
1109
1110 /*
1111 * reject_hold_time: wait this amount of time before disconnecting
1112 * a rejected client. Use 0 to disable.
1113 */
1114 reject_hold_time = 30 seconds;
1115
1116 /*
1117 * warn_no_nline: warn opers about servers that try to connect but
1118 * we don't have a connect {} block for. Twits with misconfigured
1119 * servers can get really annoying with this enabled.
1120 */
1121 warn_no_nline = yes;
1122
1123 /*
1124 * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1125 * operators and administrators. Doing so is a good idea in case
1126 * there are any exempted (exempt{}) server IPs you don't want to
1127 * see leaked.
1128 */
1129 stats_e_disabled = no;
1130
1131 /* stats_o_oper only: make stats o (opers) oper only */
1132 stats_o_oper_only = yes;
1133
1134 /* stats_P_oper_only: make stats P (ports) oper only */
1135 stats_P_oper_only = yes;
1136
1137 /*
1138 * stats i oper only: make stats i (auth {}) oper only. set to:
1139 * yes: show users no auth blocks, made oper only.
1140 * masked: show users first matching auth block
1141 * no: show users all auth blocks.
1142 */
1143 stats_i_oper_only = yes;
1144
1145 /*
1146 * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1147 * yes: show users no auth blocks, made oper only
1148 * masked: show users first matching auth block
1149 * no: show users all auth blocks.
1150 */
1151 stats_k_oper_only = yes;
1152
1153 /*
1154 * caller_id_wait: time between notifying a +g user that somebody
1155 * is messaging them.
1156 */
1157 caller_id_wait = 1 minute;
1158
1159 /*
1160 * opers_bypass_callerid: allows operators to bypass +g and message
1161 * anyone who has it set (useful if you use services).
1162 */
1163 opers_bypass_callerid = no;
1164
1165 /*
1166 * pace_wait_simple: time between use of less intensive commands
1167 * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1168 */
1169 pace_wait_simple = 1 second;
1170
1171 /*
1172 * pace_wait: time between more intensive commands
1173 * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1174 */
1175 pace_wait = 10 seconds;
1176
1177 /*
1178 * short_motd: send clients a notice telling them to read the motd
1179 * instead of forcing a motd to clients who may simply ignore it.
1180 */
1181 short_motd = no;
1182
1183 /*
1184 * ping_cookie: require clients to respond exactly to a ping command,
1185 * can help block certain types of drones and FTP PASV mode spoofing.
1186 */
1187 ping_cookie = no;
1188
1189 /* no_oper_flood: increase flood limits for opers. */
1190 no_oper_flood = yes;
1191
1192 /*
1193 * true_no_oper_flood: completely eliminate flood limits for opers
1194 * and for clients with can_flood = yes in their auth {} blocks
1195 */
1196 true_no_oper_flood = yes;
1197
1198 /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1199 oper_pass_resv = yes;
1200
1201 /*
1202 * idletime: the maximum amount of time a user may idle before
1203 * they are disconnected
1204 */
1205 idletime = 0;
1206
1207 /* REMOVE ME. The following line checks you've been reading. */
1208 havent_read_conf = 1;
1209
1210 /*
1211 * max_targets: the maximum amount of targets in a single
1212 * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1213 */
1214 max_targets = 4;
1215
1216 /*
1217 * client_flood: maximum amount of data in a clients queue before
1218 * they are dropped for flooding.
1219 */
1220 client_flood = 2560 bytes;
1221
1222 /*
1223 * message_locale: the default message locale
1224 * Use "standard" for the compiled in defaults.
1225 * To install the translated messages, go into messages/ in the
1226 * source directory and run `make install'.
1227 */
1228 message_locale = "standard";
1229
1230 /*
1231 * usermodes configurable: a list of usermodes for the options below
1232 *
1233 * +b - bots - See bot and drone flooding notices
1234 * +c - cconn - Client connection/quit notices
1235 * +C - cconn_full - Client connection/quit notices full
1236 * +D - deaf - Don't receive channel messages
1237 * +d - debug - See debugging notices
1238 * +f - full - See I: line full notices
1239 * +G - softcallerid - Server Side Ignore for users not on your channels
1240 * +g - callerid - Server Side Ignore (for privmsgs etc)
1241 * +i - invisible - Not shown in NAMES or WHO unless you share a
1242 * a channel
1243 * +k - skill - See server generated KILL messages
1244 * +l - locops - See LOCOPS messages
1245 * +n - nchange - See client nick changes
1246 * +r - rej - See rejected client notices
1247 * +s - servnotice - See general server notices
1248 * +u - unauth - See unauthorized client notices
1249 * +w - wallop - See server generated WALLOPS
1250 * +x - external - See remote server connection and split notices
1251 * +y - spy - See LINKS, STATS, TRACE notices etc.
1252 * +z - operwall - See oper generated WALLOPS
1253 */
1254
1255 /* oper_only_umodes: usermodes only opers may set */
1256 oper_only_umodes = bots, cconn, cconn_full, debug, full, skill,
1257 nchange, rej, spy, external, operwall,
1258 locops, unauth;
1259
1260 /* oper_umodes: default usermodes opers get when they /oper */
1261 oper_umodes = bots, locops, servnotice, operwall, wallop;
1262
1263 /*
1264 * servlink_path: path to 'servlink' program used by ircd to handle
1265 * encrypted/compressed server <-> server links.
1266 *
1267 * only define if servlink is not in same directory as ircd itself.
1268 */
1269 #servlink_path = "/usr/local/ircd/bin/servlink";
1270
1271 /*
1272 * default_cipher_preference: default cipher to use for cryptlink when none is
1273 * specified in connect block.
1274 */
1275 #default_cipher_preference = "BF/168";
1276
1277 /*
1278 * use_egd: if your system does not have *random devices yet you
1279 * want to use OpenSSL and encrypted links, enable this. Beware -
1280 * EGD is *very* CPU intensive when gathering data for its pool
1281 */
1282 # use_egd = yes;
1283
1284 /*
1285 * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1286 * which automatically finds the path.
1287 */
1288 # egdpool_path = "/var/run/egd-pool";
1289
1290
1291 /*
1292 * compression_level: level of compression for compressed links between
1293 * servers.
1294 *
1295 * values are between: 1 (least compression, fastest)
1296 * and: 9 (most compression, slowest).
1297 */
1298 # compression_level = 6;
1299
1300 /*
1301 * throttle_time: the minimum amount of time between connections from
1302 * the same ip. exempt {} blocks are excluded from this throttling.
1303 * Offers protection against flooders who reconnect quickly.
1304 * Set to 0 to disable.
1305 */
1306 throttle_time = 0;
1307 };
1308
1309 glines {
1310 /*
1311 * EFnet Note: This feature is required for European EFnet servers
1312 * and is used by several North American servers. As
1313 * such, it has been left on by default. If you
1314 * do not want your server to participate in G:Lines
1315 * you should disable this.
1316 */
1317
1318 /* enable: enable glines, network wide temp klines */
1319 enable = yes;
1320
1321 /*
1322 * duration: the amount of time a gline will remain on your
1323 * server before expiring
1324 */
1325 duration = 1 day;
1326
1327 /*
1328 * logging: which types of rules you want to log when triggered
1329 * (choose reject or block)
1330 */
1331 logging = reject, block;
1332
1333 /*
1334 * NOTE: gline ACLs can cause a desync of glines throughout the
1335 * network, meaning some servers may have a gline triggered, and
1336 * others may not. Also, you only need insert rules for glines
1337 * that you want to block and/or reject. If you want to accept and
1338 * propagate the gline, do NOT put a rule for it.
1339 */
1340
1341 /* user@host for rule to apply to */
1342 user = "god@I.still.hate.packets";
1343 /* server for rule to apply to */
1344 name = "hades.arpa";
1345
1346 /*
1347 * action: action to take when a matching gline is found. options are:
1348 * reject - do not apply the gline locally
1349 * block - do not propagate the gline
1350 */
1351 action = reject, block;
1352
1353 user = "god@*";
1354 name = "*";
1355 action = block;
1356 };
1357
1358 modules {
1359 /*
1360 * path: other paths to search for modules specified below
1361 * and in /modload.
1362 */
1363 path = "@LIBDIR@/modules";
1364 path = "@LIBDIR@/modules/autoload";
1365
1366 /* module: the name of a module to load on startup/rehash */
1367 #module = "some_module.so";
1368 };

Properties

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

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