ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 1068
Committed: Tue Feb 16 23:01:26 2010 UTC (14 years, 1 month ago) by michael
Original Path: ircd-hybrid-7.3/etc/example.efnet.conf
File size: 39236 byte(s)
Log Message:
- Stop substitution of example configuration files on 'configure'

File Contents

# User Rev Content
1 michael 584 /* doc/example.efnet.conf - ircd-hybrid-7 EFnet Example configuration file
2 michael 1049 * Copyright (C) 2000-2010 Hybrid Development Team
3 adx 30 *
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 knight 31 * $Id$
9 adx 30 */
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 michael 583 *
37 adx 30 * This configuration file is a BASIC configuration file for use
38     * on EFnet. You MUST still take the time to set this file up
39     * properly.
40     *
41     * DISCLAIMER: This file was submitted by Disciple@EFnet and has
42     * since been modified by the Hybrid team.
43     */
44    
45 michael 583 /*
46     * serverinfo {}: contains information about the server. (OLD M:)
47     */
48 adx 30 serverinfo {
49 michael 583 /*
50     * name: the name of our server. This cannot be changed at runtime.
51     */
52 adx 30 name = "efnet.irc";
53    
54     /*
55 michael 583 * sid: a server's unique ID. This is three characters long and must
56     * be in the form [0-9][A-Z0-9][A-Z0-9]. The first character must be
57     * a digit, followed by 2 alpha-numerical letters.
58     * NOTE: The letters must be capitalized. This cannot be changed at runtime.
59 adx 30 */
60     sid = "_CHANGE_ME_";
61    
62     /*
63     * description: the description of the server. '[' and ']' may not
64     * be used here for compatibility with older servers.
65     */
66     description = "hybrid-7 test server";
67    
68     /*
69     * network info: the name and description of the network this server
70     * is on. Shown in the 005 reply and used with serverhiding.
71     */
72     network_name = "EFnet";
73     network_desc = "Eris Free Network";
74    
75     /*
76     * hub: allow this server to act as a hub and have multiple servers
77 michael 885 * connected to it.
78 adx 30 */
79     hub = no;
80    
81     /*
82     * vhost: the IP to bind to when we connect outward to ipv4 servers.
83 michael 959 * This should be an ipv4 IP only, or "*" for INADDR_ANY.
84 adx 30 */
85     #vhost = "192.169.0.1";
86    
87     /*
88     * vhost6: the IP to bind to when we connect outward to ipv6 servers.
89 michael 959 * This should be an ipv6 IP only, or "*" for INADDR_ANY.
90 adx 30 */
91     #vhost6 = "3ffe:80e8:546::2";
92    
93     /* max_clients: the maximum number of clients allowed to connect */
94     max_clients = 512;
95    
96     /*
97 michael 951 * rsa_private_key_file: the path to the file containing our
98     * rsa key for cryptlink.
99 adx 30 *
100     * Example command to store a 2048 bit RSA keypair in
101     * rsa.key, and the public key in rsa.pub:
102     *
103     * openssl genrsa -out rsa.key 2048
104     * openssl rsa -in rsa.key -pubout -out rsa.pub
105     * chown <ircd-user>.<ircd.group> rsa.key rsa.pub
106     * chmod 0600 rsa.key
107     * chmod 0644 rsa.pub
108     */
109     #rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
110 michael 951
111     /*
112     * ssl_certificate_file: the path to the file containing our
113     * ssl certificate for encrypted client connection.
114     *
115     * This assumes your private RSA key is stored in rsa.key. You
116     * MUST have an RSA key in order to generate the certificate
117     *
118     * openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
119     *
120     * See http://www.openssl.org/docs/HOWTO/certificates.txt
121     *
122     * Please use the following values when generating the cert
123     *
124     * Organization Name: Network Name
125     * Organization Unit Name: changme.someirc.net
126     * Common Name: irc.someirc.net
127     * E-mail: you@domain.com
128     */
129     #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
130 michael 967
131     /*
132     * ssl_server_protocol:
133     * SSL/TLS protocols we provide for incoming secure connections.
134     * This can be either sslv3 for SSLv3, and/or tlsv1 for TLSv1.
135     * SSLv2 is not suppported. This cannot be changed at runtime.
136     */
137     #ssl_server_protocol = sslv3, tlsv1;
138 adx 30 };
139    
140 michael 583 /*
141     * admin {}: contains admin information about the server. (OLD A:)
142     */
143 adx 30 admin {
144     name = "EFnet Admin";
145     description = "Main Server Administrator";
146     email = "<irc-admin@efnet.irc>";
147     };
148    
149 michael 583 /*
150     * log {}: contains information about logfiles.
151     */
152     log {
153 adx 30 /* Do you want to enable logging to ircd.log? */
154     use_logging = yes;
155    
156     /*
157     * logfiles: the logfiles to use for user connects, /oper uses,
158     * and failed /oper. These files must exist for logging to be used.
159     */
160 michael 583 fname_userlog = "logs/userlog";
161     fname_operlog = "logs/operlog";
162     fname_killlog = "logs/kill";
163     fname_klinelog = "logs/kline";
164     fname_glinelog = "logs/gline";
165 adx 30
166     /*
167 michael 583 * log_level: the amount of detail to log in ircd.log. The
168 adx 30 * higher, the more information is logged. May be changed
169     * once the server is running via /quote SET LOG. Either:
170     * L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO or L_DEBUG
171     */
172     log_level = L_INFO;
173     };
174    
175 michael 583 /*
176     * class {}: contains information about classes for users (OLD Y:)
177     */
178 adx 30 class {
179     /* name: the name of the class. classes are text now */
180     name = "users";
181    
182     /*
183     * ping_time: how often a client must reply to a PING from the
184     * server before they are dropped.
185     */
186     ping_time = 90 seconds;
187    
188 michael 583 /*
189     * number_per_ip: how many local users are allowed to connect
190     * from one IP (optional)
191     */
192 adx 30 number_per_ip = 2;
193    
194 michael 583 /*
195     * max_local: how many local users are allowed to connect
196     * from one ident@host (optional)
197     */
198 adx 30 max_local = 2;
199    
200 michael 583 /*
201     * max_global: network-wide limit of users per ident@host (optional)
202     */
203 adx 30 max_global = 10;
204    
205 michael 583 /*
206     * max_number: the maximum number of users allowed in this class (optional)
207     */
208 adx 30 max_number = 100;
209    
210 michael 583 /*
211     * the following lines are optional and allow you to define
212     * how many users can connect from one /NN subnet
213     */
214     cidr_bitlen_ipv4 = 24;
215     cidr_bitlen_ipv6 = 120;
216     number_per_cidr = 16;
217 adx 40
218 adx 30 /*
219     * sendq: the amount of data allowed in a clients queue before
220     * they are dropped.
221     */
222     sendq = 100 kbytes;
223     };
224    
225     class {
226     name = "opers";
227    
228     /*
229     * contrary to seeming popular belief, setting ping time
230     * higher for an oper is NOT doing them a favor.
231     * Since if a link is dead its dead and it means
232     * you have to use another nick long enough to kill the old one :-)
233     * Its much better to use a fairly standard 90 second ping time
234     */
235     ping_time = 90 seconds;
236     number_per_ip = 10;
237     max_number = 100;
238     sendq = 1 mbyte;
239     };
240    
241     class {
242     name = "server";
243    
244     /*
245 michael 583 * Same thing here. It's a fallacy to think increasing
246 adx 30 * ping time for servers is a "good idea." All it leads to
247     * is "ghosting" on one end. Not a good idea.
248     */
249     ping_time = 90 seconds;
250    
251 michael 583 /*
252     * ping_warning: how fast a server must reply to a PING before
253     * a warning to opers is generated.
254     */
255     ping_warning = 15 seconds;
256 adx 30
257     /*
258     * connectfreq: only used in server classes. Specifies the delay
259     * between autoconnecting to servers.
260     *
261     * Both comstud and I recommend 10 minutes a few years ago.
262     * 15 minutes might be right now. The reason you don't want it too
263     * low is, you make the servers reconnect too quickly with
264     * a large sendq, and they _will_ nick collide. badly. 5 minutes
265     * IS way too short.
266     */
267     connectfreq = 15 minutes;
268    
269     /* max number: the amount of servers to autoconnect to */
270     max_number = 1;
271    
272 michael 583 /* sendq: servers need a higher sendq as they send more data */
273 adx 30 sendq = 15 megabytes;
274     };
275    
276 michael 583 /*
277     * listen {}: contains information about the ports ircd listens on (OLD P:)
278     */
279 adx 30 listen {
280     /*
281     * port: the specific port to listen on. If no host is specified
282     * before, it will listen on all available IPs.
283     *
284     * Ports are separated via a comma, a range may be specified using ".."
285     */
286    
287     /* port: listen on all available IPs, ports 6665 to 6669 */
288     port = 6665 .. 6669;
289    
290     /*
291 michael 951 * Listen on 192.168.0.1/6697 with ssl enabled and hidden from STATS P
292 adx 30 * unless you are an administrator.
293     *
294     * NOTE: The "flags" directive has to come before "port". Always!
295 michael 900 *
296     * Currently available flags are:
297     *
298     * ssl - Port is for SSL client connections only
299     * server - Only server connections are permitted
300     * hidden - Port is hidden from /stats P
301 adx 30 */
302 michael 951 flags = hidden, ssl;
303 adx 30 host = "192.168.0.1";
304 michael 951 port = 6697;
305 adx 30
306     /*
307     * host: set a specific IP/host the ports after the line will listen
308     * on. This may be ipv4 or ipv6.
309     */
310     host = "1.2.3.4";
311     port = 7000, 7001;
312    
313     host = "3ffe:1234:a:b:c::d";
314     port = 7002;
315     };
316    
317 michael 583 /*
318     * auth {}: allow users to connect to the ircd (OLD I:)
319     */
320 adx 30 auth {
321     /*
322     * user: the user@host allowed to connect. Multiple IPv4/IPv6 user
323     * lines are permitted per auth block.
324     */
325     user = "*@172.16.0.0/12";
326     user = "*test@123D:B567:*";
327    
328     /* password: an optional password that is required to use this block */
329     password = "letmein";
330    
331     /*
332     * encrypted: controls whether the auth password above has been
333     * encrypted.
334     */
335     encrypted = yes;
336    
337     /*
338     * spoof: fake the users host to this. This is free-form,
339     * just do everyone a favor and don't abuse it. ('=' prefix on /stats I)
340     */
341     spoof = "I.still.hate.packets";
342    
343     /* class: the class the user is placed in */
344     class = "opers";
345    
346     /*
347     * need_password: don't allow users who haven't supplied the correct
348     * password to connect using another auth{} block
349     * ('&' prefix on /stats I if disabled)
350     * need_ident: require the user to have identd to connect ('+' prefix on /stats I)
351     * spoof_notice: enable spoofing notification to admins
352     * exceed_limit: allow a user to exceed class limits ('>' prefix on /stats I)
353     * kline_exempt: exempt this user from k/glines ('^' prefix on /stats I)
354     * gline_exempt: exempt this user from glines ('_' prefix on /stats I)
355     * resv_exempt: exempt this user from resvs ('$' prefix on /stats I)
356     * no_tilde: remove ~ from a user with no ident ('-' prefix on /stats I)
357     * can_flood: allow this user to exceed flood limits ('|' prefix on /stats I)
358 michael 390 * can_idle: exempt this user from idle restrictions ('<' prefix on /stats I)
359 adx 30 */
360     flags = need_password, spoof_notice, exceed_limit, kline_exempt,
361     gline_exempt, resv_exempt, no_tilde, can_flood, can_idle;
362     };
363    
364     auth {
365     /*
366     * redirect: the server and port to redirect a user to. A user does
367     * not have to obey the redirection, the ircd just suggests an alternative
368     * server for them.
369     */
370 db 806 redirserv = "this.is.not.a.real.server";
371 adx 30 redirport = 6667;
372    
373 db 806 user = "*.server";
374 adx 30
375     /* class: a class is required even though it is not used */
376     class = "users";
377     };
378    
379     auth {
380     user = "*@*";
381     class = "users";
382     flags = need_ident;
383     };
384    
385 michael 583 /*
386     * operator {}: defines ircd operators. (OLD O:)
387     *
388 adx 30 * ircd-hybrid no longer supports local operators, privileges are
389     * controlled via flags.
390     */
391     operator {
392     /* name: the name of the oper */
393 michael 583 /* NOTE: operator "opername"{} is also supported */
394 adx 30 name = "god";
395    
396     /*
397     * user: the user@host required for this operator. CIDR is not
398     * supported. Multiple user="" lines are supported.
399     */
400     user = "*god@*";
401     user = "*@127.0.0.1";
402    
403     /*
404     * password: the password required to oper. By default this will
405     * need to be encrypted using 'mkpasswd'. MD5 is supported.
406     */
407     password = "etcnjl8juSU1E";
408    
409     /*
410     * encrypted: controls whether the oper password above has been
411     * encrypted. (OLD CRYPT_OPER_PASSWORD now optional per operator)
412     */
413     encrypted = yes;
414    
415     /*
416     * rsa_public_key_file: the public key for this oper when using Challenge.
417     * A password should not be defined when this is used, see
418     * doc/challenge.txt for more information.
419     */
420     # rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
421    
422     /* class: the class the oper joins when they successfully /oper */
423     class = "opers";
424    
425     /*
426 michael 56 * umodes: default usermodes opers get when they /oper. If defined,
427     * it will override oper_umodes settings in general {}.
428     * Available usermodes:
429     *
430     * +b - bots - See bot and drone flooding notices
431     * +c - cconn - Client connection/quit notices
432 db 853 * +C - cconn_full - Client connection/quit notices full
433 michael 56 * +D - deaf - Don't receive channel messages
434     * +d - debug - See debugging notices
435     * +f - full - See I: line full notices
436     * +G - softcallerid - Server Side Ignore for users not on your channels
437     * +g - callerid - Server Side Ignore (for privmsgs etc)
438     * +i - invisible - Not shown in NAMES or WHO unless you share a
439     * a channel
440     * +k - skill - See server generated KILL messages
441     * +l - locops - See LOCOPS messages
442     * +n - nchange - See client nick changes
443     * +r - rej - See rejected client notices
444     * +s - servnotice - See general server notices
445     * +u - unauth - See unauthorized client notices
446     * +w - wallop - See server generated WALLOPS
447     * +x - external - See remote server connection and split notices
448     * +y - spy - See LINKS, STATS, TRACE notices etc.
449     * +z - operwall - See oper generated WALLOPS
450     */
451     # umodes = locops, servnotice, operwall, wallop;
452    
453     /*
454 adx 30 * privileges: controls the activities and commands an oper is
455     * allowed to do on the server. All options default to no.
456     * Available options:
457     *
458     * global_kill: allows remote users to be /KILL'd (OLD 'O' flag)
459     * remote: allows remote SQUIT and CONNECT (OLD 'R' flag)
460     * remoteban: allows remote KLINE/UNKLINE
461     * kline: allows KILL, KLINE and DLINE (OLD 'K' flag)
462     * unkline: allows UNKLINE and UNDLINE (OLD 'U' flag)
463     * gline: allows GLINE (OLD 'G' flag)
464 michael 951 * xline: allows XLINE (OLD 'X' flag)
465 adx 30 * operwall: allows OPERWALL
466     * nick_changes: allows oper to see nickchanges (OLD 'N' flag)
467     * via usermode +n
468     * rehash: allows oper to REHASH config (OLD 'H' flag)
469     * die: allows DIE and RESTART (OLD 'D' flag)
470     * admin: gives admin privileges. admins
471     * may (un)load modules and see the
472     * real IPs of servers.
473     * hidden_admin: same as 'admin', but noone can recognize you as
474 michael 583 * being an admin
475 adx 30 * hidden_oper: not shown in /stats p (except for other operators)
476     */
477     /* You can either use
478     * die = yes;
479     * rehash = yes;
480     *
481     * or in a flags statement i.e.
482     * flags = die, rehash;
483     *
484     * You can also negate a flag with ~ i.e.
485     * flags = ~remote;
486     *
487     */
488     flags = global_kill, remote, kline, unkline, xline,
489     die, rehash, nick_changes, admin, operwall;
490     };
491    
492 michael 583 /*
493     * connect {}: controls servers we connect to (OLD C:, N:, H:, L:)
494     */
495 adx 30 connect {
496     /* name: the name of the server */
497     name = "irc.uplink.com";
498    
499     /*
500     * host: the host or IP to connect to. If a hostname is used it
501     * must match the reverse dns of the server.
502     */
503     host = "192.168.0.1";
504    
505 michael 583 /*
506     * vhost: the IP to bind to when we connect outward to servers.
507     * serverinfo::vhost and serverinfo::vhost6 will be overridden
508     * by this directive.
509     */
510     vhost = "192.168.0.2";
511 michael 548
512 adx 30 /*
513     * passwords: the passwords we send (OLD C:) and accept (OLD N:).
514     * The remote server will have these passwords reversed.
515     */
516     send_password = "password";
517     accept_password = "anotherpassword";
518    
519     /*
520     * encrypted: controls whether the accept_password above has been
521     * encrypted. (OLD CRYPT_LINK_PASSWORD now optional per connect)
522     */
523     encrypted = no;
524    
525     /* port: the port to connect to this server on */
526     port = 6666;
527    
528     /*
529 michael 583 * hub_mask: the mask of servers that this server may hub. Multiple
530 adx 30 * entries are permitted
531     */
532     hub_mask = "*";
533    
534     /*
535     * leaf_mask: the mask of servers this server may not hub. Multiple
536     * entries are permitted. Useful for forbidding EU -> US -> EU routes.
537     */
538     # leaf_mask = "*.uk";
539    
540 michael 583 /* fakename: the servername we pretend to be when we connect */
541 adx 30 # fakename = "*.arpa";
542    
543     /* class: the class this server is in */
544     class = "server";
545    
546     /*
547 michael 124 * autoconn: controls whether we autoconnect to this server or not,
548 michael 583 * dependent on class limits. By default, this is disabled.
549 adx 30 * compressed: controls whether traffic is compressed via ziplinks.
550     * By default, this is disabled
551     * cryptlink: enable full encryption for all data passing between our
552     * server and this link and rsa authentication.
553     * burst_away: This will send the /away string that users have set
554 michael 583 * on the server burst. Note this can be a lot of data
555 adx 30 * and slow down your server burst.
556 michael 330 * topicburst: Send topics to this server during channel burst. Works
557     * only if the server we are connecting to is capable
558     * of TBURST/TB.
559 adx 30 */
560 michael 885 # flags = autoconn, compressed, cryptlink, burst_away, topicburst;
561 adx 30 };
562    
563     connect {
564     name = "encrypted.auth.example";
565     host = "some.host.somewhere";
566     port = 6667;
567    
568     flags = cryptlink;
569    
570     /*
571     * rsa_public_key_file: the path to the public keyfile of the server.
572     * Used instead of passwords.
573     */
574     rsa_public_key_file = "etc/remote.server.keyfile";
575    
576     /*
577     * cipher preference: set the preferred cipher for this link
578     *
579     * Available ciphers are:
580     * BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
581     * RC5.12/128 RC5.8/128 3DES/168 DES/56
582     *
583     * NOTE: Some ciphers may not be supported by your OpenSSL.
584     * Check the output from 'configure' for available ciphers.
585     *
586     * NOTE2: To help you decide what cipher to use, tools/encspeed
587     * will show you approximately how fast each cipher is.
588     * However, blowfish is fast and secure, and is probably
589     * a good default for most situations.
590     *
591     * NOTE3: Default if none is set is BF/128
592     *
593     * The cipher *MUST* be the same in both directions. If you
594     * set a cipher preference, your uplink must set the same cipher,
595     * else it will not link.
596     */
597     # cipher_preference = "BF/168";
598     };
599    
600     /*
601 michael 583 * NOTE: Don't add an extra 'name=' entry if you use
602 adx 30 * the connect "name"{} feature
603     */
604     connect "ipv6.some.server" {
605     host = "3ffd:dead:beef::1";
606     send_password = "password";
607     accept_password = "password";
608     port = 6666;
609    
610     /*
611     * aftype: controls whether the connection uses "ipv4" or "ipv6".
612     * Default is ipv4.
613     */
614     aftype = ipv6;
615     class = "server";
616     };
617    
618 michael 583 /*
619     * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
620 adx 30 * automatically (OLD hyb6 SLAVE_SERVERS)
621     */
622     cluster {
623 michael 583 /*
624     * name: the server to share with, this can take wildcards
625     *
626     * NOTE: only local actions will be clustered, meaning if
627 adx 30 * the server receives a shared kline/unkline/etc, it
628     * will not be propagated to clustered servers.
629     *
630     * Remote servers are not necessarily required to accept
631     * clustered lines, they need a shared{} for *THIS* server
632     * in order to accept them.
633     */
634     name = "*.arpa";
635    
636     /*
637     * type: list of what to share, options are as follows:
638     * kline - share klines
639     * tkline - share temporary klines
640     * unkline - share unklines
641     * xline - share xlines
642     * txline - share temporary xlines
643     * unxline - share unxlines
644     * resv - share resvs
645     * tresv - share temporary resvs
646     * unresv - share unresvs
647     * locops - share locops
648     * all - share all of the above (default)
649     */
650     type = kline, unkline, locops, xline, resv;
651     };
652    
653 michael 583 /*
654     * shared {}: users that are allowed to remote kline (OLD U:)
655 adx 30 *
656 michael 583 * NOTE: This can be effectively used for remote klines.
657     * Please note that there is no password authentication
658     * for users setting remote klines. You must also be
659     * /oper'd in order to issue a remote kline.
660 adx 30 */
661     shared {
662     /*
663     * name: the server the user must be on to set klines. If this is not
664     * specified, the user will be allowed to kline from all servers.
665     */
666     name = "irc2.some.server";
667    
668     /*
669     * user: the user@host mask that is allowed to set klines. If this is
670     * not specified, all users on the server above will be allowed to set
671     * a remote kline.
672     */
673     user = "oper@my.host.is.spoofed";
674    
675     /*
676     * type: list of what to share, options are as follows:
677     * kline - allow oper/server to kline
678     * tkline - allow temporary klines
679     * unkline - allow oper/server to unkline
680     * xline - allow oper/server to xline
681     * txline - allow temporary xlines
682     * unxline - allow oper/server to unxline
683     * resv - allow oper/server to resv
684     * tresv - allow temporary resvs
685     * unresv - allow oper/server to unresv
686     * locops - allow oper/server to locops - only used for servers that cluster
687     * all - allow oper/server to do all of the above (default)
688     */
689     type = kline, unkline, resv;
690     };
691    
692 michael 583 /*
693     * kill {}: users that are not allowed to connect (OLD K:)
694 adx 30 * Oper issued klines will be added to the specified kline config
695     */
696     kill {
697     user = "bad@*.hacked.edu";
698     reason = "Obviously hacked account";
699     };
700    
701     kill {
702 michael 951 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
703    
704     /*
705     * NOTE: You have to set type=regex; when using a regular expression
706     * based user entry
707     */
708 adx 30 type = regex;
709     };
710    
711 michael 583 /*
712     * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
713 adx 30 * Oper issued dlines will be added to the specified dline config
714     */
715     deny {
716     ip = "10.0.1.0/24";
717     reason = "Reconnecting vhosted bots";
718     };
719    
720 michael 583 /*
721     * exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:)
722 adx 30 *
723 michael 584 * EFnet Note: We really suggest to enable general::stats_e_disabled
724     * if you plan to exempt EFnet server IPs you don't want to show to
725     * other operators and/or administrators through "STATS e".
726 adx 30 */
727     exempt {
728     ip = "192.168.0.0/16";
729     };
730    
731 michael 583 /*
732     * resv {}: nicks and channels users may not use/join (OLD Q:)
733     */
734 adx 30 resv {
735     /* reason: the reason for the proceeding resv's */
736     reason = "There are no services on this network";
737    
738     /* resv: the nicks and channels users may not join/use */
739     nick = "nickserv";
740     nick = "chanserv";
741     nick = "operserv";
742     nick = "JUPES";
743     nick = "JUPE";
744     nick = "CH?NF?X"; # CHANFIX (services.int)
745    
746     /* These are totally optional, but may be a good idea */
747     nick = "oper";
748     nick = "ircop";
749     nick = "op";
750     nick = "ident";
751     nick = "pass";
752     channel = "#jupedchan";
753    
754     /* resv: wildcard masks are also supported in nicks only */
755     reason = "Clone bots";
756     nick = "clone*";
757     };
758    
759 michael 583 /*
760     * gecos {}: The X: replacement, used for banning users based on
761     * their "realname".
762 adx 30 */
763     gecos {
764     name = "*sex*";
765     reason = "Possible spambot";
766     };
767    
768     gecos {
769     name = "sub7server";
770     reason = "Trojan drone";
771     };
772    
773     gecos {
774     name = "*http*";
775     reason = "Spambot";
776     };
777    
778     gecos {
779     name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
780 michael 951
781     /*
782     * NOTE: You have to set type=regex; when using a regular expression
783     * based name entry
784     */
785 adx 30 type = regex;
786     };
787    
788     /*
789 michael 583 * channel {}: The channel block contains options pertaining to channels
790 adx 30 */
791     channel {
792 michael 56 /*
793 michael 632 * disable_fake_channels: this option, if set to 'yes', will
794     * disallow clients to create or join channels that have one
795     * of the following ASCII characters in their name:
796     *
797     * 2 | bold
798     * 3 | mirc color
799 michael 639 * 15 | plain text
800 michael 632 * 22 | reverse
801     * 31 | underline
802     * 160 | non-breaking space
803     */
804     disable_fake_channels = yes;
805    
806     /*
807 michael 56 * restrict_channels: reverse channel RESVs logic, only reserved
808     * channels are allowed
809     */
810     restrict_channels = no;
811 adx 30
812     /*
813     * disable_local_channels: prevent users from joining &channels.
814     */
815     disable_local_channels = no;
816    
817     /*
818     * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
819     * that can join a +i channel without an invite.
820     */
821     use_invex = yes;
822    
823     /*
824     * use_except: Enable/disable channel mode +e, a n!u@h list of masks
825     * that can join a channel through a ban (+b).
826     */
827     use_except = yes;
828    
829     /*
830     * use_knock: Allows users to request an invite to a channel that
831     * is locked somehow (+ikl). If the channel is +p or you are banned
832     * the knock will not be sent.
833     *
834     * EFnet Note: This seems to be used mostly by European servers
835     * and not North American ones.
836 michael 583 * Please feel free to disable this if you do not
837     * want to run channel knock.
838 adx 30 * channel knock allows an user to "/quote knock #channel"
839 michael 583 * to ask for an invite. It is typically used in eu-efnet
840 adx 30 * to ask for an invite to #eu-opers.
841 adx 201 * A user who is banned will not have their knock
842 michael 583 * sent to channel. It is paced, so knock will not
843 adx 30 * cause a flood.
844     */
845     use_knock = yes;
846    
847     /*
848     * knock_delay: The amount of time a user must wait between issuing
849     * the knock command.
850     */
851 michael 951 knock_delay = 5 minutes;
852 adx 30
853     /*
854     * knock_delay_channel: How often a knock to any specific channel
855     * is permitted, regardless of the user sending the knock.
856     */
857     knock_delay_channel = 1 minute;
858    
859 michael 583 /*
860     * burst_topicwho: enable sending of who set topic on topicburst
861     * default is yes
862     */
863 adx 201 burst_topicwho = yes;
864 adx 30
865 michael 583 /*
866     * max_chans_per_user: The maximum number of channels a user can
867     * join/be on.
868     */
869 adx 30 max_chans_per_user = 25;
870    
871     /* quiet_on_ban: stop banned people talking in channels. */
872     quiet_on_ban = yes;
873    
874     /* max_bans: maximum number of +b/e/I modes in a channel */
875     max_bans = 100;
876    
877     /*
878 adx 201 * how many joins in how many seconds constitute a flood, use 0 to
879     * disable. +b opers will be notified (changeable via /set)
880     */
881     join_flood_count = 16;
882     join_flood_time = 8 seconds;
883    
884     /*
885 adx 30 * splitcode: The ircd will now check splitmode every few seconds.
886     *
887     * Either split users or split servers can activate splitmode, but
888     * both conditions must be met for the ircd to deactivate splitmode.
889     *
890     * You may force splitmode to be permanent by /quote set splitmode on
891     */
892    
893     /*
894     * default_split_user_count: when the usercount is lower than this level,
895     * consider ourselves split. This must be set for automatic splitmode.
896     */
897     default_split_user_count = 40000;
898    
899     /*
900     * default_split_server_count: when the servercount is lower than this,
901     * consider ourselves split. This must be set for automatic splitmode.
902     */
903     default_split_server_count = 10;
904    
905 michael 959 /* no_create_on_split: disallow users creating channels on split. */
906 adx 30 no_create_on_split = yes;
907    
908 michael 959 /* no_join_on_split: disallow users joining channels at all on a split. */
909 adx 30 no_join_on_split = no;
910     };
911    
912     /*
913 michael 583 * serverhide {}: The serverhide block contains the options regarding
914     * serverhiding
915 adx 30 */
916     serverhide {
917     /*
918     * flatten_links: this option will show all servers in /links appear
919     * that they are linked to this current server
920     *
921     * EFnet Note: While this is not a requirement on EFnet, it
922     * may be a good idea. Except, it's useless
923     * unless the entire net runs it.
924     */
925 michael 951 flatten_links = no;
926 adx 30
927     /*
928     * links_delay: how often to update the links file when it is
929     * flattened.
930     */
931     links_delay = 5 minutes;
932    
933     /*
934     * hidden: hide this server from a /links output on servers that
935 michael 583 * support it. This allows hub servers to be hidden etc.
936 adx 30 */
937     hidden = no;
938    
939     /*
940     * disable_hidden: prevent servers hiding themselves from a
941     * /links output.
942     */
943     disable_hidden = no;
944    
945     /*
946     * hide_servers: hide remote servernames everywhere and instead use
947     * hidden_name and network_desc.
948     */
949     hide_servers = no;
950    
951     /*
952     * Use this as the servername users see if hide_servers = yes.
953     */
954 michael 583 hidden_name = "*.hidden.com";
955 adx 30
956     /*
957 michael 951 * hide_server_ips: If this is disabled, opers will be unable to see
958     * servers ips and will be shown a masked ip, admins will be shown the
959     * real ip.
960 adx 30 *
961 michael 951 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
962     * it has the side effect of hiding the ips everywhere, including
963     * logfiles.
964 adx 30 *
965     * We recommend you leave this disabled, and just take care with who you
966     * give admin=yes; to.
967     */
968     hide_server_ips = yes;
969     };
970    
971     /*
972 michael 583 * general {}: The general block contains many of the options that were once
973     * compiled in options in config.h. The general block is read at start time.
974 adx 30 */
975     general {
976 michael 951 /* max_watch: maximum WATCH entries a client can have. */
977 michael 876 max_watch = 64;
978    
979 adx 30 /*
980     * gline_min_cidr: the minimum required length of a CIDR bitmask
981     * for IPv4 based glines
982     */
983     gline_min_cidr = 16;
984    
985     /*
986     * gline_min_cidr6: the minimum required length of a CIDR bitmask
987     * for IPv6 based glines
988     */
989     gline_min_cidr6 = 48;
990    
991     /*
992     * Whether to automatically set mode +i on connecting users.
993     */
994     invisible_on_connect = yes;
995    
996     /*
997     * If you don't explicitly specify burst_away in your connect blocks, then
998     * they will default to the burst_away value below.
999     */
1000     burst_away = no;
1001    
1002     /*
1003     * Show "actually using host <ip>" on /whois when possible.
1004     */
1005     use_whois_actually = yes;
1006    
1007     /*
1008     * Max time from the nickname change that still causes KILL
1009     * automatically to switch for the current nick of that user. (seconds)
1010     */
1011     kill_chase_time_limit = 90;
1012 michael 951
1013 adx 30 /*
1014 michael 951 * If hide_spoof_ips is disabled, opers will be allowed to see the real
1015     * IP of spoofed users in /trace etc. If this is defined they will be
1016     * shown a masked IP.
1017 adx 30 */
1018     hide_spoof_ips = yes;
1019    
1020     /*
1021 michael 583 * Ignore bogus timestamps from other servers. Yes, this will desync
1022 adx 30 * the network, but it will allow chanops to resync with a valid non TS 0
1023     *
1024     * This should be enabled network wide, or not at all.
1025     */
1026     ignore_bogus_ts = no;
1027    
1028     /*
1029     * disable_auth: completely disable ident lookups; if you enable this,
1030     * be careful of what you set need_ident to in your auth {} blocks
1031     */
1032     disable_auth = no;
1033    
1034     /* disable_remote_commands: disable users doing commands on remote servers */
1035     disable_remote_commands = no;
1036    
1037     /*
1038 michael 583 * tkline_expire_notices: enables or disables temporary kline/xline
1039     * expire notices.
1040 adx 30 */
1041     tkline_expire_notices = no;
1042    
1043     /*
1044     * default_floodcount: the default value of floodcount that is configurable
1045     * via /quote set floodcount. This is the amount of lines a user
1046     * may send to any other user/channel in one second.
1047     */
1048     default_floodcount = 10;
1049    
1050     /*
1051     * failed_oper_notice: send a notice to all opers on the server when
1052     * someone tries to OPER and uses the wrong password, host or ident.
1053     */
1054     failed_oper_notice = yes;
1055    
1056     /*
1057     * dots_in_ident: the amount of '.' characters permitted in an ident
1058     * reply before the user is rejected.
1059     */
1060 michael 951 dots_in_ident = 2;
1061 adx 30
1062     /*
1063     * dot_in_ip6_addr: ircd-hybrid-6.0 and earlier will disallow hosts
1064 michael 583 * without a '.' in them. This will add one to the end. Only needed
1065 adx 30 * for older servers.
1066     */
1067     dot_in_ip6_addr = no;
1068    
1069     /*
1070     * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1071     * placed via the server. klines hand placed are exempt from limits.
1072     * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1073     */
1074     min_nonwildcard = 3;
1075    
1076     /*
1077     * min_nonwildcard_simple: the minimum non wildcard characters in
1078     * gecos bans. wildcard chars: '*' '?' '#'
1079     */
1080     min_nonwildcard_simple = 3;
1081    
1082     /* max_accept: maximum allowed /accept's for +g usermode */
1083     max_accept = 20;
1084    
1085     /* anti_nick_flood: enable the nickflood control code */
1086     anti_nick_flood = yes;
1087    
1088     /* nick flood: the nick changes allowed in the specified period */
1089     max_nick_time = 20 seconds;
1090     max_nick_changes = 5;
1091    
1092     /*
1093     * anti_spam_exit_message_time: the minimum time a user must be connected
1094     * before custom quit messages are allowed.
1095     */
1096     anti_spam_exit_message_time = 5 minutes;
1097    
1098     /*
1099     * ts delta: the time delta allowed between server clocks before
1100     * a warning is given, or before the link is dropped. all servers
1101     * should run ntpdate/rdate to keep clocks in sync
1102     */
1103     ts_warn_delta = 30 seconds;
1104     ts_max_delta = 5 minutes;
1105    
1106     /*
1107     * kline_with_reason: show the user the reason why they are k/d/glined
1108     * on exit. May give away who set k/dline when set via tcm.
1109     */
1110     kline_with_reason = yes;
1111    
1112     /*
1113     * kline_reason: show this message to users on channel
1114     * instead of the oper reason.
1115     */
1116     kline_reason = "Connection closed";
1117    
1118 michael 583 /*
1119     * reject_hold_time: wait this amount of time before disconnecting
1120     * a rejected client. Use 0 to disable.
1121     */
1122     reject_hold_time = 30 seconds;
1123 adx 30
1124     /*
1125     * warn_no_nline: warn opers about servers that try to connect but
1126     * we don't have a connect {} block for. Twits with misconfigured
1127     * servers can get really annoying with this enabled.
1128     */
1129     warn_no_nline = yes;
1130    
1131 michael 584 /*
1132     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1133     * operators and administrators. Doing so is a good idea in case
1134     * there are any exempted (exempt{}) server IPs you don't want to
1135     * see leaked.
1136     */
1137     stats_e_disabled = no;
1138    
1139 adx 30 /* stats_o_oper only: make stats o (opers) oper only */
1140     stats_o_oper_only = yes;
1141    
1142     /* stats_P_oper_only: make stats P (ports) oper only */
1143     stats_P_oper_only = yes;
1144    
1145     /*
1146     * stats i oper only: make stats i (auth {}) oper only. set to:
1147     * yes: show users no auth blocks, made oper only.
1148     * masked: show users first matching auth block
1149     * no: show users all auth blocks.
1150     */
1151     stats_i_oper_only = yes;
1152    
1153     /*
1154     * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1155     * yes: show users no auth blocks, made oper only
1156     * masked: show users first matching auth block
1157     * no: show users all auth blocks.
1158     */
1159     stats_k_oper_only = yes;
1160 michael 583
1161 adx 30 /*
1162     * caller_id_wait: time between notifying a +g user that somebody
1163     * is messaging them.
1164     */
1165     caller_id_wait = 1 minute;
1166    
1167     /*
1168 michael 56 * opers_bypass_callerid: allows operators to bypass +g and message
1169     * anyone who has it set (useful if you use services).
1170     */
1171     opers_bypass_callerid = no;
1172    
1173     /*
1174 adx 30 * pace_wait_simple: time between use of less intensive commands
1175 adx 269 * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1176 adx 30 */
1177     pace_wait_simple = 1 second;
1178    
1179     /*
1180     * pace_wait: time between more intensive commands
1181 adx 269 * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1182 adx 30 */
1183     pace_wait = 10 seconds;
1184    
1185     /*
1186     * short_motd: send clients a notice telling them to read the motd
1187     * instead of forcing a motd to clients who may simply ignore it.
1188     */
1189     short_motd = no;
1190    
1191     /*
1192     * ping_cookie: require clients to respond exactly to a ping command,
1193     * can help block certain types of drones and FTP PASV mode spoofing.
1194     */
1195     ping_cookie = no;
1196    
1197     /* no_oper_flood: increase flood limits for opers. */
1198     no_oper_flood = yes;
1199    
1200     /*
1201     * true_no_oper_flood: completely eliminate flood limits for opers
1202     * and for clients with can_flood = yes in their auth {} blocks
1203     */
1204     true_no_oper_flood = yes;
1205    
1206     /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1207     oper_pass_resv = yes;
1208    
1209     /*
1210     * idletime: the maximum amount of time a user may idle before
1211     * they are disconnected
1212     */
1213     idletime = 0;
1214    
1215     /* REMOVE ME. The following line checks you've been reading. */
1216     havent_read_conf = 1;
1217    
1218     /*
1219     * max_targets: the maximum amount of targets in a single
1220     * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1221     */
1222     max_targets = 4;
1223    
1224     /*
1225     * client_flood: maximum amount of data in a clients queue before
1226     * they are dropped for flooding.
1227     */
1228     client_flood = 2560 bytes;
1229    
1230     /*
1231     * message_locale: the default message locale
1232     * Use "standard" for the compiled in defaults.
1233     * To install the translated messages, go into messages/ in the
1234     * source directory and run `make install'.
1235     */
1236     message_locale = "standard";
1237    
1238     /*
1239     * usermodes configurable: a list of usermodes for the options below
1240     *
1241     * +b - bots - See bot and drone flooding notices
1242     * +c - cconn - Client connection/quit notices
1243 michael 959 * +C - cconn_full - Client connection/quit notices full
1244 adx 30 * +D - deaf - Don't receive channel messages
1245     * +d - debug - See debugging notices
1246     * +f - full - See I: line full notices
1247     * +G - softcallerid - Server Side Ignore for users not on your channels
1248     * +g - callerid - Server Side Ignore (for privmsgs etc)
1249     * +i - invisible - Not shown in NAMES or WHO unless you share a
1250     * a channel
1251     * +k - skill - See server generated KILL messages
1252     * +l - locops - See LOCOPS messages
1253     * +n - nchange - See client nick changes
1254     * +r - rej - See rejected client notices
1255     * +s - servnotice - See general server notices
1256     * +u - unauth - See unauthorized client notices
1257     * +w - wallop - See server generated WALLOPS
1258     * +x - external - See remote server connection and split notices
1259     * +y - spy - See LINKS, STATS, TRACE notices etc.
1260     * +z - operwall - See oper generated WALLOPS
1261     */
1262 michael 583
1263 adx 30 /* oper_only_umodes: usermodes only opers may set */
1264 db 853 oper_only_umodes = bots, cconn, cconn_full, debug, full, skill,
1265     nchange, rej, spy, external, operwall,
1266     locops, unauth;
1267 adx 30
1268     /* oper_umodes: default usermodes opers get when they /oper */
1269 adx 264 oper_umodes = bots, locops, servnotice, operwall, wallop;
1270 adx 30
1271     /*
1272     * servlink_path: path to 'servlink' program used by ircd to handle
1273     * encrypted/compressed server <-> server links.
1274     *
1275     * only define if servlink is not in same directory as ircd itself.
1276     */
1277     #servlink_path = "/usr/local/ircd/bin/servlink";
1278    
1279     /*
1280     * default_cipher_preference: default cipher to use for cryptlink when none is
1281     * specified in connect block.
1282     */
1283     #default_cipher_preference = "BF/168";
1284    
1285     /*
1286     * use_egd: if your system does not have *random devices yet you
1287     * want to use OpenSSL and encrypted links, enable this. Beware -
1288     * EGD is *very* CPU intensive when gathering data for its pool
1289     */
1290     # use_egd = yes;
1291    
1292     /*
1293     * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1294     * which automatically finds the path.
1295     */
1296     # egdpool_path = "/var/run/egd-pool";
1297    
1298    
1299     /*
1300     * compression_level: level of compression for compressed links between
1301     * servers.
1302     *
1303     * values are between: 1 (least compression, fastest)
1304     * and: 9 (most compression, slowest).
1305     */
1306     # compression_level = 6;
1307    
1308     /*
1309     * throttle_time: the minimum amount of time between connections from
1310     * the same ip. exempt {} blocks are excluded from this throttling.
1311     * Offers protection against flooders who reconnect quickly.
1312     * Set to 0 to disable.
1313     */
1314     throttle_time = 0;
1315     };
1316    
1317     glines {
1318     /*
1319     * EFnet Note: This feature is required for European EFnet servers
1320     * and is used by several North American servers. As
1321     * such, it has been left on by default. If you
1322     * do not want your server to participate in G:Lines
1323     * you should disable this.
1324     */
1325    
1326     /* enable: enable glines, network wide temp klines */
1327     enable = yes;
1328    
1329 michael 583 /*
1330     * duration: the amount of time a gline will remain on your
1331     * server before expiring
1332     */
1333 adx 30 duration = 1 day;
1334    
1335 michael 583 /*
1336     * logging: which types of rules you want to log when triggered
1337     * (choose reject or block)
1338     */
1339 adx 30 logging = reject, block;
1340    
1341     /*
1342 michael 583 * NOTE: gline ACLs can cause a desync of glines throughout the
1343     * network, meaning some servers may have a gline triggered, and
1344     * others may not. Also, you only need insert rules for glines
1345     * that you want to block and/or reject. If you want to accept and
1346     * propagate the gline, do NOT put a rule for it.
1347 adx 30 */
1348    
1349     /* user@host for rule to apply to */
1350     user = "god@I.still.hate.packets";
1351     /* server for rule to apply to */
1352     name = "hades.arpa";
1353    
1354     /*
1355     * action: action to take when a matching gline is found. options are:
1356     * reject - do not apply the gline locally
1357     * block - do not propagate the gline
1358     */
1359     action = reject, block;
1360    
1361     user = "god@*";
1362     name = "*";
1363     action = block;
1364     };
1365    
1366     modules {
1367     /*
1368 michael 951 * path: other paths to search for modules specified below
1369 adx 30 * and in /modload.
1370     */
1371 michael 912 path = "@LIBDIR@/modules";
1372     path = "@LIBDIR@/modules/autoload";
1373 adx 30
1374     /* module: the name of a module to load on startup/rehash */
1375     #module = "some_module.so";
1376     };

Properties

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