ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.conf
Revision: 1250
Committed: Sat Oct 1 10:48:16 2011 UTC (12 years, 6 months ago) by michael
Original Path: ircd-hybrid-8/etc/example.conf
File size: 36452 byte(s)
Log Message:
- A file size of 'unlimited' can now be specified for log files

File Contents

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

Properties

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