ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/doc/reference.conf
Revision: 1858
Committed: Thu Apr 25 15:00:52 2013 UTC (13 years, 2 months ago) by michael
Original Path: ircd-hybrid/trunk/doc/reference.conf
File size: 34802 byte(s)
Log Message:
- Added basic support for libGeoIP
- Added exempt configuration option to resv{} blocks

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 1850 * webirc - enables WEBIRC authentication for web-based clients such as Mibbit
375 michael 1715 * ('<' 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 michael 1855 * +R - nononreg - Only receive private messages from registered clients
467 db 897 * +s - servnotice - See general server notices
468     * +u - unauth - See unauthorized client notices
469     * +w - wallop - See server generated WALLOPS
470     * +y - spy - See LINKS, STATS, TRACE notices etc.
471     * +z - operwall - See oper generated WALLOPS
472     */
473     # umodes = locops, servnotice, operwall, wallop;
474    
475     /*
476     * privileges: controls the activities and commands an oper is
477 michael 1228 * allowed to do on the server. All options default to no.
478 db 897 * Available options:
479     *
480 michael 1441 * module - allows MODULE
481 michael 1229 * global_kill - allows remote users to be /KILL'd
482     * remote - allows remote SQUIT and CONNECT
483     * remoteban - allows remote KLINE/UNKLINE
484 michael 1301 * dline - allows DLINE
485     * undline - allows UNDLINE
486     * kline - allows KILL and KLINE
487     * unkline - allows UNKLINE
488 michael 1229 * gline - allows GLINE
489     * xline - allows XLINE
490     * globops - allows GLOBOPS
491     * operwall - allows OPERWALL
492     * nick_changes - allows oper to see nickchanges via usermode +n
493     * rehash - allows oper to REHASH config
494     * die - allows DIE
495     * restart - allows RESTART
496 michael 1460 * set - allows SET
497 michael 1229 * admin - gives admin privileges. admins for example,
498     * may see the real IP addresses of servers.
499 db 897 */
500 michael 1228 flags = global_kill, remote, kline, unkline, xline, globops, restart,
501     die, rehash, nick_changes, admin, operwall, module;
502 db 897 };
503    
504 michael 1552 /*
505     * service {}: specifies what server may act as a network service
506     *
507     * NOTE: it is absolutely important that every single server on the network
508     * has the same service{} block.
509     */
510 michael 1157 service {
511     name = "service.someserver";
512 michael 1302 name = "stats.someserver";
513 michael 1157 };
514    
515 db 897 /*
516 michael 1229 * connect {}: controls servers we connect to
517 db 897 */
518     connect {
519     /* name: the name of the server */
520     name = "irc.uplink.com";
521    
522     /*
523     * host: the host or IP to connect to. If a hostname is used it
524     * must match the reverse dns of the server.
525     */
526     host = "192.168.0.1";
527    
528     /*
529     * vhost: the IP to bind to when we connect outward to servers.
530     * serverinfo::vhost and serverinfo::vhost6 will be overridden
531     * by this directive.
532     */
533     vhost = "192.168.0.2";
534    
535     /*
536     * passwords: the passwords we send (OLD C:) and accept (OLD N:).
537     * The remote server will have these passwords reversed.
538     */
539     send_password = "password";
540     accept_password = "anotherpassword";
541    
542     /*
543     * encrypted: controls whether the accept_password above has been
544 michael 1070 * encrypted.
545 db 897 */
546     encrypted = no;
547    
548     /* port: the port to connect to this server on */
549     port = 6666;
550    
551     /*
552     * hub_mask: the mask of servers that this server may hub. Multiple
553     * entries are permitted
554     */
555     hub_mask = "*";
556    
557     /*
558     * leaf_mask: the mask of servers this server may not hub. Multiple
559     * entries are permitted. Useful for forbidding EU -> US -> EU routes.
560     */
561     # leaf_mask = "*.uk";
562    
563     /* class: the class this server is in */
564     class = "server";
565    
566 michael 1524 /*
567     * ssl_cipher_list:
568     *
569     * List of ciphers that the server we are connecting to must support.
570     * If the server isn't capable of any cipher listed below, the
571     * connection will simply be rejected.
572     * Can be used to enforce stronger ciphers, even though this option
573     * is not necessarily required to establish a SSL/TLS connection.
574     *
575     * Multiple ciphers are separated by colons. The order of preference
576     * is from left to right.
577     */
578 michael 1306 #ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
579    
580 db 897 /*
581 michael 1229 * autoconn - controls whether we autoconnect to this server or not,
582     * dependent on class limits. By default, this is disabled.
583 michael 1303 * ssl - Initiates a TLS/SSL connection.
584 db 897 */
585 michael 1519 # flags = autoconn, ssl;
586 db 897 };
587    
588     connect {
589 michael 1285 name = "ipv6.some.server";
590 db 897 host = "3ffd:dead:beef::1";
591     send_password = "password";
592     accept_password = "password";
593     port = 6666;
594    
595     /*
596     * aftype: controls whether the connection uses "ipv4" or "ipv6".
597     * Default is ipv4.
598     */
599     aftype = ipv6;
600     class = "server";
601     };
602    
603     /*
604     * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
605 michael 1229 * automatically
606 db 897 */
607     cluster {
608     /*
609     * name: the server to share with, this can take wildcards
610     *
611     * NOTE: only local actions will be clustered, meaning if
612     * the server receives a shared kline/unkline/etc, it
613     * will not be propagated to clustered servers.
614     *
615     * Remote servers are not necessarily required to accept
616     * clustered lines, they need a shared{} for *THIS* server
617     * in order to accept them.
618     */
619     name = "*.arpa";
620    
621     /*
622     * type: list of what to share, options are as follows:
623 michael 1301 * dline - share dlines
624     * undline - share undlines
625 michael 1336 * kline - share klines
626     * unkline - share unklines
627     * xline - share xlines
628     * unxline - share unxlines
629     * resv - share resvs
630     * unresv - share unresvs
631     * locops - share locops
632     * all - share all of the above (default)
633 db 897 */
634     type = kline, unkline, locops, xline, resv;
635     };
636    
637     /*
638 michael 1229 * shared {}: users that are allowed to remote kline
639 db 897 *
640     * NOTE: This can be effectively used for remote klines.
641     * Please note that there is no password authentication
642     * for users setting remote klines. You must also be
643     * /oper'd in order to issue a remote kline.
644     */
645     shared {
646     /*
647     * name: the server the user must be on to set klines. If this is not
648     * specified, the user will be allowed to kline from all servers.
649     */
650     name = "irc2.some.server";
651    
652     /*
653     * user: the user@host mask that is allowed to set klines. If this is
654     * not specified, all users on the server above will be allowed to set
655     * a remote kline.
656     */
657     user = "oper@my.host.is.spoofed";
658    
659     /*
660     * type: list of what to share, options are as follows:
661 michael 1301 * dline - allow oper/server to dline
662     * undline - allow oper/server to undline
663 michael 1336 * kline - allow oper/server to kline
664     * unkline - allow oper/server to unkline
665     * xline - allow oper/server to xline
666     * unxline - allow oper/server to unxline
667     * resv - allow oper/server to resv
668     * unresv - allow oper/server to unresv
669 db 897 * locops - allow oper/server to locops - only used for servers that cluster
670 michael 1336 * all - allow oper/server to do all of the above (default)
671 db 897 */
672     type = kline, unkline, resv;
673     };
674    
675     /*
676 michael 1229 * kill {}: users that are not allowed to connect
677 db 897 * Oper issued klines will be added to the specified kline config
678     */
679     kill {
680     user = "bad@*.hacked.edu";
681     reason = "Obviously hacked account";
682     };
683    
684     kill {
685 michael 951 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
686    
687     /*
688     * NOTE: You have to set type=regex; when using a regular expression
689     * based user entry
690     */
691 db 897 type = regex;
692     };
693    
694     /*
695     * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
696     * Oper issued dlines will be added to the specified dline config
697     */
698     deny {
699     ip = "10.0.1.0/24";
700     reason = "Reconnecting vhosted bots";
701     };
702    
703     /*
704 michael 1229 * exempt {}: IPs that are exempt from deny {} and Dlines
705 db 897 */
706     exempt {
707     ip = "192.168.0.0/16";
708     };
709    
710     /*
711 michael 1229 * resv {}: nicks and channels users may not use/join
712 db 897 */
713 michael 1858 resv { mask = "clone*"; reason = "Clone bots"; };
714     resv { mask = "NickServ"; reason = "Reserved for services"; };
715     resv { mask = "OperServ"; reason = "Reserved for services"; };
716     resv { mask = "MemoServ"; reason = "Reserved for services"; };
717     resv { mask = "BotServ"; reason = "Reserved for services"; };
718     resv { mask = "HelpServ"; reason = "Reserved for services"; };
719     resv { mask = "HostServ"; reason = "Reserved for services"; };
720     resv { mask = "StatServ"; reason = "Reserved for services"; };
721     resv { mask = "#*services*"; reason = "Reserved for services"; };
722 michael 1823
723 michael 1858 resv {
724     /*
725     * mask: masks starting with a '#' are automatically considered
726     * as channel name mask
727     */
728     mask = "#helsinki";
729     reason = "Channel is reserved for finnish inhabitants";
730    
731     /*
732     * exempt: can be either a ISO 3166 alpha-2 two letter country
733     * code, or a nick!user@host mask. CIDR is supported. Exempt
734     * entries can be stacked.
735     */
736     exempt = "FI";
737     };
738    
739 db 897 /*
740     * gecos {}: The X: replacement, used for banning users based on
741     * their "realname".
742     */
743     gecos {
744     name = "*sex*";
745     reason = "Possible spambot";
746     };
747    
748     gecos {
749     name = "sub7server";
750     reason = "Trojan drone";
751     };
752    
753     gecos {
754     name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
755 michael 951
756     /*
757     * NOTE: You have to set type=regex; when using a regular expression
758     * based name entry
759     */
760 db 897 type = regex;
761     };
762    
763     /*
764     * channel {}: The channel block contains options pertaining to channels
765     */
766     channel {
767     /*
768     * disable_fake_channels: this option, if set to 'yes', will
769     * disallow clients to create or join channels that have one
770     * of the following ASCII characters in their name:
771     *
772     * 2 | bold
773     * 3 | mirc color
774 michael 951 * 15 | plain text
775 db 897 * 22 | reverse
776 michael 1424 * 29 | italic
777 db 897 * 31 | underline
778     * 160 | non-breaking space
779     */
780     disable_fake_channels = yes;
781    
782     /*
783     * knock_delay: The amount of time a user must wait between issuing
784     * the knock command.
785     */
786 michael 951 knock_delay = 5 minutes;
787 db 897
788     /*
789     * knock_delay_channel: How often a knock to any specific channel
790     * is permitted, regardless of the user sending the knock.
791     */
792     knock_delay_channel = 1 minute;
793    
794     /*
795     * max_chans_per_user: The maximum number of channels a user can
796     * join/be on.
797     */
798     max_chans_per_user = 25;
799    
800 michael 1432 /*
801     * max_chans_per_oper: The maximum number of channels an oper can
802     * join/be on.
803     */
804     max_chans_per_oper = 50;
805    
806 db 897 /* quiet_on_ban: stop banned people talking in channels. */
807     quiet_on_ban = yes;
808    
809     /* max_bans: maximum number of +b/e/I modes in a channel */
810 michael 1522 max_bans = 100;
811 db 897
812     /*
813     * how many joins in how many seconds constitute a flood, use 0 to
814     * disable. +b opers will be notified (changeable via /set)
815     */
816     join_flood_count = 16;
817     join_flood_time = 8 seconds;
818    
819     /*
820     * splitcode: The ircd will now check splitmode every few seconds.
821     *
822     * Either split users or split servers can activate splitmode, but
823     * both conditions must be met for the ircd to deactivate splitmode.
824     *
825     * You may force splitmode to be permanent by /quote set splitmode on
826     */
827    
828     /*
829     * default_split_user_count: when the usercount is lower than this level,
830     * consider ourselves split. This must be set for automatic splitmode.
831     */
832     default_split_user_count = 0;
833    
834     /*
835     * default_split_server_count: when the servercount is lower than this,
836     * consider ourselves split. This must be set for automatic splitmode.
837     */
838     default_split_server_count = 0;
839    
840 michael 959 /* no_create_on_split: disallow users creating channels on split. */
841 db 897 no_create_on_split = yes;
842    
843 michael 959 /* no_join_on_split: disallow users joining channels at all on a split. */
844 db 897 no_join_on_split = no;
845     };
846    
847     /*
848     * serverhide {}: The serverhide block contains the options regarding
849     * serverhiding
850     */
851     serverhide {
852     /*
853     * flatten_links: this option will show all servers in /links appear
854     * that they are linked to this current server
855     */
856     flatten_links = no;
857    
858     /*
859     * links_delay: how often to update the links file when it is
860     * flattened.
861     */
862     links_delay = 5 minutes;
863    
864     /*
865     * hidden: hide this server from a /links output on servers that
866     * support it. This allows hub servers to be hidden etc.
867     */
868     hidden = no;
869    
870     /*
871     * hide_servers: hide remote servernames everywhere and instead use
872     * hidden_name and network_desc.
873     */
874     hide_servers = no;
875    
876     /*
877 michael 1851 * hide_services: define this if you want to hide the location of
878 michael 1852 * services servers that are specified in the service{} block.
879 michael 1851 */
880     hide_services = no;
881    
882     /*
883 db 897 * Use this as the servername users see if hide_servers = yes.
884     */
885     hidden_name = "*.hidden.com";
886    
887     /*
888 michael 951 * hide_server_ips: If this is disabled, opers will be unable to see
889     * servers ips and will be shown a masked ip, admins will be shown the
890     * real ip.
891 db 897 *
892 michael 951 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
893     * it has the side effect of hiding the ips everywhere, including
894     * logfiles.
895 db 897 *
896     * We recommend you leave this disabled, and just take care with who you
897 michael 1729 * give administrator privileges to.
898 db 897 */
899     hide_server_ips = no;
900     };
901    
902     /*
903     * general {}: The general block contains many of the options that were once
904 michael 1783 * compiled in options in config.h
905 db 897 */
906     general {
907 michael 1157 /* services_name: servername of nick/channel services */
908     services_name = "service.someserver";
909    
910 michael 951 /* max_watch: maximum WATCH entries a client can have. */
911 michael 1070 max_watch = 60;
912 db 897
913 michael 1459 /* gline_enable: enable glines, network wide temp klines */
914     gline_enable = yes;
915    
916 db 897 /*
917 michael 1459 * gline_duration: the amount of time a gline will remain on your
918     * server before expiring
919     */
920     gline_duration = 1 day;
921    
922     /*
923     * gline_request_duration: how long a pending G-line can be around.
924     * 10 minutes should be plenty
925     */
926     gline_request_duration = 10 minutes;
927    
928     /*
929 db 897 * gline_min_cidr: the minimum required length of a CIDR bitmask
930     * for IPv4 based glines
931     */
932     gline_min_cidr = 16;
933    
934     /*
935     * gline_min_cidr6: the minimum required length of a CIDR bitmask
936     * for IPv6 based glines
937     */
938     gline_min_cidr6 = 48;
939    
940     /*
941     * Whether to automatically set mode +i on connecting users.
942     */
943     invisible_on_connect = yes;
944    
945     /*
946     * Max time from the nickname change that still causes KILL
947 michael 1074 * automatically to switch for the current nick of that user.
948 db 897 */
949 michael 1074 kill_chase_time_limit = 90 seconds;
950 db 897
951     /*
952 michael 1228 * If hide_spoof_ips is disabled, opers will be allowed to see the real
953     * IP of spoofed users in /trace etc. If this is defined they will be
954     * shown a masked IP.
955 db 897 */
956     hide_spoof_ips = yes;
957    
958     /*
959     * Ignore bogus timestamps from other servers. Yes, this will desync
960     * the network, but it will allow chanops to resync with a valid non TS 0
961     *
962     * This should be enabled network wide, or not at all.
963     */
964     ignore_bogus_ts = no;
965    
966     /*
967     * disable_auth: completely disable ident lookups; if you enable this,
968     * be careful of what you set need_ident to in your auth {} blocks
969     */
970     disable_auth = no;
971    
972     /* disable_remote_commands: disable users doing commands on remote servers */
973     disable_remote_commands = no;
974    
975     /*
976     * tkline_expire_notices: enables or disables temporary kline/xline
977     * expire notices.
978     */
979     tkline_expire_notices = no;
980    
981     /*
982     * default_floodcount: the default value of floodcount that is configurable
983     * via /quote set floodcount. This is the amount of lines a user
984     * may send to any other user/channel in one second.
985     */
986     default_floodcount = 10;
987    
988     /*
989     * failed_oper_notice: send a notice to all opers on the server when
990     * someone tries to OPER and uses the wrong password, host or ident.
991     */
992     failed_oper_notice = yes;
993    
994     /*
995     * dots_in_ident: the amount of '.' characters permitted in an ident
996     * reply before the user is rejected.
997     */
998     dots_in_ident = 2;
999    
1000     /*
1001     * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1002     * placed via the server. klines hand placed are exempt from limits.
1003     * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1004     */
1005     min_nonwildcard = 4;
1006    
1007     /*
1008     * min_nonwildcard_simple: the minimum non wildcard characters in
1009     * gecos bans. wildcard chars: '*' '?' '#'
1010     */
1011     min_nonwildcard_simple = 3;
1012    
1013     /* max_accept: maximum allowed /accept's for +g usermode */
1014     max_accept = 20;
1015    
1016     /* anti_nick_flood: enable the nickflood control code */
1017     anti_nick_flood = yes;
1018    
1019     /* nick flood: the nick changes allowed in the specified period */
1020     max_nick_time = 20 seconds;
1021     max_nick_changes = 5;
1022    
1023     /*
1024     * anti_spam_exit_message_time: the minimum time a user must be connected
1025     * before custom quit messages are allowed.
1026     */
1027     anti_spam_exit_message_time = 5 minutes;
1028    
1029     /*
1030     * ts delta: the time delta allowed between server clocks before
1031     * a warning is given, or before the link is dropped. all servers
1032     * should run ntpdate/rdate to keep clocks in sync
1033     */
1034     ts_warn_delta = 30 seconds;
1035     ts_max_delta = 5 minutes;
1036    
1037     /*
1038     * warn_no_nline: warn opers about servers that try to connect but
1039     * we don't have a connect {} block for. Twits with misconfigured
1040     * servers can get really annoying with this enabled.
1041     */
1042     warn_no_nline = yes;
1043    
1044     /*
1045     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1046     * operators and administrators. Doing so is a good idea in case
1047     * there are any exempted (exempt{}) server IPs you don't want to
1048     * see leaked.
1049     */
1050     stats_e_disabled = no;
1051    
1052     /* stats_o_oper only: make stats o (opers) oper only */
1053     stats_o_oper_only = yes;
1054    
1055     /* stats_P_oper_only: make stats P (ports) oper only */
1056     stats_P_oper_only = yes;
1057    
1058     /*
1059     * stats i oper only: make stats i (auth {}) 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_i_oper_only = yes;
1065    
1066     /*
1067     * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1068     * yes: show users no auth blocks, made oper only
1069     * masked: show users first matching auth block
1070     * no: show users all auth blocks.
1071     */
1072     stats_k_oper_only = yes;
1073    
1074     /*
1075     * caller_id_wait: time between notifying a +g user that somebody
1076     * is messaging them.
1077     */
1078     caller_id_wait = 1 minute;
1079    
1080     /*
1081     * opers_bypass_callerid: allows operators to bypass +g and message
1082     * anyone who has it set (useful if you use services).
1083     */
1084     opers_bypass_callerid = no;
1085    
1086     /*
1087     * pace_wait_simple: time between use of less intensive commands
1088     * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1089     */
1090     pace_wait_simple = 1 second;
1091    
1092     /*
1093     * pace_wait: time between more intensive commands
1094 michael 1488 * (AWAY, INFO, LINKS, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1095 db 897 */
1096     pace_wait = 10 seconds;
1097    
1098     /*
1099     * short_motd: send clients a notice telling them to read the motd
1100     * instead of forcing a motd to clients who may simply ignore it.
1101     */
1102     short_motd = no;
1103    
1104     /*
1105     * ping_cookie: require clients to respond exactly to a ping command,
1106     * can help block certain types of drones and FTP PASV mode spoofing.
1107     */
1108     ping_cookie = no;
1109    
1110     /* no_oper_flood: increase flood limits for opers. */
1111     no_oper_flood = yes;
1112    
1113     /*
1114     * true_no_oper_flood: completely eliminate flood limits for opers
1115     * and for clients with can_flood = yes in their auth {} blocks
1116     */
1117     true_no_oper_flood = yes;
1118    
1119     /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1120     oper_pass_resv = yes;
1121    
1122     /* REMOVE ME. The following line checks you've been reading. */
1123     havent_read_conf = 1;
1124    
1125     /*
1126     * max_targets: the maximum amount of targets in a single
1127     * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1128     */
1129     max_targets = 4;
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 michael 1855 * +R - nononreg - Only receive private messages from registered clients
1151 db 897 * +s - servnotice - See general server notices
1152     * +u - unauth - See unauthorized client notices
1153     * +w - wallop - See server generated WALLOPS
1154     * +y - spy - See LINKS, STATS, TRACE notices etc.
1155     * +z - operwall - See oper generated WALLOPS
1156     */
1157    
1158     /* oper_only_umodes: usermodes only opers may set */
1159 michael 1294 oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1160 db 897 nchange, rej, spy, external, operwall,
1161     locops, unauth;
1162    
1163     /* oper_umodes: default usermodes opers get when they /oper */
1164     oper_umodes = bots, locops, servnotice, operwall, wallop;
1165    
1166     /*
1167     * use_egd: if your system does not have *random devices yet you
1168     * want to use OpenSSL and encrypted links, enable this. Beware -
1169     * EGD is *very* CPU intensive when gathering data for its pool
1170     */
1171     # use_egd = yes;
1172    
1173     /*
1174     * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1175     * which automatically finds the path.
1176     */
1177     # egdpool_path = "/var/run/egd-pool";
1178    
1179     /*
1180     * throttle_time: the minimum amount of time between connections from
1181     * the same ip. exempt {} blocks are excluded from this throttling.
1182     * Offers protection against flooders who reconnect quickly.
1183     * Set to 0 to disable.
1184     */
1185     throttle_time = 10;
1186     };
1187    
1188     modules {
1189     /*
1190 michael 951 * path: other paths to search for modules specified below
1191 michael 1441 * and in "/module load".
1192 db 897 */
1193 michael 1070 path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1194     path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1195 db 897
1196     /* module: the name of a module to load on startup/rehash */
1197 michael 959 #module = "some_module.la";
1198 db 897 };
1199 michael 1247
1200     /*
1201     * log {}: contains information about logfiles.
1202     */
1203     log {
1204     /* Do you want to enable logging to ircd.log? */
1205     use_logging = yes;
1206    
1207     file {
1208     type = oper;
1209     name = "/home/ircd/var/log/oper.log";
1210 michael 1250 size = unlimited;
1211 michael 1247 };
1212    
1213     file {
1214     type = user;
1215 michael 1249 name = "/home/ircd/var/log/user.log";
1216 michael 1247 size = 50 megabytes;
1217     };
1218    
1219     file {
1220     type = kill;
1221     name = "/home/ircd/var/log/kill.log";
1222     size = 50 megabytes;
1223     };
1224    
1225     file {
1226     type = kline;
1227     name = "/home/ircd/var/log/kline.log";
1228     size = 50 megabytes;
1229     };
1230    
1231     file {
1232     type = dline;
1233     name = "/home/ircd/var/log/dline.log";
1234     size = 50 megabytes;
1235     };
1236    
1237     file {
1238     type = gline;
1239     name = "/home/ircd/var/log/gline.log";
1240     size = 50 megabytes;
1241     };
1242    
1243     file {
1244     type = debug;
1245     name = "/home/ircd/var/log/debug.log";
1246     size = 50 megabytes;
1247 michael 1824 };
1248 michael 1247 };

Properties

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