ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/etc/example.conf
Revision: 331
Committed: Sun Dec 25 11:03:27 2005 UTC (20 years, 7 months ago) by michael
File size: 35284 byte(s)
Log Message:
- Updated example confs to reflect topicburst config option

File Contents

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

Properties

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