ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 1524
Committed: Sun Sep 9 18:33:31 2012 UTC (11 years, 6 months ago) by michael
File size: 35764 byte(s)
Log Message:
- example.conf: add proper documentation for connect::ssl_cipher_list

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

Properties

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