ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/etc/example.conf
Revision: 30
Committed: Sun Oct 2 20:03:27 2005 UTC (18 years, 5 months ago) by adx
File size: 33621 byte(s)
Log Message:
- imported sources
- can be moved later according to the directory/branching scheme,
  but we need the svn up

File Contents

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

Properties

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