ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 632
Committed: Thu Jun 1 10:53:00 2006 UTC (20 years, 4 months ago) by michael
Original Path: ircd-hybrid-7.2/etc/example.efnet.conf
File size: 38312 byte(s)
Log Message:
- Added channel::disable_fake_channels which disallows creation of channels
  that have ascii 2, 3, 31 and 160 in their names.
- Minor improvements and cleanups to channel name validation routines
  backported from 7.3

File Contents

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

Properties

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