ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.conf
Revision: 1351
Committed: Thu Apr 12 22:56:05 2012 UTC (12 years ago) by michael
File size: 35332 byte(s)
Log Message:
- update example configuration files

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

Properties

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