ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.0.x/doc/example.efnet.conf
Revision: 1748
Committed: Tue Jan 15 18:16:36 2013 UTC (13 years, 6 months ago) by michael
File size: 35105 byte(s)
Log Message:
- Update copyright years

File Contents

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

Properties

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