ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.conf
Revision: 1294
Committed: Wed Feb 22 20:48:30 2012 UTC (12 years, 1 month ago) by michael
Original Path: ircd-hybrid-8/etc/example.conf
File size: 36115 byte(s)
Log Message:
- Add user mode +H which simply hides operator status to other users.
  This solution replaces current method of hidding operator status where the
  admin mode is not sent to other servers unless hidden_administrator is disabled.
- m_who() now takes care whether an operator is hidden or not

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     name = "god";
343    
344     /*
345 michael 1285 * user: the user@host required for this operator. Multiple
346     * user="" lines are supported.
347 db 897 */
348 michael 1285 user = "*god@192.168.0.0/16";
349     user = "*@127.0.0.0/8";
350 db 897
351     /*
352     * password: the password required to oper. By default this will
353 michael 1070 * need to be encrypted by using the provided mkpasswd tool.
354     * Several password hash algorithms are available depending
355     * on your system's crypt() implementation. For example, a modern
356     * glibc already has support for SHA-256/512, and MD5 encryption
357     * algorithms.
358 db 897 */
359 michael 1070 password = "$5$x5zof8qe.Yc7/bPp$5zIg1Le2Lsgd4CvOjaD20pr5PmcfD7ha/9b2.TaUyG4";
360 db 897
361     /*
362     * encrypted: controls whether the oper password above has been
363 michael 1070 * encrypted.
364 db 897 */
365     encrypted = yes;
366    
367     /*
368     * rsa_public_key_file: the public key for this oper when using Challenge.
369     * A password should not be defined when this is used, see
370     * doc/challenge.txt for more information.
371     */
372     # rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
373    
374     /* class: the class the oper joins when they successfully /oper */
375     class = "opers";
376    
377     /*
378     * umodes: default usermodes opers get when they /oper. If defined,
379     * it will override oper_umodes settings in general {}.
380     * Available usermodes:
381     *
382     * +b - bots - See bot and drone flooding notices
383     * +c - cconn - Client connection/quit notices
384 michael 951 * +C - cconn_full - Client connection/quit notices full
385 db 897 * +D - deaf - Don't receive channel messages
386     * +d - debug - See debugging notices
387     * +f - full - See I: line full notices
388     * +G - softcallerid - Server Side Ignore for users not on your channels
389     * +g - callerid - Server Side Ignore (for privmsgs etc)
390 michael 1294 * +H - hidden - Hides operator status to other users
391 db 897 * +i - invisible - Not shown in NAMES or WHO unless you share a
392     * a channel
393 michael 1290 * +j - rej - See rejected client notices
394 db 897 * +k - skill - See server generated KILL messages
395     * +l - locops - See LOCOPS messages
396     * +n - nchange - See client nick changes
397     * +s - servnotice - See general server notices
398     * +u - unauth - See unauthorized client notices
399     * +w - wallop - See server generated WALLOPS
400     * +x - external - See remote server connection and split notices
401     * +y - spy - See LINKS, STATS, TRACE notices etc.
402     * +z - operwall - See oper generated WALLOPS
403     */
404     # umodes = locops, servnotice, operwall, wallop;
405    
406     /*
407     * privileges: controls the activities and commands an oper is
408 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 db 897 */
428 michael 1228 flags = global_kill, remote, kline, unkline, xline, globops, restart,
429     die, rehash, nick_changes, admin, operwall, module;
430 db 897 };
431    
432 michael 1157 service {
433     name = "service.someserver";
434     name = "stats.someserver;
435     };
436    
437 db 897 /*
438 michael 1229 * connect {}: controls servers we connect to
439 db 897 */
440     connect {
441     /* name: the name of the server */
442     name = "irc.uplink.com";
443    
444     /*
445     * host: the host or IP to connect to. If a hostname is used it
446     * must match the reverse dns of the server.
447     */
448     host = "192.168.0.1";
449    
450     /*
451     * vhost: the IP to bind to when we connect outward to servers.
452     * serverinfo::vhost and serverinfo::vhost6 will be overridden
453     * by this directive.
454     */
455     vhost = "192.168.0.2";
456    
457     /*
458     * passwords: the passwords we send (OLD C:) and accept (OLD N:).
459     * The remote server will have these passwords reversed.
460     */
461     send_password = "password";
462     accept_password = "anotherpassword";
463    
464     /*
465     * encrypted: controls whether the accept_password above has been
466 michael 1070 * encrypted.
467 db 897 */
468     encrypted = no;
469    
470     /* port: the port to connect to this server on */
471     port = 6666;
472    
473     /*
474     * hub_mask: the mask of servers that this server may hub. Multiple
475     * entries are permitted
476     */
477     hub_mask = "*";
478    
479     /*
480     * leaf_mask: the mask of servers this server may not hub. Multiple
481     * entries are permitted. Useful for forbidding EU -> US -> EU routes.
482     */
483     # leaf_mask = "*.uk";
484    
485     /* class: the class this server is in */
486     class = "server";
487    
488     /*
489 michael 1229 * autoconn - controls whether we autoconnect to this server or not,
490     * dependent on class limits. By default, this is disabled.
491     * compressed - controls whether traffic is compressed via ziplinks.
492 db 897 * By default, this is disabled
493 michael 1229 * cryptlink - enable full encryption for all data passing between our
494 db 897 * server and this link and rsa authentication.
495 michael 1229 * burst_away - This will send the /away string that users have set
496 db 897 * on the server burst. Note this can be a lot of data
497     * and slow down your server burst.
498 michael 1229 * topicburst - Send topics to this server during channel burst. Works
499 db 897 * only if the server we are connecting to is capable
500     * of TBURST/TB.
501     */
502     # flags = autoconn, compressed, cryptlink, burst_away, topicburst;
503     };
504    
505     connect {
506     name = "encrypted.auth.example";
507     host = "some.host.somewhere";
508     port = 6667;
509    
510     flags = cryptlink;
511    
512     /*
513     * rsa_public_key_file: the path to the public keyfile of the server.
514     * Used instead of passwords.
515     */
516     rsa_public_key_file = "etc/remote.server.keyfile";
517    
518     /*
519     * cipher preference: set the preferred cipher for this link
520     *
521     * Available ciphers are:
522     * BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
523     * RC5.12/128 RC5.8/128 3DES/168 DES/56
524     *
525     * NOTE: Some ciphers may not be supported by your OpenSSL.
526     * Check the output from 'configure' for available ciphers.
527     *
528     * NOTE2: To help you decide what cipher to use, tools/encspeed
529     * will show you approximately how fast each cipher is.
530     * However, blowfish is fast and secure, and is probably
531     * a good default for most situations.
532     *
533     * NOTE3: Default if none is set is BF/128
534     *
535     * The cipher *MUST* be the same in both directions. If you
536     * set a cipher preference, your uplink must set the same cipher,
537     * else it will not link.
538     */
539     # cipher_preference = "BF/168";
540     };
541    
542 michael 1285 connect {
543     name = "ipv6.some.server";
544 db 897 host = "3ffd:dead:beef::1";
545     send_password = "password";
546     accept_password = "password";
547     port = 6666;
548    
549     /*
550     * aftype: controls whether the connection uses "ipv4" or "ipv6".
551     * Default is ipv4.
552     */
553     aftype = ipv6;
554     class = "server";
555     };
556    
557     /*
558     * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
559 michael 1229 * automatically
560 db 897 */
561     cluster {
562     /*
563     * name: the server to share with, this can take wildcards
564     *
565     * NOTE: only local actions will be clustered, meaning if
566     * the server receives a shared kline/unkline/etc, it
567     * will not be propagated to clustered servers.
568     *
569     * Remote servers are not necessarily required to accept
570     * clustered lines, they need a shared{} for *THIS* server
571     * in order to accept them.
572     */
573     name = "*.arpa";
574    
575     /*
576     * type: list of what to share, options are as follows:
577     * kline - share klines
578     * tkline - share temporary klines
579     * unkline - share unklines
580     * xline - share xlines
581     * txline - share temporary xlines
582     * unxline - share unxlines
583     * resv - share resvs
584     * tresv - share temporary resvs
585     * unresv - share unresvs
586     * locops - share locops
587     * all - share all of the above (default)
588     */
589     type = kline, unkline, locops, xline, resv;
590     };
591    
592     /*
593 michael 1229 * shared {}: users that are allowed to remote kline
594 db 897 *
595     * NOTE: This can be effectively used for remote klines.
596     * Please note that there is no password authentication
597     * for users setting remote klines. You must also be
598     * /oper'd in order to issue a remote kline.
599     */
600     shared {
601     /*
602     * name: the server the user must be on to set klines. If this is not
603     * specified, the user will be allowed to kline from all servers.
604     */
605     name = "irc2.some.server";
606    
607     /*
608     * user: the user@host mask that is allowed to set klines. If this is
609     * not specified, all users on the server above will be allowed to set
610     * a remote kline.
611     */
612     user = "oper@my.host.is.spoofed";
613    
614     /*
615     * type: list of what to share, options are as follows:
616     * kline - allow oper/server to kline
617     * tkline - allow temporary klines
618     * unkline - allow oper/server to unkline
619     * xline - allow oper/server to xline
620     * txline - allow temporary xlines
621     * unxline - allow oper/server to unxline
622     * resv - allow oper/server to resv
623     * tresv - allow temporary resvs
624     * unresv - allow oper/server to unresv
625     * locops - allow oper/server to locops - only used for servers that cluster
626     * all - allow oper/server to do all of the above (default)
627     */
628     type = kline, unkline, resv;
629     };
630    
631     /*
632 michael 1229 * kill {}: users that are not allowed to connect
633 db 897 * Oper issued klines will be added to the specified kline config
634     */
635     kill {
636     user = "bad@*.hacked.edu";
637     reason = "Obviously hacked account";
638     };
639    
640     kill {
641 michael 951 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
642    
643     /*
644     * NOTE: You have to set type=regex; when using a regular expression
645     * based user entry
646     */
647 db 897 type = regex;
648     };
649    
650     /*
651     * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
652     * Oper issued dlines will be added to the specified dline config
653     */
654     deny {
655     ip = "10.0.1.0/24";
656     reason = "Reconnecting vhosted bots";
657     };
658    
659     /*
660 michael 1229 * exempt {}: IPs that are exempt from deny {} and Dlines
661 db 897 */
662     exempt {
663     ip = "192.168.0.0/16";
664     };
665    
666     /*
667 michael 1229 * resv {}: nicks and channels users may not use/join
668 db 897 */
669     resv {
670     /* reason: the reason for the proceeding resv's */
671 michael 1157 reason = "Reserved for services";
672 db 897
673     /* resv: the nicks and channels users may not join/use */
674 michael 1217 nick = "Global";
675     nick = "DevNull";
676     nick = "Services";
677     nick = "StatServ";
678     nick = "HostServ";
679 michael 1157 nick = "NickServ";
680     nick = "ChanServ";
681     nick = "MemoServ";
682     nick = "OperServ";
683 db 897 channel = "#services";
684    
685     /* resv: wildcard masks are also supported in nicks only */
686     reason = "Clone bots";
687     nick = "clone*";
688     };
689    
690     /*
691     * gecos {}: The X: replacement, used for banning users based on
692     * their "realname".
693     */
694     gecos {
695     name = "*sex*";
696     reason = "Possible spambot";
697     };
698    
699     gecos {
700     name = "sub7server";
701     reason = "Trojan drone";
702     };
703    
704     gecos {
705     name = "*http*";
706     reason = "Spambot";
707     };
708    
709     gecos {
710     name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
711 michael 951
712     /*
713     * NOTE: You have to set type=regex; when using a regular expression
714     * based name entry
715     */
716 db 897 type = regex;
717     };
718    
719     /*
720     * channel {}: The channel block contains options pertaining to channels
721     */
722     channel {
723     /*
724     * disable_fake_channels: this option, if set to 'yes', will
725     * disallow clients to create or join channels that have one
726     * of the following ASCII characters in their name:
727     *
728     * 2 | bold
729     * 3 | mirc color
730 michael 951 * 15 | plain text
731 db 897 * 22 | reverse
732     * 31 | underline
733     * 160 | non-breaking space
734     */
735     disable_fake_channels = yes;
736    
737     /*
738     * restrict_channels: reverse channel RESVs logic, only reserved
739     * channels are allowed
740     */
741     restrict_channels = no;
742    
743     /*
744     * disable_local_channels: prevent users from joining &channels.
745     */
746     disable_local_channels = no;
747    
748     /*
749     * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
750     * that can join a +i channel without an invite.
751     */
752     use_invex = yes;
753    
754     /*
755     * use_except: Enable/disable channel mode +e, a n!u@h list of masks
756     * that can join a channel through a ban (+b).
757     */
758     use_except = yes;
759    
760     /*
761     * use_knock: Allows users to request an invite to a channel that
762     * is locked somehow (+ikl). If the channel is +p or you are banned
763     * the knock will not be sent.
764     */
765     use_knock = yes;
766    
767     /*
768     * knock_delay: The amount of time a user must wait between issuing
769     * the knock command.
770     */
771 michael 951 knock_delay = 5 minutes;
772 db 897
773     /*
774     * knock_delay_channel: How often a knock to any specific channel
775     * is permitted, regardless of the user sending the knock.
776     */
777     knock_delay_channel = 1 minute;
778    
779     /*
780     * burst_topicwho: enable sending of who set topic on topicburst
781     * default is yes
782     */
783     burst_topicwho = yes;
784    
785     /*
786     * max_chans_per_user: The maximum number of channels a user can
787     * join/be on.
788     */
789     max_chans_per_user = 25;
790    
791     /* quiet_on_ban: stop banned people talking in channels. */
792     quiet_on_ban = yes;
793    
794     /* max_bans: maximum number of +b/e/I modes in a channel */
795     max_bans = 25;
796    
797     /*
798     * how many joins in how many seconds constitute a flood, use 0 to
799     * disable. +b opers will be notified (changeable via /set)
800     */
801     join_flood_count = 16;
802     join_flood_time = 8 seconds;
803    
804     /*
805     * splitcode: The ircd will now check splitmode every few seconds.
806     *
807     * Either split users or split servers can activate splitmode, but
808     * both conditions must be met for the ircd to deactivate splitmode.
809     *
810     * You may force splitmode to be permanent by /quote set splitmode on
811     */
812    
813     /*
814     * default_split_user_count: when the usercount is lower than this level,
815     * consider ourselves split. This must be set for automatic splitmode.
816     */
817     default_split_user_count = 0;
818    
819     /*
820     * default_split_server_count: when the servercount is lower than this,
821     * consider ourselves split. This must be set for automatic splitmode.
822     */
823     default_split_server_count = 0;
824    
825 michael 959 /* no_create_on_split: disallow users creating channels on split. */
826 db 897 no_create_on_split = yes;
827    
828 michael 959 /* no_join_on_split: disallow users joining channels at all on a split. */
829 db 897 no_join_on_split = no;
830     };
831    
832     /*
833     * serverhide {}: The serverhide block contains the options regarding
834     * serverhiding
835     */
836     serverhide {
837     /*
838     * flatten_links: this option will show all servers in /links appear
839     * that they are linked to this current server
840     */
841     flatten_links = no;
842    
843     /*
844     * links_delay: how often to update the links file when it is
845     * flattened.
846     */
847     links_delay = 5 minutes;
848    
849     /*
850     * hidden: hide this server from a /links output on servers that
851     * support it. This allows hub servers to be hidden etc.
852     */
853     hidden = no;
854    
855     /*
856     * disable_hidden: prevent servers hiding themselves from a
857     * /links output.
858     */
859     disable_hidden = no;
860    
861     /*
862     * hide_servers: hide remote servernames everywhere and instead use
863     * hidden_name and network_desc.
864     */
865     hide_servers = no;
866    
867     /*
868     * Use this as the servername users see if hide_servers = yes.
869     */
870     hidden_name = "*.hidden.com";
871    
872     /*
873 michael 951 * hide_server_ips: If this is disabled, opers will be unable to see
874     * servers ips and will be shown a masked ip, admins will be shown the
875     * real ip.
876 db 897 *
877 michael 951 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
878     * it has the side effect of hiding the ips everywhere, including
879     * logfiles.
880 db 897 *
881     * We recommend you leave this disabled, and just take care with who you
882     * give admin=yes; to.
883     */
884     hide_server_ips = no;
885     };
886    
887     /*
888     * general {}: The general block contains many of the options that were once
889     * compiled in options in config.h. The general block is read at start time.
890     */
891     general {
892 michael 1157 /* services_name: servername of nick/channel services */
893     services_name = "service.someserver";
894    
895 michael 951 /* max_watch: maximum WATCH entries a client can have. */
896 michael 1070 max_watch = 60;
897 db 897
898     /*
899     * gline_min_cidr: the minimum required length of a CIDR bitmask
900     * for IPv4 based glines
901     */
902     gline_min_cidr = 16;
903    
904     /*
905     * gline_min_cidr6: the minimum required length of a CIDR bitmask
906     * for IPv6 based glines
907     */
908     gline_min_cidr6 = 48;
909    
910     /*
911     * Whether to automatically set mode +i on connecting users.
912     */
913     invisible_on_connect = yes;
914    
915     /*
916     * Show "actually using host <ip>" on /whois when possible.
917     */
918     use_whois_actually = yes;
919    
920     /*
921     * Max time from the nickname change that still causes KILL
922 michael 1074 * automatically to switch for the current nick of that user.
923 db 897 */
924 michael 1074 kill_chase_time_limit = 90 seconds;
925 db 897
926     /*
927 michael 1228 * If hide_spoof_ips is disabled, opers will be allowed to see the real
928     * IP of spoofed users in /trace etc. If this is defined they will be
929     * shown a masked IP.
930 db 897 */
931     hide_spoof_ips = yes;
932    
933     /*
934     * Ignore bogus timestamps from other servers. Yes, this will desync
935     * the network, but it will allow chanops to resync with a valid non TS 0
936     *
937     * This should be enabled network wide, or not at all.
938     */
939     ignore_bogus_ts = no;
940    
941     /*
942     * disable_auth: completely disable ident lookups; if you enable this,
943     * be careful of what you set need_ident to in your auth {} blocks
944     */
945     disable_auth = no;
946    
947     /* disable_remote_commands: disable users doing commands on remote servers */
948     disable_remote_commands = no;
949    
950     /*
951     * tkline_expire_notices: enables or disables temporary kline/xline
952     * expire notices.
953     */
954     tkline_expire_notices = no;
955    
956     /*
957     * default_floodcount: the default value of floodcount that is configurable
958     * via /quote set floodcount. This is the amount of lines a user
959     * may send to any other user/channel in one second.
960     */
961     default_floodcount = 10;
962    
963     /*
964     * failed_oper_notice: send a notice to all opers on the server when
965     * someone tries to OPER and uses the wrong password, host or ident.
966     */
967     failed_oper_notice = yes;
968    
969     /*
970     * dots_in_ident: the amount of '.' characters permitted in an ident
971     * reply before the user is rejected.
972     */
973     dots_in_ident = 2;
974    
975     /*
976     * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
977     * placed via the server. klines hand placed are exempt from limits.
978     * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
979     */
980     min_nonwildcard = 4;
981    
982     /*
983     * min_nonwildcard_simple: the minimum non wildcard characters in
984     * gecos bans. wildcard chars: '*' '?' '#'
985     */
986     min_nonwildcard_simple = 3;
987    
988     /* max_accept: maximum allowed /accept's for +g usermode */
989     max_accept = 20;
990    
991     /* anti_nick_flood: enable the nickflood control code */
992     anti_nick_flood = yes;
993    
994     /* nick flood: the nick changes allowed in the specified period */
995     max_nick_time = 20 seconds;
996     max_nick_changes = 5;
997    
998     /*
999     * anti_spam_exit_message_time: the minimum time a user must be connected
1000     * before custom quit messages are allowed.
1001     */
1002     anti_spam_exit_message_time = 5 minutes;
1003    
1004     /*
1005     * ts delta: the time delta allowed between server clocks before
1006     * a warning is given, or before the link is dropped. all servers
1007     * should run ntpdate/rdate to keep clocks in sync
1008     */
1009     ts_warn_delta = 30 seconds;
1010     ts_max_delta = 5 minutes;
1011    
1012     /*
1013     * kline_with_reason: show the user the reason why they are k/d/glined
1014     * on exit. May give away who set k/dline when set via tcm.
1015     */
1016     kline_with_reason = yes;
1017    
1018     /*
1019     * kline_reason: show this message to users on channel
1020     * instead of the oper reason.
1021     */
1022     kline_reason = "Connection closed";
1023    
1024     /*
1025     * reject_hold_time: wait this amount of time before disconnecting
1026     * a rejected client. Use 0 to disable.
1027     */
1028     reject_hold_time = 0;
1029    
1030     /*
1031     * warn_no_nline: warn opers about servers that try to connect but
1032     * we don't have a connect {} block for. Twits with misconfigured
1033     * servers can get really annoying with this enabled.
1034     */
1035     warn_no_nline = yes;
1036    
1037     /*
1038     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1039     * operators and administrators. Doing so is a good idea in case
1040     * there are any exempted (exempt{}) server IPs you don't want to
1041     * see leaked.
1042     */
1043     stats_e_disabled = no;
1044    
1045     /* stats_o_oper only: make stats o (opers) oper only */
1046     stats_o_oper_only = yes;
1047    
1048     /* stats_P_oper_only: make stats P (ports) oper only */
1049     stats_P_oper_only = yes;
1050    
1051     /*
1052     * stats i oper only: make stats i (auth {}) oper only. set to:
1053     * yes: show users no auth blocks, made oper only.
1054     * masked: show users first matching auth block
1055     * no: show users all auth blocks.
1056     */
1057     stats_i_oper_only = yes;
1058    
1059     /*
1060     * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1061     * yes: show users no auth blocks, made oper only
1062     * masked: show users first matching auth block
1063     * no: show users all auth blocks.
1064     */
1065     stats_k_oper_only = yes;
1066    
1067     /*
1068     * caller_id_wait: time between notifying a +g user that somebody
1069     * is messaging them.
1070     */
1071     caller_id_wait = 1 minute;
1072    
1073     /*
1074     * opers_bypass_callerid: allows operators to bypass +g and message
1075     * anyone who has it set (useful if you use services).
1076     */
1077     opers_bypass_callerid = no;
1078    
1079     /*
1080     * pace_wait_simple: time between use of less intensive commands
1081     * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1082     */
1083     pace_wait_simple = 1 second;
1084    
1085     /*
1086     * pace_wait: time between more intensive commands
1087     * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1088     */
1089     pace_wait = 10 seconds;
1090    
1091     /*
1092     * short_motd: send clients a notice telling them to read the motd
1093     * instead of forcing a motd to clients who may simply ignore it.
1094     */
1095     short_motd = no;
1096    
1097     /*
1098     * ping_cookie: require clients to respond exactly to a ping command,
1099     * can help block certain types of drones and FTP PASV mode spoofing.
1100     */
1101     ping_cookie = no;
1102    
1103     /* no_oper_flood: increase flood limits for opers. */
1104     no_oper_flood = yes;
1105    
1106     /*
1107     * true_no_oper_flood: completely eliminate flood limits for opers
1108     * and for clients with can_flood = yes in their auth {} blocks
1109     */
1110     true_no_oper_flood = yes;
1111    
1112     /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1113     oper_pass_resv = yes;
1114    
1115     /* REMOVE ME. The following line checks you've been reading. */
1116     havent_read_conf = 1;
1117    
1118     /*
1119     * max_targets: the maximum amount of targets in a single
1120     * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1121     */
1122     max_targets = 4;
1123    
1124     /*
1125     * client_flood: maximum amount of data in a clients queue before
1126     * they are dropped for flooding.
1127     */
1128     client_flood = 2560 bytes;
1129    
1130     /*
1131     * message_locale: the default message locale
1132     * Use "standard" for the compiled in defaults.
1133     * To install the translated messages, go into messages/ in the
1134     * source directory and run `make install'.
1135     */
1136     message_locale = "standard";
1137    
1138     /*
1139     * usermodes configurable: a list of usermodes for the options below
1140     *
1141     * +b - bots - See bot and drone flooding notices
1142     * +c - cconn - Client connection/quit notices
1143 michael 959 * +C - cconn_full - Client connection/quit notices full
1144 db 897 * +D - deaf - Don't receive channel messages
1145     * +d - debug - See debugging notices
1146     * +f - full - See I: line full notices
1147     * +G - softcallerid - Server Side Ignore for users not on your channels
1148     * +g - callerid - Server Side Ignore (for privmsgs etc)
1149 michael 1294 * +H - hidden - Hides operator status to other users
1150 db 897 * +i - invisible - Not shown in NAMES or WHO unless you share a
1151     * a channel
1152 michael 1290 * +j - rej - See rejected client notices
1153 db 897 * +k - skill - See server generated KILL messages
1154     * +l - locops - See LOCOPS messages
1155     * +n - nchange - See client nick changes
1156     * +s - servnotice - See general server notices
1157     * +u - unauth - See unauthorized client notices
1158     * +w - wallop - See server generated WALLOPS
1159     * +x - external - See remote server connection and split notices
1160     * +y - spy - See LINKS, STATS, TRACE notices etc.
1161     * +z - operwall - See oper generated WALLOPS
1162     */
1163    
1164     /* oper_only_umodes: usermodes only opers may set */
1165 michael 1294 oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1166 db 897 nchange, rej, spy, external, operwall,
1167     locops, unauth;
1168    
1169     /* oper_umodes: default usermodes opers get when they /oper */
1170     oper_umodes = bots, locops, servnotice, operwall, wallop;
1171    
1172     /*
1173     * servlink_path: path to 'servlink' program used by ircd to handle
1174     * encrypted/compressed server <-> server links.
1175     *
1176     * only define if servlink is not in same directory as ircd itself.
1177     */
1178     #servlink_path = "/usr/local/ircd/bin/servlink";
1179    
1180     /*
1181     * default_cipher_preference: default cipher to use for cryptlink when none is
1182     * specified in connect block.
1183     */
1184     #default_cipher_preference = "BF/168";
1185    
1186     /*
1187     * use_egd: if your system does not have *random devices yet you
1188     * want to use OpenSSL and encrypted links, enable this. Beware -
1189     * EGD is *very* CPU intensive when gathering data for its pool
1190     */
1191     # use_egd = yes;
1192    
1193     /*
1194     * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1195     * which automatically finds the path.
1196     */
1197     # egdpool_path = "/var/run/egd-pool";
1198    
1199    
1200     /*
1201     * compression_level: level of compression for compressed links between
1202     * servers.
1203     *
1204     * values are between: 1 (least compression, fastest)
1205     * and: 9 (most compression, slowest).
1206     */
1207     # compression_level = 6;
1208    
1209     /*
1210     * throttle_time: the minimum amount of time between connections from
1211     * the same ip. exempt {} blocks are excluded from this throttling.
1212     * Offers protection against flooders who reconnect quickly.
1213     * Set to 0 to disable.
1214     */
1215     throttle_time = 10;
1216     };
1217    
1218     glines {
1219     /* enable: enable glines, network wide temp klines */
1220     enable = yes;
1221    
1222     /*
1223     * duration: the amount of time a gline will remain on your
1224     * server before expiring
1225     */
1226     duration = 1 day;
1227    
1228     /*
1229 michael 1247 * log: which types of rules you want to log when triggered
1230 db 897 * (choose reject or block)
1231     */
1232 michael 1247 log = reject, block;
1233 db 897
1234     /*
1235     * NOTE: gline ACLs can cause a desync of glines throughout the
1236     * network, meaning some servers may have a gline triggered, and
1237     * others may not. Also, you only need insert rules for glines
1238     * that you want to block and/or reject. If you want to accept and
1239     * propagate the gline, do NOT put a rule for it.
1240     */
1241    
1242     /* user@host for rule to apply to */
1243     user = "god@I.still.hate.packets";
1244     /* server for rule to apply to */
1245     name = "hades.arpa";
1246    
1247     /*
1248     * action: action to take when a matching gline is found. options are:
1249     * reject - do not apply the gline locally
1250     * block - do not propagate the gline
1251     */
1252     action = reject, block;
1253    
1254     user = "god@*";
1255     name = "*";
1256     action = block;
1257     };
1258    
1259     modules {
1260     /*
1261 michael 951 * path: other paths to search for modules specified below
1262 db 897 * and in /modload.
1263     */
1264 michael 1070 path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1265     path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1266 db 897
1267     /* module: the name of a module to load on startup/rehash */
1268 michael 959 #module = "some_module.la";
1269 db 897 };
1270 michael 1247
1271     /*
1272     * log {}: contains information about logfiles.
1273     */
1274     log {
1275     /* Do you want to enable logging to ircd.log? */
1276     use_logging = yes;
1277     timestamp = yes;
1278    
1279     file {
1280     type = oper;
1281     name = "/home/ircd/var/log/oper.log";
1282 michael 1250 size = unlimited;
1283 michael 1247 };
1284    
1285     file {
1286     type = user;
1287 michael 1249 name = "/home/ircd/var/log/user.log";
1288 michael 1247 size = 50 megabytes;
1289     };
1290    
1291     file {
1292     type = kill;
1293     name = "/home/ircd/var/log/kill.log";
1294     size = 50 megabytes;
1295     };
1296    
1297     file {
1298     type = kline;
1299     name = "/home/ircd/var/log/kline.log";
1300     size = 50 megabytes;
1301     };
1302    
1303     file {
1304     type = dline;
1305     name = "/home/ircd/var/log/dline.log";
1306     size = 50 megabytes;
1307     };
1308    
1309     file {
1310     type = gline;
1311     name = "/home/ircd/var/log/gline.log";
1312     size = 50 megabytes;
1313     };
1314    
1315     file {
1316     type = debug;
1317     name = "/home/ircd/var/log/debug.log";
1318     size = 50 megabytes;
1319     };
1320     };

Properties

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