ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 1229
Committed: Mon Sep 19 11:57:21 2011 UTC (14 years, 10 months ago) by michael
Original Path: ircd-hybrid-8/etc/example.efnet.conf
File size: 38550 byte(s)
Log Message:
- Minor cleanups to example configuration files

File Contents

# User Rev Content
1 michael 584 /* doc/example.efnet.conf - ircd-hybrid-7 EFnet Example configuration file
2 michael 1134 * Copyright (C) 2000-2011 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 michael 1229 * serverinfo {}: contains information about the server
47 michael 583 */
48 adx 30 serverinfo {
49 michael 583 /*
50 michael 1070 * name: the name of this server. This cannot be changed at runtime.
51 michael 583 */
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 michael 1229 * openssl genrsa -out rsa.key 2048
104 adx 30 * 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 michael 1229 * admin {}: contains admin information about the server
142 michael 583 */
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 michael 1229 * class {}: contains information about classes for users
177 michael 583 */
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 michael 1229 * listen {}: contains information about the ports ircd listens on
278 michael 583 */
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 michael 1229 * hidden - Port is hidden from /stats P, unless you're an admin
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 michael 1229 * auth {}: allow users to connect to the ircd
319 michael 583 */
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 michael 1229 * 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 adx 30 */
359     flags = need_password, spoof_notice, exceed_limit, kline_exempt,
360 michael 1176 gline_exempt, resv_exempt, no_tilde, can_flood;
361 adx 30 };
362    
363     auth {
364     /*
365     * redirect: the server and port to redirect a user to. A user does
366     * not have to obey the redirection, the ircd just suggests an alternative
367     * server for them.
368     */
369 db 806 redirserv = "this.is.not.a.real.server";
370 adx 30 redirport = 6667;
371    
372 db 806 user = "*.server";
373 adx 30
374     /* class: a class is required even though it is not used */
375     class = "users";
376     };
377    
378     auth {
379     user = "*@*";
380     class = "users";
381     flags = need_ident;
382     };
383    
384 michael 583 /*
385 michael 1229 * operator {}: defines ircd operators
386 michael 583 *
387 adx 30 * ircd-hybrid no longer supports local operators, privileges are
388     * controlled via flags.
389     */
390     operator {
391     /* name: the name of the oper */
392 michael 583 /* NOTE: operator "opername"{} is also supported */
393 adx 30 name = "god";
394    
395     /*
396     * user: the user@host required for this operator. CIDR is not
397     * supported. Multiple user="" lines are supported.
398     */
399     user = "*god@*";
400     user = "*@127.0.0.1";
401    
402     /*
403     * password: the password required to oper. By default this will
404 michael 1070 * need to be encrypted by using the provided mkpasswd tool.
405     * Several password hash algorithms are available depending
406     * on your system's crypt() implementation. For example, a modern
407     * glibc already has support for SHA-256/512, and MD5 encryption
408     * algorithms.
409 adx 30 */
410 michael 1070 password = "$5$x5zof8qe.Yc7/bPp$5zIg1Le2Lsgd4CvOjaD20pr5PmcfD7ha/9b2.TaUyG4";
411 adx 30
412     /*
413     * encrypted: controls whether the oper password above has been
414 michael 1070 * encrypted.
415 adx 30 */
416     encrypted = yes;
417    
418     /*
419     * rsa_public_key_file: the public key for this oper when using Challenge.
420     * A password should not be defined when this is used, see
421     * doc/challenge.txt for more information.
422     */
423     # rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
424    
425     /* class: the class the oper joins when they successfully /oper */
426     class = "opers";
427    
428     /*
429 michael 56 * umodes: default usermodes opers get when they /oper. If defined,
430     * it will override oper_umodes settings in general {}.
431     * Available usermodes:
432     *
433     * +b - bots - See bot and drone flooding notices
434     * +c - cconn - Client connection/quit notices
435 db 853 * +C - cconn_full - Client connection/quit notices full
436 michael 56 * +D - deaf - Don't receive channel messages
437     * +d - debug - See debugging notices
438     * +f - full - See I: line full notices
439     * +G - softcallerid - Server Side Ignore for users not on your channels
440     * +g - callerid - Server Side Ignore (for privmsgs etc)
441     * +i - invisible - Not shown in NAMES or WHO unless you share a
442     * a channel
443     * +k - skill - See server generated KILL messages
444     * +l - locops - See LOCOPS messages
445     * +n - nchange - See client nick changes
446     * +r - rej - See rejected client notices
447     * +s - servnotice - See general server notices
448     * +u - unauth - See unauthorized client notices
449     * +w - wallop - See server generated WALLOPS
450     * +x - external - See remote server connection and split notices
451     * +y - spy - See LINKS, STATS, TRACE notices etc.
452     * +z - operwall - See oper generated WALLOPS
453     */
454     # umodes = locops, servnotice, operwall, wallop;
455    
456     /*
457 adx 30 * privileges: controls the activities and commands an oper is
458 michael 1228 * allowed to do on the server. All options default to no.
459 adx 30 * Available options:
460     *
461 michael 1229 * module - allows MODLIST, MODRESTART, MODLOAD, MODUNLOAD
462     * global_kill - allows remote users to be /KILL'd
463     * remote - allows remote SQUIT and CONNECT
464     * remoteban - allows remote KLINE/UNKLINE
465     * kline - allows KILL, KLINE and DLINE
466     * unkline - allows UNKLINE and UNDLINE
467     * gline - allows GLINE
468     * xline - allows XLINE
469     * globops - allows GLOBOPS
470     * operwall - allows OPERWALL
471     * nick_changes - allows oper to see nickchanges via usermode +n
472     * rehash - allows oper to REHASH config
473     * die - allows DIE
474     * restart - allows RESTART
475     * admin - gives admin privileges. admins for example,
476     * may see the real IP addresses of servers.
477     * hidden_admin - same as 'admin', but noone can recognize you as
478     * being an admin
479     * hidden_oper - not shown in /stats p (except for other operators)
480 adx 30 */
481 michael 1228 flags = global_kill, remote, kline, unkline, xline, globops, restart,
482     die, rehash, nick_changes, admin, operwall, module;
483 adx 30 };
484    
485 michael 583 /*
486 michael 1229 * connect {}: controls servers we connect to
487 michael 583 */
488 adx 30 connect {
489     /* name: the name of the server */
490     name = "irc.uplink.com";
491    
492     /*
493     * host: the host or IP to connect to. If a hostname is used it
494     * must match the reverse dns of the server.
495     */
496     host = "192.168.0.1";
497    
498 michael 583 /*
499     * vhost: the IP to bind to when we connect outward to servers.
500     * serverinfo::vhost and serverinfo::vhost6 will be overridden
501     * by this directive.
502     */
503     vhost = "192.168.0.2";
504 michael 548
505 adx 30 /*
506     * passwords: the passwords we send (OLD C:) and accept (OLD N:).
507     * The remote server will have these passwords reversed.
508     */
509     send_password = "password";
510     accept_password = "anotherpassword";
511    
512     /*
513     * encrypted: controls whether the accept_password above has been
514 michael 1070 * encrypted.
515 adx 30 */
516     encrypted = no;
517    
518     /* port: the port to connect to this server on */
519     port = 6666;
520    
521     /*
522 michael 583 * hub_mask: the mask of servers that this server may hub. Multiple
523 adx 30 * entries are permitted
524     */
525     hub_mask = "*";
526    
527     /*
528     * leaf_mask: the mask of servers this server may not hub. Multiple
529     * entries are permitted. Useful for forbidding EU -> US -> EU routes.
530     */
531     # leaf_mask = "*.uk";
532    
533     /* class: the class this server is in */
534     class = "server";
535    
536     /*
537 michael 1229 * autoconn - controls whether we autoconnect to this server or not,
538 michael 583 * dependent on class limits. By default, this is disabled.
539 michael 1229 * compressed - controls whether traffic is compressed via ziplinks.
540 adx 30 * By default, this is disabled
541 michael 1229 * cryptlink - enable full encryption for all data passing between our
542 adx 30 * server and this link and rsa authentication.
543 michael 1229 * burst_away - This will send the /away string that users have set
544 michael 583 * on the server burst. Note this can be a lot of data
545 adx 30 * and slow down your server burst.
546 michael 1229 * topicburst - Send topics to this server during channel burst. Works
547 michael 330 * only if the server we are connecting to is capable
548     * of TBURST/TB.
549 adx 30 */
550 michael 885 # flags = autoconn, compressed, cryptlink, burst_away, topicburst;
551 adx 30 };
552    
553     connect {
554     name = "encrypted.auth.example";
555     host = "some.host.somewhere";
556     port = 6667;
557    
558     flags = cryptlink;
559    
560     /*
561     * rsa_public_key_file: the path to the public keyfile of the server.
562     * Used instead of passwords.
563     */
564     rsa_public_key_file = "etc/remote.server.keyfile";
565    
566     /*
567     * cipher preference: set the preferred cipher for this link
568     *
569     * Available ciphers are:
570     * BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
571     * RC5.12/128 RC5.8/128 3DES/168 DES/56
572     *
573     * NOTE: Some ciphers may not be supported by your OpenSSL.
574     * Check the output from 'configure' for available ciphers.
575     *
576     * NOTE2: To help you decide what cipher to use, tools/encspeed
577     * will show you approximately how fast each cipher is.
578     * However, blowfish is fast and secure, and is probably
579     * a good default for most situations.
580     *
581     * NOTE3: Default if none is set is BF/128
582     *
583     * The cipher *MUST* be the same in both directions. If you
584     * set a cipher preference, your uplink must set the same cipher,
585     * else it will not link.
586     */
587     # cipher_preference = "BF/168";
588     };
589    
590     /*
591 michael 583 * NOTE: Don't add an extra 'name=' entry if you use
592 adx 30 * the connect "name"{} feature
593     */
594     connect "ipv6.some.server" {
595     host = "3ffd:dead:beef::1";
596     send_password = "password";
597     accept_password = "password";
598     port = 6666;
599    
600     /*
601     * aftype: controls whether the connection uses "ipv4" or "ipv6".
602     * Default is ipv4.
603     */
604     aftype = ipv6;
605     class = "server";
606     };
607    
608 michael 583 /*
609     * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
610 michael 1229 * automatically
611 adx 30 */
612     cluster {
613 michael 583 /*
614     * name: the server to share with, this can take wildcards
615     *
616     * NOTE: only local actions will be clustered, meaning if
617 adx 30 * the server receives a shared kline/unkline/etc, it
618     * will not be propagated to clustered servers.
619     *
620     * Remote servers are not necessarily required to accept
621     * clustered lines, they need a shared{} for *THIS* server
622     * in order to accept them.
623     */
624     name = "*.arpa";
625    
626     /*
627     * type: list of what to share, options are as follows:
628     * kline - share klines
629     * tkline - share temporary klines
630     * unkline - share unklines
631     * xline - share xlines
632     * txline - share temporary xlines
633     * unxline - share unxlines
634     * resv - share resvs
635     * tresv - share temporary resvs
636     * unresv - share unresvs
637     * locops - share locops
638     * all - share all of the above (default)
639     */
640     type = kline, unkline, locops, xline, resv;
641     };
642    
643 michael 583 /*
644 michael 1229 * shared {}: users that are allowed to remote kline
645 adx 30 *
646 michael 583 * NOTE: This can be effectively used for remote klines.
647     * Please note that there is no password authentication
648     * for users setting remote klines. You must also be
649     * /oper'd in order to issue a remote kline.
650 adx 30 */
651     shared {
652     /*
653     * name: the server the user must be on to set klines. If this is not
654     * specified, the user will be allowed to kline from all servers.
655     */
656     name = "irc2.some.server";
657    
658     /*
659     * user: the user@host mask that is allowed to set klines. If this is
660     * not specified, all users on the server above will be allowed to set
661     * a remote kline.
662     */
663     user = "oper@my.host.is.spoofed";
664    
665     /*
666     * type: list of what to share, options are as follows:
667     * kline - allow oper/server to kline
668     * tkline - allow temporary klines
669     * unkline - allow oper/server to unkline
670     * xline - allow oper/server to xline
671 michael 1229 * txline - allow temporary xlines
672 adx 30 * unxline - allow oper/server to unxline
673     * resv - allow oper/server to resv
674 michael 1229 * tresv - allow temporary resvs
675 adx 30 * unresv - allow oper/server to unresv
676 michael 1229 * locops - allow oper/server to locops - only used for servers that cluster
677 adx 30 * all - allow oper/server to do all of the above (default)
678     */
679     type = kline, unkline, resv;
680     };
681    
682 michael 583 /*
683 michael 1229 * kill {}: users that are not allowed to connect
684 adx 30 * Oper issued klines will be added to the specified kline config
685     */
686     kill {
687     user = "bad@*.hacked.edu";
688     reason = "Obviously hacked account";
689     };
690    
691     kill {
692 michael 951 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
693    
694     /*
695     * NOTE: You have to set type=regex; when using a regular expression
696     * based user entry
697     */
698 adx 30 type = regex;
699     };
700    
701 michael 583 /*
702     * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
703 adx 30 * Oper issued dlines will be added to the specified dline config
704     */
705     deny {
706     ip = "10.0.1.0/24";
707     reason = "Reconnecting vhosted bots";
708     };
709    
710 michael 583 /*
711 michael 1229 * exempt {}: IPs that are exempt from deny {} and Dlines.
712 adx 30 *
713 michael 584 * EFnet Note: We really suggest to enable general::stats_e_disabled
714     * if you plan to exempt EFnet server IPs you don't want to show to
715     * other operators and/or administrators through "STATS e".
716 adx 30 */
717     exempt {
718     ip = "192.168.0.0/16";
719     };
720    
721 michael 583 /*
722 michael 1229 * resv {}: nicks and channels users may not use/join
723 michael 583 */
724 adx 30 resv {
725     /* reason: the reason for the proceeding resv's */
726     reason = "There are no services on this network";
727    
728     /* resv: the nicks and channels users may not join/use */
729     nick = "nickserv";
730     nick = "chanserv";
731     nick = "operserv";
732     nick = "JUPES";
733     nick = "JUPE";
734     nick = "CH?NF?X"; # CHANFIX (services.int)
735    
736     /* These are totally optional, but may be a good idea */
737     nick = "oper";
738     nick = "ircop";
739     nick = "op";
740     nick = "ident";
741     nick = "pass";
742     channel = "#jupedchan";
743    
744     /* resv: wildcard masks are also supported in nicks only */
745     reason = "Clone bots";
746     nick = "clone*";
747     };
748    
749 michael 583 /*
750     * gecos {}: The X: replacement, used for banning users based on
751     * their "realname".
752 adx 30 */
753     gecos {
754     name = "*sex*";
755     reason = "Possible spambot";
756     };
757    
758     gecos {
759     name = "sub7server";
760     reason = "Trojan drone";
761     };
762    
763     gecos {
764     name = "*http*";
765     reason = "Spambot";
766     };
767    
768     gecos {
769     name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
770 michael 951
771     /*
772     * NOTE: You have to set type=regex; when using a regular expression
773     * based name entry
774     */
775 adx 30 type = regex;
776     };
777    
778     /*
779 michael 583 * channel {}: The channel block contains options pertaining to channels
780 adx 30 */
781     channel {
782 michael 56 /*
783 michael 632 * disable_fake_channels: this option, if set to 'yes', will
784     * disallow clients to create or join channels that have one
785     * of the following ASCII characters in their name:
786     *
787     * 2 | bold
788     * 3 | mirc color
789 michael 639 * 15 | plain text
790 michael 632 * 22 | reverse
791     * 31 | underline
792     * 160 | non-breaking space
793     */
794     disable_fake_channels = yes;
795    
796     /*
797 michael 56 * restrict_channels: reverse channel RESVs logic, only reserved
798     * channels are allowed
799     */
800     restrict_channels = no;
801 adx 30
802     /*
803     * disable_local_channels: prevent users from joining &channels.
804     */
805     disable_local_channels = no;
806    
807     /*
808     * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
809     * that can join a +i channel without an invite.
810     */
811     use_invex = yes;
812    
813     /*
814     * use_except: Enable/disable channel mode +e, a n!u@h list of masks
815     * that can join a channel through a ban (+b).
816     */
817     use_except = yes;
818    
819     /*
820     * use_knock: Allows users to request an invite to a channel that
821     * is locked somehow (+ikl). If the channel is +p or you are banned
822     * the knock will not be sent.
823     *
824     * EFnet Note: This seems to be used mostly by European servers
825     * and not North American ones.
826 michael 583 * Please feel free to disable this if you do not
827     * want to run channel knock.
828 adx 30 * channel knock allows an user to "/quote knock #channel"
829 michael 583 * to ask for an invite. It is typically used in eu-efnet
830 adx 30 * to ask for an invite to #eu-opers.
831 adx 201 * A user who is banned will not have their knock
832 michael 583 * sent to channel. It is paced, so knock will not
833 adx 30 * cause a flood.
834     */
835     use_knock = yes;
836    
837     /*
838     * knock_delay: The amount of time a user must wait between issuing
839     * the knock command.
840     */
841 michael 951 knock_delay = 5 minutes;
842 adx 30
843     /*
844     * knock_delay_channel: How often a knock to any specific channel
845     * is permitted, regardless of the user sending the knock.
846     */
847     knock_delay_channel = 1 minute;
848    
849 michael 583 /*
850     * burst_topicwho: enable sending of who set topic on topicburst
851     * default is yes
852     */
853 adx 201 burst_topicwho = yes;
854 adx 30
855 michael 583 /*
856     * max_chans_per_user: The maximum number of channels a user can
857     * join/be on.
858     */
859 adx 30 max_chans_per_user = 25;
860    
861     /* quiet_on_ban: stop banned people talking in channels. */
862     quiet_on_ban = yes;
863    
864     /* max_bans: maximum number of +b/e/I modes in a channel */
865     max_bans = 100;
866    
867     /*
868 adx 201 * how many joins in how many seconds constitute a flood, use 0 to
869     * disable. +b opers will be notified (changeable via /set)
870     */
871     join_flood_count = 16;
872     join_flood_time = 8 seconds;
873    
874     /*
875 adx 30 * splitcode: The ircd will now check splitmode every few seconds.
876     *
877     * Either split users or split servers can activate splitmode, but
878     * both conditions must be met for the ircd to deactivate splitmode.
879     *
880     * You may force splitmode to be permanent by /quote set splitmode on
881     */
882    
883     /*
884     * default_split_user_count: when the usercount is lower than this level,
885     * consider ourselves split. This must be set for automatic splitmode.
886     */
887 michael 1070 default_split_user_count = 20000;
888 adx 30
889     /*
890     * default_split_server_count: when the servercount is lower than this,
891     * consider ourselves split. This must be set for automatic splitmode.
892     */
893     default_split_server_count = 10;
894    
895 michael 959 /* no_create_on_split: disallow users creating channels on split. */
896 adx 30 no_create_on_split = yes;
897    
898 michael 959 /* no_join_on_split: disallow users joining channels at all on a split. */
899 adx 30 no_join_on_split = no;
900     };
901    
902     /*
903 michael 583 * serverhide {}: The serverhide block contains the options regarding
904     * serverhiding
905 adx 30 */
906     serverhide {
907     /*
908     * flatten_links: this option will show all servers in /links appear
909     * that they are linked to this current server
910     *
911     * EFnet Note: While this is not a requirement on EFnet, it
912     * may be a good idea. Except, it's useless
913     * unless the entire net runs it.
914     */
915 michael 951 flatten_links = no;
916 adx 30
917     /*
918     * links_delay: how often to update the links file when it is
919     * flattened.
920     */
921     links_delay = 5 minutes;
922    
923     /*
924     * hidden: hide this server from a /links output on servers that
925 michael 583 * support it. This allows hub servers to be hidden etc.
926 adx 30 */
927     hidden = no;
928    
929     /*
930     * disable_hidden: prevent servers hiding themselves from a
931     * /links output.
932     */
933     disable_hidden = no;
934    
935     /*
936     * hide_servers: hide remote servernames everywhere and instead use
937     * hidden_name and network_desc.
938     */
939     hide_servers = no;
940    
941     /*
942     * Use this as the servername users see if hide_servers = yes.
943     */
944 michael 583 hidden_name = "*.hidden.com";
945 adx 30
946     /*
947 michael 951 * hide_server_ips: If this is disabled, opers will be unable to see
948     * servers ips and will be shown a masked ip, admins will be shown the
949     * real ip.
950 adx 30 *
951 michael 951 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
952     * it has the side effect of hiding the ips everywhere, including
953     * logfiles.
954 adx 30 *
955     * We recommend you leave this disabled, and just take care with who you
956     * give admin=yes; to.
957     */
958     hide_server_ips = yes;
959     };
960    
961     /*
962 michael 583 * general {}: The general block contains many of the options that were once
963     * compiled in options in config.h. The general block is read at start time.
964 adx 30 */
965     general {
966 michael 951 /* max_watch: maximum WATCH entries a client can have. */
967 michael 1070 max_watch = 60;
968 michael 876
969 adx 30 /*
970     * gline_min_cidr: the minimum required length of a CIDR bitmask
971     * for IPv4 based glines
972     */
973     gline_min_cidr = 16;
974    
975     /*
976     * gline_min_cidr6: the minimum required length of a CIDR bitmask
977     * for IPv6 based glines
978     */
979     gline_min_cidr6 = 48;
980    
981     /*
982     * Whether to automatically set mode +i on connecting users.
983     */
984     invisible_on_connect = yes;
985    
986     /*
987     * If you don't explicitly specify burst_away in your connect blocks, then
988     * they will default to the burst_away value below.
989     */
990     burst_away = no;
991    
992     /*
993     * Show "actually using host <ip>" on /whois when possible.
994     */
995     use_whois_actually = yes;
996    
997     /*
998     * Max time from the nickname change that still causes KILL
999 michael 1074 * automatically to switch for the current nick of that user.
1000 adx 30 */
1001 michael 1074 kill_chase_time_limit = 90 seconds;
1002 michael 951
1003 adx 30 /*
1004 michael 951 * If hide_spoof_ips is disabled, opers will be allowed to see the real
1005     * IP of spoofed users in /trace etc. If this is defined they will be
1006     * shown a masked IP.
1007 adx 30 */
1008     hide_spoof_ips = yes;
1009    
1010     /*
1011 michael 583 * Ignore bogus timestamps from other servers. Yes, this will desync
1012 adx 30 * the network, but it will allow chanops to resync with a valid non TS 0
1013     *
1014     * This should be enabled network wide, or not at all.
1015     */
1016     ignore_bogus_ts = no;
1017    
1018     /*
1019     * disable_auth: completely disable ident lookups; if you enable this,
1020     * be careful of what you set need_ident to in your auth {} blocks
1021     */
1022     disable_auth = no;
1023    
1024     /* disable_remote_commands: disable users doing commands on remote servers */
1025     disable_remote_commands = no;
1026    
1027     /*
1028 michael 583 * tkline_expire_notices: enables or disables temporary kline/xline
1029     * expire notices.
1030 adx 30 */
1031     tkline_expire_notices = no;
1032    
1033     /*
1034     * default_floodcount: the default value of floodcount that is configurable
1035     * via /quote set floodcount. This is the amount of lines a user
1036     * may send to any other user/channel in one second.
1037     */
1038     default_floodcount = 10;
1039    
1040     /*
1041     * failed_oper_notice: send a notice to all opers on the server when
1042     * someone tries to OPER and uses the wrong password, host or ident.
1043     */
1044     failed_oper_notice = yes;
1045    
1046     /*
1047     * dots_in_ident: the amount of '.' characters permitted in an ident
1048     * reply before the user is rejected.
1049     */
1050 michael 951 dots_in_ident = 2;
1051 adx 30
1052     /*
1053     * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1054     * placed via the server. klines hand placed are exempt from limits.
1055     * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1056     */
1057     min_nonwildcard = 3;
1058    
1059     /*
1060     * min_nonwildcard_simple: the minimum non wildcard characters in
1061     * gecos bans. wildcard chars: '*' '?' '#'
1062     */
1063     min_nonwildcard_simple = 3;
1064    
1065     /* max_accept: maximum allowed /accept's for +g usermode */
1066     max_accept = 20;
1067    
1068     /* anti_nick_flood: enable the nickflood control code */
1069     anti_nick_flood = yes;
1070    
1071     /* nick flood: the nick changes allowed in the specified period */
1072     max_nick_time = 20 seconds;
1073     max_nick_changes = 5;
1074    
1075     /*
1076     * anti_spam_exit_message_time: the minimum time a user must be connected
1077     * before custom quit messages are allowed.
1078     */
1079     anti_spam_exit_message_time = 5 minutes;
1080    
1081     /*
1082     * ts delta: the time delta allowed between server clocks before
1083     * a warning is given, or before the link is dropped. all servers
1084     * should run ntpdate/rdate to keep clocks in sync
1085     */
1086     ts_warn_delta = 30 seconds;
1087     ts_max_delta = 5 minutes;
1088    
1089     /*
1090     * kline_with_reason: show the user the reason why they are k/d/glined
1091     * on exit. May give away who set k/dline when set via tcm.
1092     */
1093     kline_with_reason = yes;
1094    
1095     /*
1096     * kline_reason: show this message to users on channel
1097     * instead of the oper reason.
1098     */
1099     kline_reason = "Connection closed";
1100    
1101 michael 583 /*
1102     * reject_hold_time: wait this amount of time before disconnecting
1103     * a rejected client. Use 0 to disable.
1104     */
1105     reject_hold_time = 30 seconds;
1106 adx 30
1107     /*
1108     * warn_no_nline: warn opers about servers that try to connect but
1109     * we don't have a connect {} block for. Twits with misconfigured
1110     * servers can get really annoying with this enabled.
1111     */
1112     warn_no_nline = yes;
1113    
1114 michael 584 /*
1115     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1116     * operators and administrators. Doing so is a good idea in case
1117     * there are any exempted (exempt{}) server IPs you don't want to
1118     * see leaked.
1119     */
1120     stats_e_disabled = no;
1121    
1122 adx 30 /* stats_o_oper only: make stats o (opers) oper only */
1123     stats_o_oper_only = yes;
1124    
1125     /* stats_P_oper_only: make stats P (ports) oper only */
1126     stats_P_oper_only = yes;
1127    
1128     /*
1129     * stats i oper only: make stats i (auth {}) oper only. set to:
1130     * yes: show users no auth blocks, made oper only.
1131     * masked: show users first matching auth block
1132     * no: show users all auth blocks.
1133     */
1134     stats_i_oper_only = yes;
1135    
1136     /*
1137     * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1138     * yes: show users no auth blocks, made oper only
1139     * masked: show users first matching auth block
1140     * no: show users all auth blocks.
1141     */
1142     stats_k_oper_only = yes;
1143 michael 583
1144 adx 30 /*
1145     * caller_id_wait: time between notifying a +g user that somebody
1146     * is messaging them.
1147     */
1148     caller_id_wait = 1 minute;
1149    
1150     /*
1151 michael 56 * opers_bypass_callerid: allows operators to bypass +g and message
1152     * anyone who has it set (useful if you use services).
1153     */
1154     opers_bypass_callerid = no;
1155    
1156     /*
1157 adx 30 * pace_wait_simple: time between use of less intensive commands
1158 adx 269 * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1159 adx 30 */
1160     pace_wait_simple = 1 second;
1161    
1162     /*
1163     * pace_wait: time between more intensive commands
1164 adx 269 * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1165 adx 30 */
1166     pace_wait = 10 seconds;
1167    
1168     /*
1169     * short_motd: send clients a notice telling them to read the motd
1170     * instead of forcing a motd to clients who may simply ignore it.
1171     */
1172     short_motd = no;
1173    
1174     /*
1175     * ping_cookie: require clients to respond exactly to a ping command,
1176     * can help block certain types of drones and FTP PASV mode spoofing.
1177     */
1178     ping_cookie = no;
1179    
1180     /* no_oper_flood: increase flood limits for opers. */
1181     no_oper_flood = yes;
1182    
1183     /*
1184     * true_no_oper_flood: completely eliminate flood limits for opers
1185     * and for clients with can_flood = yes in their auth {} blocks
1186     */
1187     true_no_oper_flood = yes;
1188    
1189     /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1190     oper_pass_resv = yes;
1191    
1192     /* REMOVE ME. The following line checks you've been reading. */
1193     havent_read_conf = 1;
1194    
1195     /*
1196     * max_targets: the maximum amount of targets in a single
1197     * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1198     */
1199     max_targets = 4;
1200    
1201     /*
1202     * client_flood: maximum amount of data in a clients queue before
1203     * they are dropped for flooding.
1204     */
1205     client_flood = 2560 bytes;
1206    
1207     /*
1208     * message_locale: the default message locale
1209     * Use "standard" for the compiled in defaults.
1210     * To install the translated messages, go into messages/ in the
1211     * source directory and run `make install'.
1212     */
1213     message_locale = "standard";
1214    
1215     /*
1216     * usermodes configurable: a list of usermodes for the options below
1217     *
1218     * +b - bots - See bot and drone flooding notices
1219     * +c - cconn - Client connection/quit notices
1220 michael 959 * +C - cconn_full - Client connection/quit notices full
1221 adx 30 * +D - deaf - Don't receive channel messages
1222     * +d - debug - See debugging notices
1223     * +f - full - See I: line full notices
1224     * +G - softcallerid - Server Side Ignore for users not on your channels
1225     * +g - callerid - Server Side Ignore (for privmsgs etc)
1226     * +i - invisible - Not shown in NAMES or WHO unless you share a
1227     * a channel
1228     * +k - skill - See server generated KILL messages
1229     * +l - locops - See LOCOPS messages
1230     * +n - nchange - See client nick changes
1231     * +r - rej - See rejected client notices
1232     * +s - servnotice - See general server notices
1233     * +u - unauth - See unauthorized client notices
1234     * +w - wallop - See server generated WALLOPS
1235     * +x - external - See remote server connection and split notices
1236     * +y - spy - See LINKS, STATS, TRACE notices etc.
1237     * +z - operwall - See oper generated WALLOPS
1238     */
1239 michael 583
1240 adx 30 /* oper_only_umodes: usermodes only opers may set */
1241 db 853 oper_only_umodes = bots, cconn, cconn_full, debug, full, skill,
1242     nchange, rej, spy, external, operwall,
1243     locops, unauth;
1244 adx 30
1245     /* oper_umodes: default usermodes opers get when they /oper */
1246 adx 264 oper_umodes = bots, locops, servnotice, operwall, wallop;
1247 adx 30
1248     /*
1249     * servlink_path: path to 'servlink' program used by ircd to handle
1250     * encrypted/compressed server <-> server links.
1251     *
1252     * only define if servlink is not in same directory as ircd itself.
1253     */
1254     #servlink_path = "/usr/local/ircd/bin/servlink";
1255    
1256     /*
1257     * default_cipher_preference: default cipher to use for cryptlink when none is
1258     * specified in connect block.
1259     */
1260     #default_cipher_preference = "BF/168";
1261    
1262     /*
1263     * use_egd: if your system does not have *random devices yet you
1264     * want to use OpenSSL and encrypted links, enable this. Beware -
1265     * EGD is *very* CPU intensive when gathering data for its pool
1266     */
1267     # use_egd = yes;
1268    
1269     /*
1270     * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1271     * which automatically finds the path.
1272     */
1273     # egdpool_path = "/var/run/egd-pool";
1274    
1275    
1276     /*
1277     * compression_level: level of compression for compressed links between
1278     * servers.
1279     *
1280     * values are between: 1 (least compression, fastest)
1281     * and: 9 (most compression, slowest).
1282     */
1283     # compression_level = 6;
1284    
1285     /*
1286     * throttle_time: the minimum amount of time between connections from
1287     * the same ip. exempt {} blocks are excluded from this throttling.
1288     * Offers protection against flooders who reconnect quickly.
1289     * Set to 0 to disable.
1290     */
1291     throttle_time = 0;
1292     };
1293    
1294     glines {
1295     /*
1296     * EFnet Note: This feature is required for European EFnet servers
1297     * and is used by several North American servers. As
1298     * such, it has been left on by default. If you
1299     * do not want your server to participate in G:Lines
1300     * you should disable this.
1301     */
1302    
1303     /* enable: enable glines, network wide temp klines */
1304     enable = yes;
1305    
1306 michael 583 /*
1307     * duration: the amount of time a gline will remain on your
1308     * server before expiring
1309     */
1310 adx 30 duration = 1 day;
1311    
1312 michael 583 /*
1313     * logging: which types of rules you want to log when triggered
1314     * (choose reject or block)
1315     */
1316 adx 30 logging = reject, block;
1317    
1318     /*
1319 michael 583 * NOTE: gline ACLs can cause a desync of glines throughout the
1320     * network, meaning some servers may have a gline triggered, and
1321     * others may not. Also, you only need insert rules for glines
1322     * that you want to block and/or reject. If you want to accept and
1323     * propagate the gline, do NOT put a rule for it.
1324 adx 30 */
1325    
1326     /* user@host for rule to apply to */
1327     user = "god@I.still.hate.packets";
1328     /* server for rule to apply to */
1329     name = "hades.arpa";
1330    
1331     /*
1332     * action: action to take when a matching gline is found. options are:
1333     * reject - do not apply the gline locally
1334     * block - do not propagate the gline
1335     */
1336     action = reject, block;
1337    
1338     user = "god@*";
1339     name = "*";
1340     action = block;
1341     };
1342    
1343     modules {
1344     /*
1345 michael 951 * path: other paths to search for modules specified below
1346 adx 30 * and in /modload.
1347     */
1348 michael 1070 path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1349     path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1350 adx 30
1351     /* module: the name of a module to load on startup/rehash */
1352 michael 1070 #module = "some_module.la";
1353 adx 30 };

Properties

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