ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 1249
Committed: Sat Oct 1 10:07:53 2011 UTC (14 years, 9 months ago) by michael
Original Path: ircd-hybrid-8/etc/example.efnet.conf
File size: 38629 byte(s)
Log Message:
- Fix typo in example configuration files

File Contents

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

Properties

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