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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1303 - (show annotations)
Fri Mar 23 10:52:19 2012 UTC (10 years, 8 months ago) by michael
File size: 34130 byte(s)
- Implement basic tls connections for server-server links

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

Properties

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

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