ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/example.efnet.conf
Revision: 1644
Committed: Tue Nov 6 22:20:16 2012 UTC (13 years, 11 months ago) by michael
File size: 35002 byte(s)
Log Message:
- More config subsystem cleanups

File Contents

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

Properties

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