ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 1474
Committed: Sun Jul 22 14:44:07 2012 UTC (14 years ago) by michael
File size: 36830 byte(s)
Log Message:
- removed &localchannels

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     * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
773     * that can join a +i channel without an invite.
774     */
775     use_invex = yes;
776    
777     /*
778     * use_except: Enable/disable channel mode +e, a n!u@h list of masks
779     * that can join a channel through a ban (+b).
780     */
781     use_except = yes;
782    
783     /*
784     * use_knock: Allows users to request an invite to a channel that
785     * is locked somehow (+ikl). If the channel is +p or you are banned
786     * the knock will not be sent.
787     *
788     * EFnet Note: This seems to be used mostly by European servers
789     * and not North American ones.
790 michael 583 * Please feel free to disable this if you do not
791     * want to run channel knock.
792 adx 30 * channel knock allows an user to "/quote knock #channel"
793 michael 583 * to ask for an invite. It is typically used in eu-efnet
794 adx 30 * to ask for an invite to #eu-opers.
795 adx 201 * A user who is banned will not have their knock
796 michael 583 * sent to channel. It is paced, so knock will not
797 adx 30 * cause a flood.
798     */
799     use_knock = yes;
800    
801     /*
802     * knock_delay: The amount of time a user must wait between issuing
803     * the knock command.
804     */
805 michael 951 knock_delay = 5 minutes;
806 adx 30
807     /*
808     * knock_delay_channel: How often a knock to any specific channel
809     * is permitted, regardless of the user sending the knock.
810     */
811     knock_delay_channel = 1 minute;
812    
813 michael 583 /*
814     * max_chans_per_user: The maximum number of channels a user can
815     * join/be on.
816     */
817 adx 30 max_chans_per_user = 25;
818    
819 michael 1432 /*
820     * max_chans_per_oper: The maximum number of channels an oper can
821     * join/be on.
822     */
823     max_chans_per_oper = 50;
824    
825 adx 30 /* quiet_on_ban: stop banned people talking in channels. */
826     quiet_on_ban = yes;
827    
828     /* max_bans: maximum number of +b/e/I modes in a channel */
829     max_bans = 100;
830    
831     /*
832 adx 201 * how many joins in how many seconds constitute a flood, use 0 to
833     * disable. +b opers will be notified (changeable via /set)
834     */
835     join_flood_count = 16;
836     join_flood_time = 8 seconds;
837    
838     /*
839 adx 30 * splitcode: The ircd will now check splitmode every few seconds.
840     *
841     * Either split users or split servers can activate splitmode, but
842     * both conditions must be met for the ircd to deactivate splitmode.
843     *
844     * You may force splitmode to be permanent by /quote set splitmode on
845     */
846    
847     /*
848     * default_split_user_count: when the usercount is lower than this level,
849     * consider ourselves split. This must be set for automatic splitmode.
850     */
851 michael 1070 default_split_user_count = 20000;
852 adx 30
853     /*
854     * default_split_server_count: when the servercount is lower than this,
855     * consider ourselves split. This must be set for automatic splitmode.
856     */
857     default_split_server_count = 10;
858    
859 michael 959 /* no_create_on_split: disallow users creating channels on split. */
860 adx 30 no_create_on_split = yes;
861    
862 michael 959 /* no_join_on_split: disallow users joining channels at all on a split. */
863 adx 30 no_join_on_split = no;
864     };
865    
866     /*
867 michael 583 * serverhide {}: The serverhide block contains the options regarding
868     * serverhiding
869 adx 30 */
870     serverhide {
871     /*
872     * flatten_links: this option will show all servers in /links appear
873     * that they are linked to this current server
874     *
875     * EFnet Note: While this is not a requirement on EFnet, it
876     * may be a good idea. Except, it's useless
877     * unless the entire net runs it.
878     */
879 michael 951 flatten_links = no;
880 adx 30
881     /*
882     * links_delay: how often to update the links file when it is
883     * flattened.
884     */
885     links_delay = 5 minutes;
886    
887     /*
888     * hidden: hide this server from a /links output on servers that
889 michael 583 * support it. This allows hub servers to be hidden etc.
890 adx 30 */
891     hidden = no;
892    
893     /*
894     * disable_hidden: prevent servers hiding themselves from a
895     * /links output.
896     */
897     disable_hidden = no;
898    
899     /*
900     * hide_servers: hide remote servernames everywhere and instead use
901     * hidden_name and network_desc.
902     */
903     hide_servers = no;
904    
905     /*
906     * Use this as the servername users see if hide_servers = yes.
907     */
908 michael 583 hidden_name = "*.hidden.com";
909 adx 30
910     /*
911 michael 951 * hide_server_ips: If this is disabled, opers will be unable to see
912     * servers ips and will be shown a masked ip, admins will be shown the
913     * real ip.
914 adx 30 *
915 michael 951 * If this is enabled, nobody can see a servers ip. *This is a kludge*,
916     * it has the side effect of hiding the ips everywhere, including
917     * logfiles.
918 adx 30 *
919     * We recommend you leave this disabled, and just take care with who you
920     * give admin=yes; to.
921     */
922     hide_server_ips = yes;
923     };
924    
925     /*
926 michael 583 * general {}: The general block contains many of the options that were once
927     * compiled in options in config.h. The general block is read at start time.
928 adx 30 */
929     general {
930 michael 951 /* max_watch: maximum WATCH entries a client can have. */
931 michael 1070 max_watch = 60;
932 michael 876
933 adx 30 /*
934 michael 1459 * EFnet Note: This feature is required for European EFnet servers
935     * and is used by several North American servers. As
936     * such, it has been left on by default. If you
937     * do not want your server to participate in G:Lines
938     * you should disable this.
939     */
940    
941     /* gline_enable: enable glines, network wide temp klines */
942     gline_enable = yes;
943    
944     /*
945     * gline_duration: the amount of time a gline will remain on your
946     * server before expiring
947     */
948     gline_duration = 1 day;
949    
950     /*
951     * gline_request_duration: how long a pending G-line can be around.
952     * 10 minutes should be plenty
953     */
954     gline_request_duration = 10 minutes;
955    
956     /*
957 adx 30 * gline_min_cidr: the minimum required length of a CIDR bitmask
958     * for IPv4 based glines
959     */
960     gline_min_cidr = 16;
961    
962     /*
963     * gline_min_cidr6: the minimum required length of a CIDR bitmask
964     * for IPv6 based glines
965     */
966     gline_min_cidr6 = 48;
967    
968     /*
969     * Whether to automatically set mode +i on connecting users.
970     */
971     invisible_on_connect = yes;
972    
973     /*
974     * Show "actually using host <ip>" on /whois when possible.
975     */
976     use_whois_actually = yes;
977    
978     /*
979     * Max time from the nickname change that still causes KILL
980 michael 1074 * automatically to switch for the current nick of that user.
981 adx 30 */
982 michael 1074 kill_chase_time_limit = 90 seconds;
983 michael 1303
984 adx 30 /*
985 michael 951 * If hide_spoof_ips is disabled, opers will be allowed to see the real
986     * IP of spoofed users in /trace etc. If this is defined they will be
987     * shown a masked IP.
988 adx 30 */
989     hide_spoof_ips = yes;
990    
991     /*
992 michael 583 * Ignore bogus timestamps from other servers. Yes, this will desync
993 adx 30 * the network, but it will allow chanops to resync with a valid non TS 0
994     *
995     * This should be enabled network wide, or not at all.
996     */
997     ignore_bogus_ts = no;
998    
999     /*
1000     * disable_auth: completely disable ident lookups; if you enable this,
1001     * be careful of what you set need_ident to in your auth {} blocks
1002     */
1003     disable_auth = no;
1004    
1005     /* disable_remote_commands: disable users doing commands on remote servers */
1006     disable_remote_commands = no;
1007    
1008     /*
1009 michael 583 * tkline_expire_notices: enables or disables temporary kline/xline
1010     * expire notices.
1011 adx 30 */
1012     tkline_expire_notices = no;
1013    
1014     /*
1015     * default_floodcount: the default value of floodcount that is configurable
1016     * via /quote set floodcount. This is the amount of lines a user
1017     * may send to any other user/channel in one second.
1018     */
1019     default_floodcount = 10;
1020    
1021     /*
1022     * failed_oper_notice: send a notice to all opers on the server when
1023     * someone tries to OPER and uses the wrong password, host or ident.
1024     */
1025     failed_oper_notice = yes;
1026    
1027     /*
1028     * dots_in_ident: the amount of '.' characters permitted in an ident
1029     * reply before the user is rejected.
1030     */
1031 michael 951 dots_in_ident = 2;
1032 adx 30
1033     /*
1034     * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1035     * placed via the server. klines hand placed are exempt from limits.
1036     * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1037     */
1038     min_nonwildcard = 3;
1039    
1040     /*
1041     * min_nonwildcard_simple: the minimum non wildcard characters in
1042     * gecos bans. wildcard chars: '*' '?' '#'
1043     */
1044     min_nonwildcard_simple = 3;
1045    
1046     /* max_accept: maximum allowed /accept's for +g usermode */
1047     max_accept = 20;
1048    
1049     /* anti_nick_flood: enable the nickflood control code */
1050     anti_nick_flood = yes;
1051    
1052     /* nick flood: the nick changes allowed in the specified period */
1053     max_nick_time = 20 seconds;
1054     max_nick_changes = 5;
1055    
1056     /*
1057     * anti_spam_exit_message_time: the minimum time a user must be connected
1058     * before custom quit messages are allowed.
1059     */
1060     anti_spam_exit_message_time = 5 minutes;
1061    
1062     /*
1063     * ts delta: the time delta allowed between server clocks before
1064     * a warning is given, or before the link is dropped. all servers
1065     * should run ntpdate/rdate to keep clocks in sync
1066     */
1067     ts_warn_delta = 30 seconds;
1068     ts_max_delta = 5 minutes;
1069    
1070     /*
1071     * kline_with_reason: show the user the reason why they are k/d/glined
1072     * on exit. May give away who set k/dline when set via tcm.
1073     */
1074     kline_with_reason = yes;
1075    
1076     /*
1077     * kline_reason: show this message to users on channel
1078     * instead of the oper reason.
1079     */
1080     kline_reason = "Connection closed";
1081    
1082 michael 583 /*
1083     * reject_hold_time: wait this amount of time before disconnecting
1084     * a rejected client. Use 0 to disable.
1085     */
1086     reject_hold_time = 30 seconds;
1087 adx 30
1088     /*
1089     * warn_no_nline: warn opers about servers that try to connect but
1090     * we don't have a connect {} block for. Twits with misconfigured
1091     * servers can get really annoying with this enabled.
1092     */
1093     warn_no_nline = yes;
1094    
1095 michael 584 /*
1096     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1097     * operators and administrators. Doing so is a good idea in case
1098     * there are any exempted (exempt{}) server IPs you don't want to
1099     * see leaked.
1100     */
1101     stats_e_disabled = no;
1102    
1103 adx 30 /* stats_o_oper only: make stats o (opers) oper only */
1104     stats_o_oper_only = yes;
1105    
1106     /* stats_P_oper_only: make stats P (ports) oper only */
1107     stats_P_oper_only = yes;
1108    
1109     /*
1110     * stats i oper only: make stats i (auth {}) oper only. set to:
1111     * yes: show users no auth blocks, made oper only.
1112     * masked: show users first matching auth block
1113     * no: show users all auth blocks.
1114     */
1115     stats_i_oper_only = yes;
1116    
1117     /*
1118     * stats_k_oper_only: make stats k/K (klines) oper only. set to:
1119     * yes: show users no auth blocks, made oper only
1120     * masked: show users first matching auth block
1121     * no: show users all auth blocks.
1122     */
1123     stats_k_oper_only = yes;
1124 michael 583
1125 adx 30 /*
1126     * caller_id_wait: time between notifying a +g user that somebody
1127     * is messaging them.
1128     */
1129     caller_id_wait = 1 minute;
1130    
1131     /*
1132 michael 56 * opers_bypass_callerid: allows operators to bypass +g and message
1133     * anyone who has it set (useful if you use services).
1134     */
1135     opers_bypass_callerid = no;
1136    
1137     /*
1138 adx 30 * pace_wait_simple: time between use of less intensive commands
1139 adx 269 * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1140 adx 30 */
1141     pace_wait_simple = 1 second;
1142    
1143     /*
1144     * pace_wait: time between more intensive commands
1145 adx 269 * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1146 adx 30 */
1147     pace_wait = 10 seconds;
1148    
1149     /*
1150     * short_motd: send clients a notice telling them to read the motd
1151     * instead of forcing a motd to clients who may simply ignore it.
1152     */
1153     short_motd = no;
1154    
1155     /*
1156     * ping_cookie: require clients to respond exactly to a ping command,
1157     * can help block certain types of drones and FTP PASV mode spoofing.
1158     */
1159     ping_cookie = no;
1160    
1161     /* no_oper_flood: increase flood limits for opers. */
1162     no_oper_flood = yes;
1163    
1164     /*
1165     * true_no_oper_flood: completely eliminate flood limits for opers
1166     * and for clients with can_flood = yes in their auth {} blocks
1167     */
1168     true_no_oper_flood = yes;
1169    
1170     /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1171     oper_pass_resv = yes;
1172    
1173     /* REMOVE ME. The following line checks you've been reading. */
1174     havent_read_conf = 1;
1175    
1176     /*
1177     * max_targets: the maximum amount of targets in a single
1178     * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1179     */
1180     max_targets = 4;
1181    
1182     /*
1183     * client_flood: maximum amount of data in a clients queue before
1184     * they are dropped for flooding.
1185     */
1186     client_flood = 2560 bytes;
1187    
1188     /*
1189     * message_locale: the default message locale
1190     * Use "standard" for the compiled in defaults.
1191     * To install the translated messages, go into messages/ in the
1192     * source directory and run `make install'.
1193     */
1194     message_locale = "standard";
1195    
1196     /*
1197     * usermodes configurable: a list of usermodes for the options below
1198     *
1199     * +b - bots - See bot and drone flooding notices
1200     * +c - cconn - Client connection/quit notices
1201 michael 959 * +C - cconn_full - Client connection/quit notices full
1202 adx 30 * +D - deaf - Don't receive channel messages
1203     * +d - debug - See debugging notices
1204 michael 1426 * +f - full - See auth{} block full notices
1205 adx 30 * +G - softcallerid - Server Side Ignore for users not on your channels
1206     * +g - callerid - Server Side Ignore (for privmsgs etc)
1207 michael 1294 * +H - hidden - Hides operator status to other users
1208 adx 30 * +i - invisible - Not shown in NAMES or WHO unless you share a
1209     * a channel
1210 michael 1290 * +j - rej - See rejected client notices
1211 adx 30 * +k - skill - See server generated KILL messages
1212     * +l - locops - See LOCOPS messages
1213     * +n - nchange - See client nick changes
1214     * +s - servnotice - See general server notices
1215     * +u - unauth - See unauthorized client notices
1216     * +w - wallop - See server generated WALLOPS
1217     * +x - external - See remote server connection and split notices
1218     * +y - spy - See LINKS, STATS, TRACE notices etc.
1219     * +z - operwall - See oper generated WALLOPS
1220     */
1221 michael 583
1222 adx 30 /* oper_only_umodes: usermodes only opers may set */
1223 michael 1294 oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1224 db 853 nchange, rej, spy, external, operwall,
1225     locops, unauth;
1226 adx 30
1227     /* oper_umodes: default usermodes opers get when they /oper */
1228 adx 264 oper_umodes = bots, locops, servnotice, operwall, wallop;
1229 adx 30
1230     /*
1231     * use_egd: if your system does not have *random devices yet you
1232     * want to use OpenSSL and encrypted links, enable this. Beware -
1233     * EGD is *very* CPU intensive when gathering data for its pool
1234     */
1235     # use_egd = yes;
1236    
1237     /*
1238     * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1239     * which automatically finds the path.
1240     */
1241     # egdpool_path = "/var/run/egd-pool";
1242    
1243     /*
1244     * throttle_time: the minimum amount of time between connections from
1245     * the same ip. exempt {} blocks are excluded from this throttling.
1246     * Offers protection against flooders who reconnect quickly.
1247     * Set to 0 to disable.
1248     */
1249     throttle_time = 0;
1250     };
1251    
1252     modules {
1253     /*
1254 michael 951 * path: other paths to search for modules specified below
1255 michael 1441 * and in "/module load".
1256 adx 30 */
1257 michael 1070 path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1258     path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1259 adx 30
1260     /* module: the name of a module to load on startup/rehash */
1261 michael 1070 #module = "some_module.la";
1262 adx 30 };
1263 michael 1247
1264     /*
1265     * log {}: contains information about logfiles.
1266     */
1267     log {
1268     /* Do you want to enable logging to ircd.log? */
1269     use_logging = yes;
1270    
1271     file {
1272     type = oper;
1273     name = "/home/ircd/var/log/oper.log";
1274 michael 1250 size = unlimited;
1275 michael 1247 };
1276    
1277     file {
1278     type = user;
1279 michael 1249 name = "/home/ircd/var/log/user.log";
1280 michael 1247 size = 50 megabytes;
1281     };
1282    
1283     file {
1284     type = kill;
1285     name = "/home/ircd/var/log/kill.log";
1286     size = 50 megabytes;
1287     };
1288    
1289     file {
1290     type = kline;
1291     name = "/home/ircd/var/log/kline.log";
1292     size = 50 megabytes;
1293     };
1294    
1295     file {
1296     type = dline;
1297     name = "/home/ircd/var/log/dline.log";
1298     size = 50 megabytes;
1299     };
1300    
1301     file {
1302     type = gline;
1303     name = "/home/ircd/var/log/gline.log";
1304     size = 50 megabytes;
1305     };
1306    
1307     file {
1308     type = debug;
1309     name = "/home/ircd/var/log/debug.log";
1310     size = 50 megabytes;
1311     };
1312 michael 1249 };

Properties

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