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

Annotation of /ircd-hybrid/etc/example.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 757 - (hide annotations)
Fri Aug 18 10:41:40 2006 UTC (14 years, 3 months ago) by michael
File size: 35221 byte(s)
- Updated example.conf

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

Properties

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

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