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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

Properties

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

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