ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/etc/example.conf
Revision: 584
Committed: Sun May 7 15:26:45 2006 UTC (17 years, 11 months ago) by michael
File size: 35662 byte(s)
Log Message:
- Added new general::stats_e_disabled configuration option.  Known from RB,
  all it does is to disable "STATS e", which is a good idea if you have any
  exempted server ips.
- Updated RELNOTES

File Contents

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

Properties

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