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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1324 - (show annotations)
Fri Mar 30 21:40:38 2012 UTC (8 years, 4 months ago) by michael
File size: 34796 byte(s)
- Remove log::timestamp configuration directive. Timestamps are now enabled by default.
- Timestamps are iso8601 now

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

Properties

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

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