ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/example.efnet.conf
Revision: 1495
Committed: Sun Aug 5 09:35:42 2012 UTC (11 years, 8 months ago) by michael
Original Path: ircd-hybrid-8/doc/example.efnet.conf
File size: 35643 byte(s)
Log Message:
- Removed use_invex, use_except and use_knock configuration options.
  These features are now enabled by default

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

Properties

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