ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/doc/example.efnet.conf
Revision: 1401
Committed: Tue May 8 18:58:13 2012 UTC (14 years, 2 months ago) by michael
File size: 37401 byte(s)
Log Message:
o) Removed channel::burst_topicwho configuration option. Topicsetters are
   now sent by default

File Contents

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

Properties

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