ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 1523
Committed: Sun Sep 9 11:11:52 2012 UTC (11 years, 7 months ago) by michael
File size: 35315 byte(s)
Log Message:
- configure.ac: fixed syntax error
- example.conf: mention that the DH prime size must be at least 1024 bits

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     * etc/.
7     *
8 knight 31 * $Id$
9 adx 30 */
10    
11     /* IMPORTANT NOTES:
12     *
13     * auth {} blocks MUST be specified in order of precedence. The first one
14     * that matches a user will be used. So place spoofs first, then specials,
15     * then general access.
16     *
17     * Shell style (#), C++ style (//) and C style comments are supported.
18     *
19     * Files may be included by either:
20     * .include "filename"
21     * .include <filename>
22     *
23     * Times/durations are written as:
24     * 12 hours 30 minutes 1 second
25     *
26     * Valid units of time:
27     * month, week, day, hour, minute, second
28     *
29     * Valid units of size:
30     * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
31     *
32     * Sizes and times may be singular or plural.
33     */
34    
35     /* EFNET NOTE:
36 michael 583 *
37 adx 30 * This configuration file is a BASIC configuration file for use
38     * on EFnet. You MUST still take the time to set this file up
39     * properly.
40     *
41     * DISCLAIMER: This file was submitted by Disciple@EFnet and has
42     * since been modified by the Hybrid team.
43     */
44    
45 michael 583 /*
46 michael 1229 * serverinfo {}: contains information about the server
47 michael 583 */
48 adx 30 serverinfo {
49 michael 583 /*
50 michael 1070 * name: the name of this server. This cannot be changed at runtime.
51 michael 583 */
52 adx 30 name = "efnet.irc";
53    
54     /*
55 michael 583 * sid: a server's unique ID. This is three characters long and must
56     * be in the form [0-9][A-Z0-9][A-Z0-9]. The first character must be
57     * a digit, followed by 2 alpha-numerical letters.
58     * NOTE: The letters must be capitalized. This cannot be changed at runtime.
59 adx 30 */
60     sid = "_CHANGE_ME_";
61    
62     /*
63     * description: the description of the server. '[' and ']' may not
64     * be used here for compatibility with older servers.
65     */
66     description = "hybrid-7 test server";
67    
68     /*
69     * network info: the name and description of the network this server
70     * is on. Shown in the 005 reply and used with serverhiding.
71     */
72     network_name = "EFnet";
73     network_desc = "Eris Free Network";
74    
75     /*
76     * hub: allow this server to act as a hub and have multiple servers
77 michael 885 * connected to it.
78 adx 30 */
79     hub = no;
80    
81     /*
82     * vhost: the IP to bind to when we connect outward to ipv4 servers.
83 michael 959 * This should be an ipv4 IP only, or "*" for INADDR_ANY.
84 adx 30 */
85     #vhost = "192.169.0.1";
86    
87     /*
88     * vhost6: the IP to bind to when we connect outward to ipv6 servers.
89 michael 959 * This should be an ipv6 IP only, or "*" for INADDR_ANY.
90 adx 30 */
91     #vhost6 = "3ffe:80e8:546::2";
92    
93     /* max_clients: the maximum number of clients allowed to connect */
94     max_clients = 512;
95    
96     /*
97 michael 951 * rsa_private_key_file: the path to the file containing our
98     * rsa key for cryptlink.
99 adx 30 *
100     * Example command to store a 2048 bit RSA keypair in
101     * rsa.key, and the public key in rsa.pub:
102     *
103 michael 1229 * openssl genrsa -out rsa.key 2048
104 adx 30 * openssl rsa -in rsa.key -pubout -out rsa.pub
105     * chown <ircd-user>.<ircd.group> rsa.key rsa.pub
106     * chmod 0600 rsa.key
107     * chmod 0644 rsa.pub
108     */
109     #rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
110 michael 951
111     /*
112     * ssl_certificate_file: the path to the file containing our
113     * ssl certificate for encrypted client connection.
114     *
115     * This assumes your private RSA key is stored in rsa.key. You
116     * MUST have an RSA key in order to generate the certificate
117     *
118     * openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
119     *
120     * See http://www.openssl.org/docs/HOWTO/certificates.txt
121     *
122     * Please use the following values when generating the cert
123     *
124     * Organization Name: Network Name
125     * Organization Unit Name: changme.someirc.net
126     * Common Name: irc.someirc.net
127     * E-mail: you@domain.com
128     */
129     #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
130 michael 967
131 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     * List of ciphers that are supported by _this_ server. Can be used to enforce
152     * specific ciphers for incoming SSL/TLS connections.
153     * If a client (which also includes incoming server connections) isn't capable
154 michael 1351 * of any cipher listed below, the connection will simply be rejected.
155 michael 1306 *
156     * A list of supported ciphers can be obtained by running:
157     *
158     * openssl ciphers -ssl3 -tls1 -v
159     *
160     * Multiple ciphers are separated by colons. The order of preference is from
161     * left to right.
162     */
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     * sendq: the amount of data allowed in a clients queue before
231     * they are dropped.
232     */
233     sendq = 100 kbytes;
234 michael 1516
235     /*
236     * recvq: maximum amount of data in a clients queue before they
237     * are dropped for flooding. Defaults to 2560 if the chosen
238     * 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     * ssl - Port is for SSL client connections only
317     * 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     * user: the user@host allowed to connect. Multiple IPv4/IPv6 user
341     * 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     name = "god";
411    
412     /*
413 michael 1303 * user: the user@host required for this operator. Multiple
414     * user="" lines are supported.
415 adx 30 */
416 michael 1285 user = "*god@192.168.0.0/16";
417     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 1306 #ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
555    
556 adx 30 /*
557 michael 1229 * autoconn - controls whether we autoconnect to this server or not,
558 michael 1303 * dependent on class limits. By default, this is disabled.
559     * ssl - Initiates a TLS/SSL connection.
560 adx 30 */
561 michael 1519 # flags = autoconn, ssl;
562 adx 30 };
563    
564 michael 1303 connect {
565 michael 1285 name = "ipv6.some.server";
566 adx 30 host = "3ffd:dead:beef::1";
567     send_password = "password";
568     accept_password = "password";
569     port = 6666;
570    
571     /*
572     * aftype: controls whether the connection uses "ipv4" or "ipv6".
573     * Default is ipv4.
574     */
575     aftype = ipv6;
576     class = "server";
577     };
578    
579 michael 583 /*
580     * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
581 michael 1229 * automatically
582 adx 30 */
583     cluster {
584 michael 583 /*
585     * name: the server to share with, this can take wildcards
586     *
587     * NOTE: only local actions will be clustered, meaning if
588 adx 30 * the server receives a shared kline/unkline/etc, it
589     * will not be propagated to clustered servers.
590     *
591     * Remote servers are not necessarily required to accept
592     * clustered lines, they need a shared{} for *THIS* server
593     * in order to accept them.
594     */
595     name = "*.arpa";
596    
597     /*
598     * type: list of what to share, options are as follows:
599 michael 1301 * dline - share dlines
600     * undline - share undlines
601 michael 1336 * kline - share klines
602     * unkline - share unklines
603     * xline - share xlines
604     * unxline - share unxlines
605     * resv - share resvs
606     * unresv - share unresvs
607     * locops - share locops
608     * all - share all of the above (default)
609 adx 30 */
610     type = kline, unkline, locops, xline, resv;
611     };
612    
613 michael 583 /*
614 michael 1229 * shared {}: users that are allowed to remote kline
615 adx 30 *
616 michael 583 * NOTE: This can be effectively used for remote klines.
617     * Please note that there is no password authentication
618     * for users setting remote klines. You must also be
619     * /oper'd in order to issue a remote kline.
620 adx 30 */
621     shared {
622     /*
623     * name: the server the user must be on to set klines. If this is not
624     * specified, the user will be allowed to kline from all servers.
625     */
626     name = "irc2.some.server";
627    
628     /*
629     * user: the user@host mask that is allowed to set klines. If this is
630     * not specified, all users on the server above will be allowed to set
631     * a remote kline.
632     */
633     user = "oper@my.host.is.spoofed";
634    
635     /*
636     * type: list of what to share, options are as follows:
637 michael 1301 * dline - allow oper/server to dline
638     * undline - allow oper/server to undline
639 michael 1336 * kline - allow oper/server to kline
640     * unkline - allow oper/server to unkline
641     * xline - allow oper/server to xline
642     * unxline - allow oper/server to unxline
643     * resv - allow oper/server to resv
644     * unresv - allow oper/server to unresv
645     * locops - allow oper/server to locops - only used for servers that cluster
646     * all - allow oper/server to do all of the above (default)
647 adx 30 */
648     type = kline, unkline, resv;
649     };
650    
651 michael 583 /*
652 michael 1229 * kill {}: users that are not allowed to connect
653 adx 30 * Oper issued klines will be added to the specified kline config
654     */
655     kill {
656     user = "bad@*.hacked.edu";
657     reason = "Obviously hacked account";
658     };
659    
660     kill {
661 michael 951 user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
662    
663     /*
664     * NOTE: You have to set type=regex; when using a regular expression
665     * based user entry
666     */
667 adx 30 type = regex;
668     };
669    
670 michael 583 /*
671     * deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
672 adx 30 * Oper issued dlines will be added to the specified dline config
673     */
674     deny {
675     ip = "10.0.1.0/24";
676     reason = "Reconnecting vhosted bots";
677     };
678    
679 michael 583 /*
680 michael 1229 * exempt {}: IPs that are exempt from deny {} and Dlines.
681 adx 30 *
682 michael 584 * EFnet Note: We really suggest to enable general::stats_e_disabled
683     * if you plan to exempt EFnet server IPs you don't want to show to
684     * other operators and/or administrators through "STATS e".
685 adx 30 */
686     exempt {
687     ip = "192.168.0.0/16";
688     };
689    
690 michael 583 /*
691 michael 1229 * resv {}: nicks and channels users may not use/join
692 michael 583 */
693 adx 30 resv {
694     /* reason: the reason for the proceeding resv's */
695     reason = "There are no services on this network";
696    
697     /* resv: the nicks and channels users may not join/use */
698     nick = "nickserv";
699     nick = "chanserv";
700     nick = "operserv";
701     nick = "JUPES";
702     nick = "JUPE";
703     nick = "CH?NF?X"; # CHANFIX (services.int)
704    
705     /* These are totally optional, but may be a good idea */
706     nick = "oper";
707     nick = "ircop";
708     nick = "op";
709     nick = "ident";
710     nick = "pass";
711     channel = "#jupedchan";
712    
713     /* resv: wildcard masks are also supported in nicks only */
714     reason = "Clone bots";
715     nick = "clone*";
716     };
717    
718 michael 583 /*
719     * gecos {}: The X: replacement, used for banning users based on
720     * their "realname".
721 adx 30 */
722     gecos {
723     name = "*sex*";
724     reason = "Possible spambot";
725     };
726    
727     gecos {
728     name = "sub7server";
729     reason = "Trojan drone";
730     };
731    
732     gecos {
733     name = "*http*";
734     reason = "Spambot";
735     };
736    
737     gecos {
738     name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
739 michael 951
740     /*
741     * NOTE: You have to set type=regex; when using a regular expression
742     * based name entry
743     */
744 adx 30 type = regex;
745     };
746    
747     /*
748 michael 583 * channel {}: The channel block contains options pertaining to channels
749 adx 30 */
750     channel {
751 michael 56 /*
752 michael 632 * disable_fake_channels: this option, if set to 'yes', will
753     * disallow clients to create or join channels that have one
754     * of the following ASCII characters in their name:
755     *
756     * 2 | bold
757     * 3 | mirc color
758 michael 639 * 15 | plain text
759 michael 632 * 22 | reverse
760 michael 1424 * 29 | italic
761 michael 632 * 31 | underline
762     * 160 | non-breaking space
763     */
764     disable_fake_channels = yes;
765    
766     /*
767 michael 56 * restrict_channels: reverse channel RESVs logic, only reserved
768     * channels are allowed
769     */
770     restrict_channels = no;
771 adx 30
772     /*
773     * knock_delay: The amount of time a user must wait between issuing
774     * the knock command.
775     */
776 michael 951 knock_delay = 5 minutes;
777 adx 30
778     /*
779     * knock_delay_channel: How often a knock to any specific channel
780     * is permitted, regardless of the user sending the knock.
781     */
782     knock_delay_channel = 1 minute;
783    
784 michael 583 /*
785     * max_chans_per_user: The maximum number of channels a user can
786     * join/be on.
787     */
788 adx 30 max_chans_per_user = 25;
789    
790 michael 1432 /*
791     * max_chans_per_oper: The maximum number of channels an oper can
792     * join/be on.
793     */
794     max_chans_per_oper = 50;
795    
796 adx 30 /* quiet_on_ban: stop banned people talking in channels. */
797     quiet_on_ban = yes;
798    
799     /* max_bans: maximum number of +b/e/I modes in a channel */
800     max_bans = 100;
801    
802     /*
803 adx 201 * how many joins in how many seconds constitute a flood, use 0 to
804     * disable. +b opers will be notified (changeable via /set)
805     */
806     join_flood_count = 16;
807     join_flood_time = 8 seconds;
808    
809     /*
810 adx 30 * splitcode: The ircd will now check splitmode every few seconds.
811     *
812     * Either split users or split servers can activate splitmode, but
813     * both conditions must be met for the ircd to deactivate splitmode.
814     *
815     * You may force splitmode to be permanent by /quote set splitmode on
816     */
817    
818     /*
819     * default_split_user_count: when the usercount is lower than this level,
820     * consider ourselves split. This must be set for automatic splitmode.
821     */
822 michael 1070 default_split_user_count = 20000;
823 adx 30
824     /*
825     * default_split_server_count: when the servercount is lower than this,
826     * consider ourselves split. This must be set for automatic splitmode.
827     */
828     default_split_server_count = 10;
829    
830 michael 959 /* no_create_on_split: disallow users creating channels on split. */
831 adx 30 no_create_on_split = yes;
832    
833 michael 959 /* no_join_on_split: disallow users joining channels at all on a split. */
834 adx 30 no_join_on_split = no;
835     };
836    
837     /*
838 michael 583 * serverhide {}: The serverhide block contains the options regarding
839     * serverhiding
840 adx 30 */
841     serverhide {
842     /*
843     * flatten_links: this option will show all servers in /links appear
844     * that they are linked to this current server
845     *
846     * EFnet Note: While this is not a requirement on EFnet, it
847     * may be a good idea. Except, it's useless
848     * unless the entire net runs it.
849     */
850 michael 951 flatten_links = no;
851 adx 30
852     /*
853     * links_delay: how often to update the links file when it is
854     * flattened.
855     */
856     links_delay = 5 minutes;
857    
858     /*
859     * hidden: hide this server from a /links output on servers that
860 michael 583 * support it. This allows hub servers to be hidden etc.
861 adx 30 */
862     hidden = no;
863    
864     /*
865     * hide_servers: hide remote servernames everywhere and instead use
866     * hidden_name and network_desc.
867     */
868     hide_servers = no;
869    
870     /*
871     * Use this as the servername users see if hide_servers = yes.
872     */
873 michael 583 hidden_name = "*.hidden.com";
874 adx 30
875     /*
876 michael 951 * hide_server_ips: If this is disabled, opers will be unable to see
877     * servers ips and will be shown a masked ip, admins will be shown the
878     * real ip.
879 adx 30 *
880 michael 951 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
881     * it has the side effect of hiding the ips everywhere, including
882     * logfiles.
883 adx 30 *
884     * We recommend you leave this disabled, and just take care with who you
885     * give admin=yes; to.
886     */
887     hide_server_ips = yes;
888     };
889    
890     /*
891 michael 583 * general {}: The general block contains many of the options that were once
892     * compiled in options in config.h. The general block is read at start time.
893 adx 30 */
894     general {
895 michael 951 /* max_watch: maximum WATCH entries a client can have. */
896 michael 1070 max_watch = 60;
897 michael 876
898 adx 30 /*
899 michael 1459 * EFnet Note: This feature is required for European EFnet servers
900     * and is used by several North American servers. As
901     * such, it has been left on by default. If you
902     * do not want your server to participate in G:Lines
903     * you should disable this.
904 michael 1522 */
905 michael 1459
906     /* gline_enable: enable glines, network wide temp klines */
907     gline_enable = yes;
908    
909     /*
910     * gline_duration: the amount of time a gline will remain on your
911     * server before expiring
912     */
913     gline_duration = 1 day;
914 michael 1522
915 michael 1459 /*
916     * gline_request_duration: how long a pending G-line can be around.
917     * 10 minutes should be plenty
918     */
919     gline_request_duration = 10 minutes;
920    
921     /*
922 adx 30 * gline_min_cidr: the minimum required length of a CIDR bitmask
923     * for IPv4 based glines
924     */
925     gline_min_cidr = 16;
926    
927     /*
928     * gline_min_cidr6: the minimum required length of a CIDR bitmask
929     * for IPv6 based glines
930     */
931     gline_min_cidr6 = 48;
932    
933     /*
934     * Whether to automatically set mode +i on connecting users.
935     */
936     invisible_on_connect = yes;
937    
938     /*
939     * Show "actually using host <ip>" on /whois when possible.
940     */
941     use_whois_actually = yes;
942    
943     /*
944     * Max time from the nickname change that still causes KILL
945 michael 1074 * automatically to switch for the current nick of that user.
946 adx 30 */
947 michael 1074 kill_chase_time_limit = 90 seconds;
948 michael 1303
949 adx 30 /*
950 michael 951 * If hide_spoof_ips is disabled, opers will be allowed to see the real
951     * IP of spoofed users in /trace etc. If this is defined they will be
952     * shown a masked IP.
953 adx 30 */
954     hide_spoof_ips = yes;
955    
956     /*
957 michael 583 * Ignore bogus timestamps from other servers. Yes, this will desync
958 adx 30 * the network, but it will allow chanops to resync with a valid non TS 0
959     *
960     * This should be enabled network wide, or not at all.
961     */
962     ignore_bogus_ts = no;
963    
964     /*
965     * disable_auth: completely disable ident lookups; if you enable this,
966     * be careful of what you set need_ident to in your auth {} blocks
967     */
968     disable_auth = no;
969    
970     /* disable_remote_commands: disable users doing commands on remote servers */
971     disable_remote_commands = no;
972    
973     /*
974 michael 583 * tkline_expire_notices: enables or disables temporary kline/xline
975     * expire notices.
976 adx 30 */
977     tkline_expire_notices = no;
978    
979     /*
980     * default_floodcount: the default value of floodcount that is configurable
981     * via /quote set floodcount. This is the amount of lines a user
982     * may send to any other user/channel in one second.
983     */
984     default_floodcount = 10;
985    
986     /*
987     * failed_oper_notice: send a notice to all opers on the server when
988     * someone tries to OPER and uses the wrong password, host or ident.
989     */
990     failed_oper_notice = yes;
991    
992     /*
993     * dots_in_ident: the amount of '.' characters permitted in an ident
994     * reply before the user is rejected.
995     */
996 michael 951 dots_in_ident = 2;
997 adx 30
998     /*
999     * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1000     * placed via the server. klines hand placed are exempt from limits.
1001     * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1002     */
1003     min_nonwildcard = 3;
1004    
1005     /*
1006     * min_nonwildcard_simple: the minimum non wildcard characters in
1007     * gecos bans. wildcard chars: '*' '?' '#'
1008     */
1009     min_nonwildcard_simple = 3;
1010    
1011     /* max_accept: maximum allowed /accept's for +g usermode */
1012     max_accept = 20;
1013    
1014     /* anti_nick_flood: enable the nickflood control code */
1015     anti_nick_flood = yes;
1016    
1017     /* nick flood: the nick changes allowed in the specified period */
1018     max_nick_time = 20 seconds;
1019     max_nick_changes = 5;
1020    
1021     /*
1022     * anti_spam_exit_message_time: the minimum time a user must be connected
1023     * before custom quit messages are allowed.
1024     */
1025     anti_spam_exit_message_time = 5 minutes;
1026    
1027     /*
1028     * ts delta: the time delta allowed between server clocks before
1029     * a warning is given, or before the link is dropped. all servers
1030     * should run ntpdate/rdate to keep clocks in sync
1031     */
1032     ts_warn_delta = 30 seconds;
1033     ts_max_delta = 5 minutes;
1034    
1035     /*
1036     * kline_with_reason: show the user the reason why they are k/d/glined
1037     * on exit. May give away who set k/dline when set via tcm.
1038     */
1039     kline_with_reason = yes;
1040    
1041     /*
1042     * kline_reason: show this message to users on channel
1043     * instead of the oper reason.
1044     */
1045     kline_reason = "Connection closed";
1046    
1047 michael 583 /*
1048     * reject_hold_time: wait this amount of time before disconnecting
1049     * a rejected client. Use 0 to disable.
1050     */
1051     reject_hold_time = 30 seconds;
1052 adx 30
1053     /*
1054     * warn_no_nline: warn opers about servers that try to connect but
1055     * we don't have a connect {} block for. Twits with misconfigured
1056     * servers can get really annoying with this enabled.
1057     */
1058     warn_no_nline = yes;
1059    
1060 michael 584 /*
1061     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1062     * operators and administrators. Doing so is a good idea in case
1063     * there are any exempted (exempt{}) server IPs you don't want to
1064     * see leaked.
1065     */
1066     stats_e_disabled = no;
1067    
1068 adx 30 /* stats_o_oper only: make stats o (opers) oper only */
1069     stats_o_oper_only = yes;
1070    
1071     /* stats_P_oper_only: make stats P (ports) oper only */
1072     stats_P_oper_only = yes;
1073    
1074     /*
1075     * stats i oper only: make stats i (auth {}) oper only. set to:
1076     * yes: show users no auth blocks, made oper only.
1077     * masked: show users first matching auth block
1078     * no: show users all auth blocks.
1079     */
1080     stats_i_oper_only = yes;
1081    
1082     /*
1083     * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1084     * yes: show users no auth blocks, made oper only
1085     * masked: show users first matching auth block
1086     * no: show users all auth blocks.
1087     */
1088     stats_k_oper_only = yes;
1089 michael 583
1090 adx 30 /*
1091     * caller_id_wait: time between notifying a +g user that somebody
1092     * is messaging them.
1093     */
1094     caller_id_wait = 1 minute;
1095    
1096     /*
1097 michael 56 * opers_bypass_callerid: allows operators to bypass +g and message
1098     * anyone who has it set (useful if you use services).
1099     */
1100     opers_bypass_callerid = no;
1101    
1102     /*
1103 adx 30 * pace_wait_simple: time between use of less intensive commands
1104 adx 269 * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1105 adx 30 */
1106     pace_wait_simple = 1 second;
1107    
1108     /*
1109     * pace_wait: time between more intensive commands
1110 michael 1488 * (AWAY, INFO, LINKS, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1111 adx 30 */
1112     pace_wait = 10 seconds;
1113    
1114     /*
1115     * short_motd: send clients a notice telling them to read the motd
1116     * instead of forcing a motd to clients who may simply ignore it.
1117     */
1118     short_motd = no;
1119    
1120     /*
1121     * ping_cookie: require clients to respond exactly to a ping command,
1122     * can help block certain types of drones and FTP PASV mode spoofing.
1123     */
1124     ping_cookie = no;
1125    
1126     /* no_oper_flood: increase flood limits for opers. */
1127     no_oper_flood = yes;
1128    
1129     /*
1130     * true_no_oper_flood: completely eliminate flood limits for opers
1131     * and for clients with can_flood = yes in their auth {} blocks
1132     */
1133     true_no_oper_flood = yes;
1134    
1135     /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1136     oper_pass_resv = yes;
1137    
1138     /* REMOVE ME. The following line checks you've been reading. */
1139     havent_read_conf = 1;
1140    
1141     /*
1142     * max_targets: the maximum amount of targets in a single
1143     * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1144     */
1145     max_targets = 4;
1146    
1147     /*
1148     * message_locale: the default message locale
1149     * Use "standard" for the compiled in defaults.
1150     * To install the translated messages, go into messages/ in the
1151     * source directory and run `make install'.
1152     */
1153     message_locale = "standard";
1154    
1155     /*
1156     * usermodes configurable: a list of usermodes for the options below
1157     *
1158     * +b - bots - See bot and drone flooding notices
1159     * +c - cconn - Client connection/quit notices
1160 michael 959 * +C - cconn_full - Client connection/quit notices full
1161 adx 30 * +D - deaf - Don't receive channel messages
1162     * +d - debug - See debugging notices
1163 michael 1426 * +f - full - See auth{} block full notices
1164 adx 30 * +G - softcallerid - Server Side Ignore for users not on your channels
1165     * +g - callerid - Server Side Ignore (for privmsgs etc)
1166 michael 1294 * +H - hidden - Hides operator status to other users
1167 adx 30 * +i - invisible - Not shown in NAMES or WHO unless you share a
1168     * a channel
1169 michael 1290 * +j - rej - See rejected client notices
1170 adx 30 * +k - skill - See server generated KILL messages
1171     * +l - locops - See LOCOPS messages
1172     * +n - nchange - See client nick changes
1173     * +s - servnotice - See general server notices
1174     * +u - unauth - See unauthorized client notices
1175     * +w - wallop - See server generated WALLOPS
1176     * +x - external - See remote server connection and split notices
1177     * +y - spy - See LINKS, STATS, TRACE notices etc.
1178     * +z - operwall - See oper generated WALLOPS
1179     */
1180 michael 583
1181 adx 30 /* oper_only_umodes: usermodes only opers may set */
1182 michael 1294 oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1183 db 853 nchange, rej, spy, external, operwall,
1184     locops, unauth;
1185 adx 30
1186     /* oper_umodes: default usermodes opers get when they /oper */
1187 adx 264 oper_umodes = bots, locops, servnotice, operwall, wallop;
1188 adx 30
1189     /*
1190     * use_egd: if your system does not have *random devices yet you
1191     * want to use OpenSSL and encrypted links, enable this. Beware -
1192     * EGD is *very* CPU intensive when gathering data for its pool
1193     */
1194     # use_egd = yes;
1195    
1196     /*
1197     * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1198     * which automatically finds the path.
1199     */
1200     # egdpool_path = "/var/run/egd-pool";
1201    
1202     /*
1203     * throttle_time: the minimum amount of time between connections from
1204     * the same ip. exempt {} blocks are excluded from this throttling.
1205     * Offers protection against flooders who reconnect quickly.
1206     * Set to 0 to disable.
1207     */
1208     throttle_time = 0;
1209     };
1210    
1211     modules {
1212     /*
1213 michael 951 * path: other paths to search for modules specified below
1214 michael 1441 * and in "/module load".
1215 adx 30 */
1216 michael 1070 path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1217     path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1218 adx 30
1219     /* module: the name of a module to load on startup/rehash */
1220 michael 1070 #module = "some_module.la";
1221 adx 30 };
1222 michael 1247
1223     /*
1224     * log {}: contains information about logfiles.
1225     */
1226     log {
1227     /* Do you want to enable logging to ircd.log? */
1228     use_logging = yes;
1229    
1230     file {
1231     type = oper;
1232     name = "/home/ircd/var/log/oper.log";
1233 michael 1250 size = unlimited;
1234 michael 1247 };
1235    
1236     file {
1237     type = user;
1238 michael 1249 name = "/home/ircd/var/log/user.log";
1239 michael 1247 size = 50 megabytes;
1240     };
1241    
1242     file {
1243     type = kill;
1244     name = "/home/ircd/var/log/kill.log";
1245     size = 50 megabytes;
1246     };
1247    
1248     file {
1249     type = kline;
1250     name = "/home/ircd/var/log/kline.log";
1251     size = 50 megabytes;
1252     };
1253    
1254     file {
1255     type = dline;
1256     name = "/home/ircd/var/log/dline.log";
1257     size = 50 megabytes;
1258     };
1259    
1260     file {
1261     type = gline;
1262     name = "/home/ircd/var/log/gline.log";
1263     size = 50 megabytes;
1264     };
1265    
1266     file {
1267     type = debug;
1268     name = "/home/ircd/var/log/debug.log";
1269     size = 50 megabytes;
1270     };
1271 michael 1249 };

Properties

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