ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/doc/reference.conf
Revision: 1823
Committed: Sun Apr 14 18:24:38 2013 UTC (12 years, 4 months ago) by michael
Original Path: ircd-hybrid/trunk/doc/reference.conf
File size: 34621 byte(s)
Log Message:
- Renamed example.conf to reference.conf
- Due to upcoming feature implementation, resv{} blocks are no longer stackable

File Contents

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

Properties

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