ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.0.x/doc/example.conf
Revision: 1871
Committed: Fri Apr 26 08:53:04 2013 UTC (13 years, 2 months ago) by michael
File size: 34506 byte(s)
Log Message:
- Reverted to -r1820; libGeoIP support is sheduled for  8.1

File Contents

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

Properties

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