ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 1519
Committed: Wed Sep 5 12:02:04 2012 UTC (13 years, 10 months ago) by michael
Original Path: ircd-hybrid-8/doc/example.conf
File size: 33774 byte(s)
Log Message:
- Topics as well as user-aways are now sent in a burst by default

File Contents

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

Properties

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