ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 1824
Committed: Sun Apr 14 18:38:17 2013 UTC (12 years, 4 months ago) by michael
File size: 34555 byte(s)
Log Message:
- Update reference conf

File Contents

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

Properties

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