ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 7437
Committed: Thu Mar 10 19:59:52 2016 UTC (10 years, 6 months ago) by michael
File size: 40964 byte(s)
Log Message:
- Change whowas system to use a linked list instead of othe this monolithic WHOWAS table
- Size of the whowas nick name history length is now configurable

File Contents

# User Rev Content
1 michael 2962 /*
2     * This is an example configuration file for ircd-hybrid
3 db 897 *
4 michael 7006 * Copyright (c) 2000-2016 ircd-hybrid development team
5 db 897 *
6     * $Id$
7     */
8    
9 michael 1824 /*
10     * ########################################################################
11 michael 2322 * IMPORTANT NOTE:
12 db 897 *
13 michael 3882 * 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 db 897 * then general access.
16 michael 1824 * ########################################################################
17 db 897 *
18     * Shell style (#), C++ style (//) and C style comments are supported.
19     *
20     * Files may be included by either:
21     * .include "filename"
22     * .include <filename>
23     *
24     * Times/durations are written as:
25     * 12 hours 30 minutes 1 second
26 michael 2841 *
27 db 897 * Valid units of time:
28 michael 1783 * year, month, week, day, hour, minute, second
29 db 897 *
30     * Valid units of size:
31     * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
32     *
33 michael 2305 * Sizes and times may be singular or plural.
34     */
35 db 897
36 michael 1824
37 db 897 /*
38 michael 1336 * serverinfo {}: contains information about the server
39 db 897 */
40     serverinfo {
41     /*
42 michael 2345 * name: the name of this server. This cannot be changed at runtime.
43 db 897 */
44 michael 6523 name = "server.example.net";
45 db 897
46     /*
47 michael 2345 * sid: a server's unique ID. This is three characters long and must
48     * be in the form [0-9][A-Z0-9][A-Z0-9]. The first character must be
49 db 897 * a digit, followed by 2 alpha-numerical letters.
50 michael 2345 *
51 michael 1863 * NOTE: The letters must be capitalized. This cannot be changed at runtime.
52 michael 6156 *
53 michael 6523 * A sid is automatically generated at runtime, if you want to configure
54     * a specific sid, uncomment the following line.
55 db 897 */
56 michael 6156 # sid = "0HY";
57 db 897
58     /*
59 michael 1533 * description: the description of the server.
60 db 897 */
61 michael 1534 description = "ircd-hybrid test server";
62 db 897
63     /*
64 michael 5522 * network_name, network_desc: the name and description of the network this
65     * server is on. Shown in the 005 reply and used with serverhiding.
66 db 897 */
67     network_name = "MyNet";
68     network_desc = "This is My Network";
69    
70     /*
71     * hub: allow this server to act as a hub and have multiple servers
72     * connected to it.
73     */
74     hub = no;
75    
76     /*
77 michael 5719 * vhost: the IP address to bind to when we connect outward to IPv4 servers.
78     * This should be an IPv4 address, or "*" for INADDR_ANY.
79 db 897 */
80 michael 6523 # vhost = "192.0.2.1";
81 db 897
82     /*
83 michael 5719 * vhost6: the IP address to bind to when we connect outward to IPv6 servers.
84     * This should be an IPv6 address, or "*" for in6addr_any.
85 db 897 */
86 michael 6523 # vhost6 = "2001:DB8::1";
87 db 897
88 michael 5489 /*
89     * default_max_clients: the default maximum number of clients allowed
90     * to connect. This can be changed from within IRC via /QUOTE SET MAX.
91     */
92     default_max_clients = 512;
93 db 897
94     /*
95 michael 1751 * max_nick_length: only applies to local clients. Must be in the
96     * range of 9 to 30. Default is 9 if nothing else is specified.
97     */
98     max_nick_length = 9;
99    
100     /*
101     * max_topic_length: only applies to topics set by local clients.
102     * Must be in the range of 80 to 300. Default is 80 if nothing
103     * else is specified.
104     */
105     max_topic_length = 160;
106    
107     /*
108 michael 7258 * libgeoip_database_options: used to control the libGeoIP database handling.
109     *
110     * Available options:
111     *
112     * standard - Read database from file system. This uses the least memory.
113     * memory_cache - Load database into memory. Provides faster performance but
114 michael 7263 * uses more memory.
115 michael 7258 * mmap_cache - Load database into mmap shared memory.
116     * check_cache - Check for updated database. If database has been updated,
117 michael 7267 * reload file handle and/or memory cache.
118 michael 7258 */
119     # libgeoip_database_options = memory_cache, check_cache;
120    
121     /*
122     * libgeoip_ipv4_database_file: path to the GeoIP IPv4 database file.
123     */
124     # libgeoip_ipv4_database_file = "etc/GeoIP.dat";
125    
126     /*
127     * libgeoip_ipv6_database_file: path to the GeoIP IPv6 database file.
128     */
129     # libgeoip_ipv6_database_file = "etc/GeoIPv6.dat";
130    
131     /*
132 michael 7387 * rsa_private_key_file: the path to the file containing the RSA key.
133 db 897 *
134 michael 2468 * Example commands to store a 2048 bit RSA key in rsa.key:
135 michael 2308 *
136 michael 7118 * OpenSSL/LibreSSL:
137 michael 6624 * openssl genrsa -out rsa.key 2048
138 michael 7118 *
139     * GnuTLS:
140     * certtool --generate-privkey --sec-param=medium --outfile rsa.key
141     *
142     * Once the RSA key is generated, it is highly recommended to lock down
143     * its file permissions:
144     *
145 michael 6624 * chown <ircd-user>.<ircd.group> rsa.key
146     * chmod 0600 rsa.key
147 db 897 */
148 michael 4173 # rsa_private_key_file = "etc/rsa.key";
149 db 897
150     /*
151 michael 951 * ssl_certificate_file: the path to the file containing our
152 michael 2322 * SSL certificate for encrypted client connection.
153 db 897 *
154     * This assumes your private RSA key is stored in rsa.key. You
155 michael 1863 * MUST have an RSA key in order to generate the certificate.
156 db 897 *
157 michael 1863 * Example command:
158     *
159 michael 7118 * OpenSSL/LibreSSL:
160 michael 6624 * openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
161 db 897 *
162 michael 7118 * GnuTLS:
163     * certtool --generate-self-signed --load-privkey rsa.key --outfile cert.pem
164 db 897 */
165 michael 4173 # ssl_certificate_file = "etc/cert.pem";
166 michael 967
167 michael 1351 /*
168 michael 4173 * ssl_dh_param_file: path to the PEM encoded Diffie-Hellman
169     * parameter file. DH parameters are required when using
170     * ciphers with EDH (ephemeral Diffie-Hellman) key exchange.
171 michael 1351 *
172     * A DH parameter file can be created by running:
173     *
174 michael 7118 * OpenSSL/LibreSSL:
175 michael 6624 * openssl dhparam -out dhparam.pem 2048
176 michael 1351 *
177 michael 7118 * GnuTLS:
178     * certtool --generate-dh-params --sec-param=medium --outfile dhparam.pem
179 michael 1351 */
180 michael 4173 # ssl_dh_param_file = "etc/dhparam.pem";
181 michael 1306
182 michael 967 /*
183 michael 4173 * ssl_dh_elliptic_curve: defines the curve to use for the
184     * Elliptic Curve Diffie-Hellman (ECDH) algorithm.
185 michael 4494 * Default is ANSI X9.62 prime256v1/secp256r1 if nothing else is specified.
186 michael 4070 *
187 michael 4185 * A list of supported curves by OpenSSL can be obtained by running:
188     *
189 michael 6624 * openssl ecparam -list_curves
190 michael 7198 *
191     * This directive currently doesn't do anything with GnuTLS support.
192 michael 4070 */
193     # ssl_dh_elliptic_curve = "secp521r1";
194    
195     /*
196 michael 4173 * ssl_cipher_list: list of ciphers to support on _this_ server.
197     * Can be used to enforce specific ciphers for incoming SSL/TLS
198 michael 7198 * connections. If a client (which also includes incoming server
199     * connections) is not capable of using any of the ciphers listed
200     * here, the connection will simply be rejected.
201 michael 1550 *
202 michael 7118 * A list of supported ciphers can be obtained by running:
203 michael 1306 *
204 michael 7118 * OpenSSL/LibreSSL:
205 michael 6624 * openssl ciphers -tls1 -v
206 michael 1306 *
207 michael 7118 * GnuTLS:
208     * gnutls-cli --list
209     *
210 michael 1524 * Multiple ciphers are separated by colons. The order of preference is
211     * from left to right.
212 michael 1306 */
213 michael 3015 # ssl_cipher_list = "ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA:AES256-SHA";
214 michael 1306
215     /*
216 michael 4173 * ssl_message_digest_algorithm: defines what cryptographic hash function
217     * to use for generating fingerprint hashes of X.509 certificates.
218 michael 4122 * Default is SHA-256 if nothing else is specified.
219 michael 4114 *
220 michael 7118 * A list of supported message digest algorithms can be obtained by running:
221 michael 4114 *
222 michael 7118 * OpenSSL/LibreSSL:
223 michael 6624 * openssl list-message-digest-algorithms
224 michael 7118 *
225     * GnuTLS:
226     * gnutls-cli --list
227 michael 4114 */
228     # ssl_message_digest_algorithm = "sha256";
229 db 897 };
230    
231     /*
232 michael 4560 * admin {}: contains administrative information about the server
233 db 897 */
234     admin {
235     name = "Smurf target";
236     description = "Main Server Administrator";
237 michael 6523 email = "<admin@server.example.net>";
238 db 897 };
239    
240     /*
241 michael 1229 * class {}: contains information about classes for users
242 db 897 */
243     class {
244 michael 1863 /* name: the name of the class. */
245 db 897 name = "users";
246    
247     /*
248     * ping_time: how often a client must reply to a PING from the
249     * server before they are dropped.
250     */
251     ping_time = 90 seconds;
252    
253     /*
254     * number_per_ip: how many local users are allowed to connect
255 michael 4173 * from a single IP address (optional)
256 db 897 */
257     number_per_ip = 2;
258    
259     /*
260     * max_local: how many local users are allowed to connect
261 michael 4173 * from a single ident@host (optional)
262 db 897 */
263     max_local = 2;
264    
265     /*
266 michael 4173 * max_global: network-wide limit of users per ident@host (optional)
267 db 897 */
268     max_global = 10;
269    
270     /*
271     * max_number: the maximum number of users allowed in this class (optional)
272     */
273     max_number = 100;
274    
275     /*
276 michael 4173 * The following lines are optional and allow you to define
277 michael 1863 * how many users can connect from one /NN subnet.
278 db 897 */
279     cidr_bitlen_ipv4 = 24;
280     cidr_bitlen_ipv6 = 120;
281     number_per_cidr = 16;
282    
283     /*
284 michael 2322 * sendq: the amount of data allowed in a client's send queue before
285 db 897 * they are dropped.
286     */
287     sendq = 100 kbytes;
288 michael 1516
289     /*
290 michael 2322 * recvq: the amount of data allowed in a client's receive queue before
291 michael 4301 * they are dropped for flooding. Defaults to 2560 if the chosen value
292     * isn't within the range of 512 to 8000.
293 michael 1516 */
294     recvq = 2560 bytes;
295 db 897 };
296    
297     class {
298     name = "opers";
299     ping_time = 90 seconds;
300     number_per_ip = 10;
301     max_number = 100;
302 michael 1428 sendq = 100 kbytes;
303 michael 1783
304     /*
305 michael 3933 * max_channels: maximum number of channels users in this class can join.
306     */
307     max_channels = 60;
308    
309     /*
310 michael 6668 * min_idle: minimum idle time that is shown in WHOIS.
311 michael 1783 */
312     min_idle = 3 hours;
313    
314     /*
315 michael 6668 * max_idle: maximum idle time that is shown in WHOIS.
316 michael 1783 */
317     max_idle = 8 hours;
318    
319     /*
320     * flags:
321     *
322 michael 2322 * random_idle - a fake idle time is set randomly between
323     * min_idle and max_idle
324     * hide_idle_from_opers - the fake idle time will also be shown to operators
325 michael 1783 */
326     flags = random_idle, hide_idle_from_opers;
327 db 897 };
328    
329     class {
330     name = "server";
331     ping_time = 90 seconds;
332    
333     /*
334 michael 1863 * connectfreq: only used in server classes. Specifies the delay
335 db 897 * between autoconnecting to servers.
336     */
337     connectfreq = 5 minutes;
338    
339 michael 2322 /* max number: the number of servers to autoconnect to. */
340 db 897 max_number = 1;
341    
342 michael 1863 /* sendq: servers need a higher sendq as they send more data. */
343 db 897 sendq = 2 megabytes;
344     };
345    
346     /*
347 michael 2322 * motd {}: Allows the display of a different MOTD to a client
348 michael 2210 * depending on its origin. Applies to local users only.
349 michael 2150 */
350     motd {
351     /*
352     * mask: multiple mask entries are permitted. Mask can either be
353 michael 2993 * a class name or a hostname. CIDR is supported.
354 michael 2150 */
355     mask = "*.at";
356     mask = "*.de";
357     mask = "*.ch";
358    
359     /*
360 michael 2152 * file: path to the actual motd file.
361 michael 2150 */
362 michael 4173 file = "etc/german.motd";
363 michael 2150 };
364    
365     /*
366 michael 1229 * listen {}: contains information about the ports ircd listens on
367 db 897 */
368     listen {
369     /*
370 michael 6484 * port: the port to listen on. If no host is specified earlier in the
371     * listen {} block, it will listen on all available IP addresses.
372 db 897 *
373 michael 2328 * Ports are separated by commas; a range may be specified using ".."
374 db 897 */
375 michael 2345
376 michael 4301 /* port: listen on all available IP addresses, ports 6665 to 6669. */
377 db 897 port = 6665 .. 6669;
378    
379     /*
380 michael 6712 * Listen on 192.0.2.2/6697 with SSL enabled and hidden from STATS P
381 db 897 * unless you are an administrator.
382     *
383 michael 2322 * NOTE: The "flags" directive always has to come before "port".
384 michael 951 *
385     * Currently available flags are:
386     *
387 michael 1679 * ssl - Port may only accept TLS/SSL connections
388 michael 951 * server - Only server connections are permitted
389 michael 1229 * hidden - Port is hidden from /stats P, unless you're an admin
390 db 897 */
391     flags = hidden, ssl;
392 michael 6523 host = "192.0.2.2";
393 db 897 port = 6697;
394    
395     /*
396 michael 5522 * host: set a specific IP address to listen on using the
397 michael 2322 * subsequent port definitions. This may be IPv4 or IPv6.
398 db 897 */
399 michael 6523 host = "192.0.2.3";
400 db 897 port = 7000, 7001;
401    
402 michael 6523 host = "2001:DB8::2";
403 db 897 port = 7002;
404     };
405    
406     /*
407 michael 1229 * auth {}: allow users to connect to the ircd
408 db 897 */
409     auth {
410     /*
411 michael 1541 * user: the user@host allowed to connect. Multiple user
412 michael 4266 * lines are permitted within each auth {} block.
413 db 897 */
414 michael 6523 user = "*@192.0.2.0/24";
415     user = "*test@2001:DB8:*";
416 db 897
417 michael 4173 /* password: an optional password that is required to use this block. */
418 db 897 password = "letmein";
419    
420     /*
421     * encrypted: controls whether the auth password above has been
422 michael 5504 * encrypted. Default is 'no' if nothing else is specified.
423 db 897 */
424     encrypted = yes;
425    
426     /*
427 michael 2322 * spoof: fake the user's host to this. This is free-form, just do
428 michael 1863 * everyone a favor and don't abuse it. ('=' prefix on /stats I)
429 db 897 */
430     spoof = "I.still.hate.packets";
431    
432 michael 4173 /* class: the class the user is placed in. */
433 db 897 class = "opers";
434    
435     /*
436 michael 4392 * need_password - don't allow users who haven't supplied the correct | ('&' prefix on /stats I if disabled)
437 michael 4266 * password to connect using another auth {} block
438 michael 4392 * need_ident - require the user to have identd to connect | ('+' prefix on /stats I)
439 michael 1229 * spoof_notice - enable spoofing notification to admins
440 michael 4392 * exceed_limit - allow a user to exceed class limits | ('>' prefix on /stats I)
441 michael 5805 * kline_exempt - exempt this user from k-lines | ('^' prefix on /stats I)
442 michael 5985 * xline_exempt - exempt this user from x-lines | ('!' prefix on /stats I)
443 michael 4392 * resv_exempt - exempt this user from resvs | ('$' prefix on /stats I)
444     * no_tilde - remove ~ from a user with no ident | ('-' prefix on /stats I)
445     * can_flood - allow this user to exceed flood limits | ('|' prefix on /stats I)
446     * webirc - enables WEBIRC authentication for web-based | ('<' prefix on /stats I)
447     * clients such as Mibbit
448 db 897 */
449     flags = need_password, spoof_notice, exceed_limit, kline_exempt,
450 michael 5985 xline_exempt, resv_exempt, no_tilde, can_flood;
451 db 897 };
452    
453     auth {
454     /*
455 michael 4301 * redirserv, redirport: the server and port to redirect a user to.
456     * A user does not have to obey the redirection; the ircd just
457     * suggests an alternative server for them.
458 db 897 */
459 michael 6523 redirserv = "server2.example.net";
460 db 897 redirport = 6667;
461 michael 2345
462 michael 6523 user = "*@*.ch";
463 db 897
464 michael 4173 /* class: a class is required even though it is not used. */
465 db 897 class = "users";
466     };
467    
468     auth {
469     user = "*@*";
470     class = "users";
471     flags = need_ident;
472     };
473    
474     /*
475 michael 1229 * operator {}: defines ircd operators
476 db 897 */
477     operator {
478 michael 4301 /* name: the name of the operator */
479 michael 1537 name = "sheep";
480 db 897
481     /*
482 michael 3447 * user: the user@host required for this operator. Multiple user
483 michael 4266 * lines are permitted within each operator {} block.
484 db 897 */
485 michael 6523 user = "*sheep@192.0.2.0/26";
486     user = "*@192.0.2.240/28";
487 db 897
488     /*
489 michael 6612 * password: the password required to oper. By default this will need
490     * to be encrypted by using the provided mkpasswd tool.
491     * The availability of various password hashing algorithms may vary
492     * depending on the system's crypt(3) implementation.
493 db 897 */
494 michael 1070 password = "$5$x5zof8qe.Yc7/bPp$5zIg1Le2Lsgd4CvOjaD20pr5PmcfD7ha/9b2.TaUyG4";
495 db 897
496     /*
497     * encrypted: controls whether the oper password above has been
498 michael 4436 * encrypted. Default is 'yes' if nothing else is specified.
499 db 897 */
500     encrypted = yes;
501    
502     /*
503 michael 2244 * ssl_certificate_fingerprint: enhances security by additionally checking
504     * the oper's client certificate fingerprint against the specified
505     * fingerprint below.
506 michael 2236 *
507 michael 7118 * Hint: your users can use the following commands to obtain a SHA-256 hash
508 michael 2236 * of their ssl certificate:
509     *
510 michael 7118 * OpenSSL/LibreSSL:
511 michael 6624 * openssl x509 -sha256 -noout -fingerprint -in cert.pem | sed -e 's/^.*=//;s/://g'
512 michael 7118 *
513     * GnuTLS:
514     * certtool -i < cert.pem | egrep -A 1 'SHA256 fingerprint'
515 michael 2228 */
516 michael 2244 # ssl_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
517 michael 2228
518 michael 2248 /*
519     * ssl_connection_required: client must be connected over SSL/TLS
520 michael 4266 * in order to be able to use this operator {} block.
521 michael 2279 * Default is 'no' if nothing else is specified.
522 michael 2248 */
523     ssl_connection_required = no;
524    
525 michael 6668 /* class: the class the oper joins when they successfully OPER. */
526 db 897 class = "opers";
527    
528     /*
529 michael 6624 * whois: allows to override the default RPL_WHOISOPERATOR numeric
530     * string shown in /whois.
531     * This string is propagated to all servers on the network.
532     */
533     # whois = "is a Smurf Target (IRC Operator)";
534    
535     /*
536 michael 6668 * umodes: the default user modes opers get when they successfully OPER.
537 michael 4173 * If defined, it will override oper_umodes settings in general {}.
538 michael 6152 * Available user modes:
539 db 897 *
540     * +b - bots - See bot and drone flooding notices
541     * +c - cconn - Client connection/quit notices
542     * +D - deaf - Don't receive channel messages
543     * +d - debug - See debugging notices
544 michael 1818 * +e - external - See remote server connection and split notices
545 michael 1976 * +F - farconnect - Remote client connection/quit notices
546 michael 4266 * +f - full - See auth {} block full notices
547 db 897 * +G - softcallerid - Server Side Ignore for users not on your channels
548     * +g - callerid - Server Side Ignore (for privmsgs etc)
549 michael 7023 * +H - hidden - Hides IRC operator status to other users
550 michael 2267 * +i - invisible - Not shown in NAMES or WHO unless you share a channel
551 michael 1290 * +j - rej - See rejected client notices
552 db 897 * +k - skill - See server generated KILL messages
553     * +l - locops - See LOCOPS messages
554     * +n - nchange - See client nick changes
555 michael 3513 * +p - hidechans - Hides channel list in WHOIS
556 michael 3506 * +q - hideidle - Hides idle and signon time in WHOIS
557 michael 1855 * +R - nononreg - Only receive private messages from registered clients
558 db 897 * +s - servnotice - See general server notices
559     * +u - unauth - See unauthorized client notices
560     * +w - wallop - See server generated WALLOPS
561     * +y - spy - See LINKS, STATS, TRACE notices etc.
562     */
563 michael 3869 umodes = locops, servnotice, wallop;
564 db 897
565     /*
566 michael 5522 * flags: controls the activities and commands an oper is
567 michael 4301 * allowed to do on the server. All flags default to 'no'.
568     * Available flags:
569 db 897 *
570 michael 7060 * admin - gives administrator privileges | ('A' flag)
571     * close - allows CLOSE | ('B' flag)
572     * connect - allows local CONNECT | ('C' flag)
573     * connect:remote - allows remote CONNECT | ('D' flag)
574     * die - allows DIE | ('E' flag)
575     * dline - allows DLINE | ('F' flag)
576     * globops - allows GLOBOPS | ('G' flag)
577     * join:resv - allows to JOIN resv {} channels | ('H' flag)
578     * kill - allows to KILL local clients | ('I' flag)
579     * kill:remote - allows remote users to be /KILL'd | ('J' flag)
580     * kline - allows KLINE | ('K' flag)
581     * locops - allows LOCOPS | ('L' flag)
582     * module - allows MODULE | ('M' flag)
583     * nick:resv - allows to use NICK on resv {} nicks | ('N' flag)
584     * opme - allows OPME | ('O' flag)
585     * rehash - allows oper to REHASH config | ('P' flag)
586     * rehash:remote - allows oper to remotely REHASH config | ('Q' flag)
587     * remoteban - allows remote KLINE/UNKLINE | ('R' flag)
588     * restart - allows RESTART | ('S' flag)
589     * resv - allows RESV | ('T' flag)
590     * set - allows SET | ('U' flag)
591     * squit - allows local SQUIT | ('V' flag)
592     * squit:remote - allows remote SQUIT | ('W' flag)
593     * undline - allows UNDLINE | ('X' flag)
594     * unkline - allows UNKLINE | ('Y' flag)
595     * unresv - allows UNRESV | ('Z' flag)
596     * unxline - allows UNXLINE | ('a' flag)
597     * wallops - allows WALLOPS | ('b' flag)
598     * xline - allows XLINE | ('c' flag)
599 db 897 */
600 michael 4308 flags = admin, connect, connect:remote, die, globops, kill, kill:remote,
601     kline, module, rehash, restart, set, unkline, unxline, xline;
602 db 897 };
603    
604 michael 1552 /*
605 michael 2322 * connect {}: define a server to connect to
606 db 897 */
607     connect {
608 michael 4173 /* name: the name of the server. */
609 michael 6523 name = "uplink.example.net";
610 db 897
611     /*
612 michael 2322 * host: the host or IP address to connect to. If a hostname is used it
613     * must match the reverse DNS of the server.
614 db 897 */
615 michael 6523 host = "192.0.2.4";
616 db 897
617     /*
618 michael 2322 * vhost: the IP address to bind to when making outgoing connections to
619     * servers.
620 db 897 * serverinfo::vhost and serverinfo::vhost6 will be overridden
621     * by this directive.
622     */
623 michael 6523 vhost = "192.0.2.5";
624 db 897
625     /*
626 michael 4301 * send_password, accept_password: the passwords to send and accept.
627 michael 2322 * The remote server will have these passwords swapped.
628 db 897 */
629     send_password = "password";
630     accept_password = "anotherpassword";
631    
632     /*
633     * encrypted: controls whether the accept_password above has been
634 michael 1070 * encrypted.
635 db 897 */
636     encrypted = no;
637    
638 michael 4173 /* port: the port to connect to this server on. */
639 db 897 port = 6666;
640    
641     /*
642 michael 1863 * hub_mask: the mask of servers that this server may hub. Multiple
643     * entries are permitted.
644 db 897 */
645     hub_mask = "*";
646    
647     /*
648 michael 1863 * leaf_mask: the mask of servers this server may not hub. Multiple
649     * entries are permitted. Useful for forbidding EU -> US -> EU routes.
650 db 897 */
651     # leaf_mask = "*.uk";
652    
653 michael 4173 /* class: the class this server is in. */
654 db 897 class = "server";
655    
656 michael 1524 /*
657 michael 4173 * ssl_cipher_list: list of ciphers that the server we are connecting to
658     * must support. If the server is not capable of using any of the ciphers
659     * listed below, the connection will simply be rejected.
660 michael 1524 * Can be used to enforce stronger ciphers, even though this option
661     * is not necessarily required to establish a SSL/TLS connection.
662     *
663     * Multiple ciphers are separated by colons. The order of preference
664     * is from left to right.
665     */
666 michael 3059 # ssl_cipher_list = "ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA:AES256-SHA";
667 michael 1306
668 db 897 /*
669 michael 2244 * ssl_certificate_fingerprint: enhances security by additionally checking
670     * the server's client certificate fingerprint against the specified
671     * fingerprint below.
672 michael 2228 */
673 michael 2244 # ssl_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
674 michael 2228
675     /*
676 michael 1229 * autoconn - controls whether we autoconnect to this server or not,
677     * dependent on class limits. By default, this is disabled.
678 michael 1303 * ssl - Initiates a TLS/SSL connection.
679 db 897 */
680 michael 1519 # flags = autoconn, ssl;
681 db 897 };
682    
683     connect {
684 michael 6523 name = "ipv6.example.net";
685     host = "2001:DB8::3";
686 db 897 send_password = "password";
687     accept_password = "password";
688     port = 6666;
689    
690     /*
691     * aftype: controls whether the connection uses "ipv4" or "ipv6".
692     * Default is ipv4.
693     */
694     aftype = ipv6;
695     class = "server";
696     };
697    
698     /*
699     * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
700 michael 1229 * automatically
701 db 897 */
702     cluster {
703     /*
704 michael 2322 * name: the server to share with; this can take wildcards
705 db 897 *
706 michael 2322 * NOTE: only local actions will be clustered, meaning that if
707 db 897 * the server receives a shared kline/unkline/etc, it
708     * will not be propagated to clustered servers.
709     *
710     * Remote servers are not necessarily required to accept
711 michael 4288 * clustered lines, they need a shared {} block for *THIS*
712     * server in order to accept them.
713 db 897 */
714 michael 6523 name = "*.example.net";
715 db 897
716     /*
717 michael 2322 * type: list of what to share; options are as follows:
718 michael 1301 * dline - share dlines
719     * undline - share undlines
720 michael 1336 * kline - share klines
721     * unkline - share unklines
722     * xline - share xlines
723     * unxline - share unxlines
724     * resv - share resvs
725     * unresv - share unresvs
726     * locops - share locops
727     * all - share all of the above (default)
728 db 897 */
729     type = kline, unkline, locops, xline, resv;
730     };
731    
732     /*
733 michael 1229 * shared {}: users that are allowed to remote kline
734 db 897 *
735 michael 2322 * NOTE: This can effectively be used for remote klines.
736 db 897 * Please note that there is no password authentication
737 michael 1863 * for users setting remote klines. You must also be
738 db 897 * /oper'd in order to issue a remote kline.
739     */
740     shared {
741     /*
742 michael 2322 * name: the server the user must be connected to in order to set klines.
743     * If this is not specified, the user will be allowed to kline from all
744     * servers.
745 db 897 */
746 michael 6523 name = "irc2.example.net";
747 db 897
748     /*
749 michael 1863 * user: the user@host mask that is allowed to set klines. If this is
750 db 897 * not specified, all users on the server above will be allowed to set
751     * a remote kline.
752     */
753     user = "oper@my.host.is.spoofed";
754    
755     /*
756     * type: list of what to share, options are as follows:
757 michael 1301 * dline - allow oper/server to dline
758     * undline - allow oper/server to undline
759 michael 1336 * kline - allow oper/server to kline
760     * unkline - allow oper/server to unkline
761     * xline - allow oper/server to xline
762     * unxline - allow oper/server to unxline
763 michael 7082 * rehash - allow oper/server to rehash
764 michael 1336 * resv - allow oper/server to resv
765     * unresv - allow oper/server to unresv
766 db 897 * locops - allow oper/server to locops - only used for servers that cluster
767 michael 1336 * all - allow oper/server to do all of the above (default)
768 db 897 */
769     type = kline, unkline, resv;
770     };
771    
772     /*
773 michael 1229 * kill {}: users that are not allowed to connect
774 michael 4308 * Oper issued klines will be added to the specified kline database
775 db 897 */
776     kill {
777 michael 6523 user = "bad@*.example.net";
778 db 897 reason = "Obviously hacked account";
779     };
780    
781     /*
782 michael 2322 * deny {}: IP addresses that are not allowed to connect
783     * (before DNS/ident lookup)
784 michael 4308 * Oper issued dlines will be added to the specified dline database
785 db 897 */
786     deny {
787 michael 6523 ip = "192.0.2.0/28";
788 db 897 reason = "Reconnecting vhosted bots";
789     };
790    
791     /*
792 michael 2322 * exempt {}: IP addresses that are exempt from deny {} and Dlines
793 db 897 */
794     exempt {
795 michael 6523 ip = "192.0.2.240/28";
796 michael 7082
797     /* The 'ip' directives can be stacked */
798     ip = "10.0.0.0/8";
799     ip = "fc00::/7";
800 db 897 };
801    
802     /*
803 michael 1229 * resv {}: nicks and channels users may not use/join
804 db 897 */
805 michael 1858 resv { mask = "clone*"; reason = "Clone bots"; };
806 michael 3659 resv { mask = "Global"; reason = "Reserved for services"; };
807 michael 1866 resv { mask = "ChanServ"; reason = "Reserved for services"; };
808 michael 1858 resv { mask = "NickServ"; reason = "Reserved for services"; };
809     resv { mask = "OperServ"; reason = "Reserved for services"; };
810     resv { mask = "MemoServ"; reason = "Reserved for services"; };
811     resv { mask = "BotServ"; reason = "Reserved for services"; };
812     resv { mask = "HelpServ"; reason = "Reserved for services"; };
813     resv { mask = "HostServ"; reason = "Reserved for services"; };
814     resv { mask = "StatServ"; reason = "Reserved for services"; };
815     resv { mask = "#*services*"; reason = "Reserved for services"; };
816 michael 1823
817 michael 1858 resv {
818     /*
819     * mask: masks starting with a '#' are automatically considered
820 michael 2322 * as channel name masks.
821 michael 1858 */
822     mask = "#helsinki";
823 michael 3550 reason = "Channel is reserved for Finnish inhabitants";
824 michael 1858
825     /*
826     * exempt: can be either a ISO 3166 alpha-2 two letter country
827     * code, or a nick!user@host mask. CIDR is supported. Exempt
828     * entries can be stacked.
829     */
830     exempt = "FI";
831     };
832    
833 db 897 /*
834 michael 4308 * gecos {}: used for banning users based on their "realname".
835 db 897 */
836     gecos {
837     name = "*sex*";
838     reason = "Possible spambot";
839     };
840    
841     gecos {
842     name = "sub7server";
843     reason = "Trojan drone";
844     };
845    
846     /*
847 michael 4919 * service {}: specifies a server which may act as a network service
848     *
849     * NOTE: it is very important that every server on the network
850     * has the same service {} block.
851     */
852     service {
853 michael 7256 /* name: the actual name of the service. Wildcards are not allowed. */
854 michael 6523 name = "service.example.net";
855 michael 7256
856     /* The 'name' directives can be stacked. */
857 michael 6523 name = "stats.example.net";
858 michael 4919 };
859    
860     /*
861 michael 4545 * pseudo {}: adds pseudo/custom commands also known as service aliases
862     */
863     pseudo {
864 michael 5719 /* command: the actual command/alias. */
865 michael 4545 command = "IDENTIFY";
866    
867 michael 5719 /* prepend: optional text that can be prepended before the user's message. */
868 michael 4545 prepend = "IDENTIFY ";
869    
870 michael 5719 /* name: the service name, used for error messages. */
871 michael 4545 name = "NickServ";
872    
873 michael 5719 /* target: the actual target where this message should be sent to. */
874 michael 6523 target = "NickServ@service.example.net";
875 michael 4545 };
876    
877     pseudo {
878 michael 4591 command = "CHANSERV";
879     name = "ChanServ";
880 michael 6523 target = "ChanServ@service.example.net";
881 michael 4545 };
882    
883     pseudo {
884 michael 4591 command = "CS";
885     name = "ChanServ";
886 michael 6523 target = "ChanServ@service.example.net";
887 michael 4545 };
888    
889     pseudo {
890 michael 4591 command = "NICKSERV";
891     name = "NickServ";
892 michael 6523 target = "NickServ@service.example.net";
893 michael 4545 };
894    
895     pseudo {
896 michael 4591 command = "NS";
897     name = "NickServ";
898 michael 6523 target = "NickServ@service.example.net";
899 michael 4545 };
900    
901     pseudo {
902 michael 4591 command = "MEMOSERV";
903     name = "MemoServ";
904 michael 6523 target = "MemoServ@service.example.net";
905 michael 4545 };
906    
907     pseudo {
908 michael 4591 command = "MS";
909     name = "MemoServ";
910 michael 6523 target = "MemoServ@service.example.net";
911 michael 4545 };
912    
913     pseudo {
914 michael 4591 command = "OPERSERV";
915     name = "OperServ";
916 michael 6523 target = "OperServ@service.example.net";
917 michael 4545 };
918    
919     pseudo {
920 michael 4591 command = "OS";
921     name = "OperServ";
922 michael 6523 target = "OperServ@service.example.net";
923 michael 4545 };
924    
925     pseudo {
926 michael 4591 command = "HOSTSERV";
927     name = "HostServ";
928 michael 6523 target = "HostServ@service.example.net";
929 michael 4545 };
930    
931     pseudo {
932 michael 4591 command = "HS";
933     name = "HostServ";
934 michael 6523 target = "HostServ@service.example.net";
935 michael 4545 };
936    
937     pseudo {
938 michael 4591 command = "BOTSERV";
939     name = "BotServ";
940 michael 6523 target = "BotServ@service.example.net";
941 michael 4545 };
942    
943     pseudo {
944 michael 4591 command = "BS";
945     name = "BotServ";
946 michael 6523 target = "BotServ@service.example.net";
947 michael 4545 };
948    
949     /*
950 michael 4308 * channel {}: the channel block contains options pertaining to channels
951 db 897 */
952     channel {
953     /*
954     * disable_fake_channels: this option, if set to 'yes', will
955 michael 2322 * disallow clients from creating or joining channels that have one
956 db 897 * of the following ASCII characters in their name:
957     *
958     * 2 | bold
959     * 3 | mirc color
960 michael 951 * 15 | plain text
961 db 897 * 22 | reverse
962 michael 1424 * 29 | italic
963 db 897 * 31 | underline
964     * 160 | non-breaking space
965     */
966     disable_fake_channels = yes;
967    
968     /*
969 michael 3860 * invite_client_count, invite_client_time: how many INVITE commands
970     * are permitted per client per invite_client_time.
971 michael 3762 */
972 michael 3860 invite_client_count = 10;
973     invite_client_time = 5 minutes;
974 michael 3762
975     /*
976 michael 6792 * invite_delay_channel: how often an INVITE to any specific channel
977     * is permitted, regardless of the user sending the INVITE.
978     */
979     invite_delay_channel = 5 seconds;
980    
981     /*
982 michael 3860 * knock_client_count, knock_client_time: how many KNOCK commands
983     * are permitted per client per knock_client_time.
984 michael 3762 */
985 michael 3860 knock_client_count = 1;
986     knock_client_time = 5 minutes;
987 michael 3762
988     /*
989 michael 3933 * knock_delay_channel: how often a KNOCK to any specific channel
990 michael 3762 * is permitted, regardless of the user sending the KNOCK.
991 db 897 */
992     knock_delay_channel = 1 minute;
993    
994     /*
995 michael 3933 * max_channels: the maximum number of channels a user can join/be on.
996 michael 4266 * This is a default value which can be overriden with class {} blocks.
997 db 897 */
998 michael 3933 max_channels = 25;
999 db 897
1000 michael 5719 /* max_bans: maximum number of +b/e/I modes in a channel. */
1001 michael 1522 max_bans = 100;
1002 db 897
1003     /*
1004 michael 5489 * default_join_flood_count, default_join_flood_time:
1005     * how many joins in how many seconds constitute a flood. Use 0 to disable.
1006     * +b opers will be notified. These are only default values which can be
1007     * changed via "/QUOTE SET JFLOODCOUNT" and "/QUOTE SET JFLOODTIME".
1008 db 897 */
1009 michael 5489 default_join_flood_count = 18;
1010     default_join_flood_time = 6 seconds;
1011 db 897 };
1012    
1013     /*
1014 michael 4308 * serverhide {}: the serverhide block contains the options regarding
1015 michael 4205 * to server hiding. For more information regarding server hiding,
1016     * please see doc/serverhide.txt
1017 db 897 */
1018     serverhide {
1019     /*
1020 michael 2322 * disable_remote_commands: disable users issuing commands
1021 michael 2196 * on remote servers.
1022     */
1023     disable_remote_commands = no;
1024    
1025     /*
1026 db 897 * flatten_links: this option will show all servers in /links appear
1027 michael 2322 * as though they are linked to this current server.
1028 db 897 */
1029     flatten_links = no;
1030    
1031     /*
1032 michael 6597 * flatten_links_delay: how often to update the links file when it is
1033 db 897 * flattened.
1034     */
1035 michael 6597 flatten_links_delay = 5 minutes;
1036 db 897
1037     /*
1038 michael 6609 * flatten_links_file: path to the flatten links cache file.
1039 michael 6599 */
1040     flatten_links_file = "var/lib/links.txt";
1041    
1042     /*
1043 db 897 * hidden: hide this server from a /links output on servers that
1044 michael 1863 * support it. This allows hub servers to be hidden etc.
1045 db 897 */
1046     hidden = no;
1047    
1048     /*
1049     * hide_servers: hide remote servernames everywhere and instead use
1050     * hidden_name and network_desc.
1051     */
1052     hide_servers = no;
1053    
1054     /*
1055 michael 1851 * hide_services: define this if you want to hide the location of
1056 michael 4266 * services servers that are specified in the service {} block.
1057 michael 1851 */
1058     hide_services = no;
1059    
1060     /*
1061 michael 4308 * hidden_name: use this as the servername users see if hide_servers = yes.
1062 db 897 */
1063 michael 6523 hidden_name = "*.example.net";
1064 db 897
1065     /*
1066 michael 4301 * hide_server_ips: if this is disabled, opers will be unable to see
1067 michael 2322 * servers' IP addresses and will be shown a masked IP address; admins
1068     * will be shown the real IP address.
1069 db 897 *
1070 michael 2322 * If this is enabled, nobody can see a server's IP address.
1071     * *This is a kludge*: it has the side effect of hiding the IP addresses
1072     * everywhere, including logfiles.
1073 db 897 *
1074     * We recommend you leave this disabled, and just take care with who you
1075 michael 1729 * give administrator privileges to.
1076 db 897 */
1077     hide_server_ips = no;
1078     };
1079    
1080     /*
1081 michael 4308 * general {}: the general block contains many of the options that were once
1082 michael 1783 * compiled in options in config.h
1083 db 897 */
1084     general {
1085 michael 2286 /*
1086     * cycle_on_host_change: sends a fake QUIT/JOIN combination
1087     * when services change the hostname of a specific client.
1088     */
1089     cycle_on_host_change = yes;
1090    
1091 michael 951 /* max_watch: maximum WATCH entries a client can have. */
1092 michael 6740 max_watch = 50;
1093 db 897
1094 michael 6152 /* max_accept: maximum allowed /accept's for +g user mode. */
1095 michael 6740 max_accept = 50;
1096 michael 3882
1097 db 897 /*
1098 michael 7437 * whowas_history_length: maximun length of the WHOWAS nick name history */
1099     */
1100     whowas_history_length = 15000;
1101    
1102     /*
1103 michael 5805 * dline_min_cidr: the minimum required length of a CIDR bitmask
1104     * for IPv4 based D-lines.
1105 michael 1459 */
1106 michael 5805 dline_min_cidr = 16;
1107 michael 1459
1108     /*
1109 michael 5805 * dline_min_cidr6: the minimum required length of a CIDR bitmask
1110     * for IPv6 based D-lines.
1111 michael 1459 */
1112 michael 5805 dline_min_cidr6 = 48;
1113 michael 1459
1114     /*
1115 michael 5805 * kline_min_cidr: the minimum required length of a CIDR bitmask
1116     * for IPv4 based K-lines.
1117 db 897 */
1118 michael 5805 kline_min_cidr = 16;
1119 db 897
1120     /*
1121 michael 5805 * kline_min_cidr6: the minimum required length of a CIDR bitmask
1122     * for IPv6 based K-lines.
1123 db 897 */
1124 michael 5805 kline_min_cidr6 = 48;
1125 db 897
1126     /*
1127 michael 6668 * invisible_on_connect: whether to automatically set user mode +i
1128     * on connecting users.
1129 db 897 */
1130     invisible_on_connect = yes;
1131    
1132     /*
1133 michael 2322 * kill_chase_time_limit: KILL chasing is a feature whereby a KILL
1134     * issued for a user who has recently changed nickname will be applied
1135     * automatically to the new nick. kill_chase_time_limit is the maximum
1136     * time following a nickname change that this chasing will apply.
1137 db 897 */
1138 michael 3341 kill_chase_time_limit = 30 seconds;
1139 db 897
1140     /*
1141 michael 4173 * ignore_bogus_ts: ignore bogus timestamps from other servers.
1142     * Yes, this will desync the network, but it will allow chanops
1143     * to resync with a valid non TS 0.
1144 db 897 *
1145     * This should be enabled network wide, or not at all.
1146     */
1147     ignore_bogus_ts = no;
1148    
1149     /*
1150     * disable_auth: completely disable ident lookups; if you enable this,
1151 michael 5719 * be careful of what you set need_ident to in your auth {} blocks.
1152 db 897 */
1153     disable_auth = no;
1154    
1155     /*
1156     * tkline_expire_notices: enables or disables temporary kline/xline
1157     * expire notices.
1158     */
1159     tkline_expire_notices = no;
1160    
1161     /*
1162     * default_floodcount: the default value of floodcount that is configurable
1163 michael 4173 * via /quote set floodcount. This is the number of lines a user may send
1164 michael 5499 * to any other user/channel in one second. Set to 0 to disable.
1165 db 897 */
1166     default_floodcount = 10;
1167    
1168     /*
1169 michael 2305 * failed_oper_notice: send a notice to all opers on the server when
1170 db 897 * someone tries to OPER and uses the wrong password, host or ident.
1171     */
1172     failed_oper_notice = yes;
1173    
1174     /*
1175 michael 2322 * dots_in_ident: the number of '.' characters permitted in an ident
1176 db 897 * reply before the user is rejected.
1177     */
1178     dots_in_ident = 2;
1179    
1180     /*
1181 michael 2322 * min_nonwildcard: the minimum number of non-wildcard characters in
1182 michael 5894 * k/d lines placed via the server. K-lines hand-placed are exempt from
1183 michael 2322 * this limit.
1184 michael 5898 * Wildcard characters: '.', ':', '*', '?'
1185 db 897 */
1186     min_nonwildcard = 4;
1187    
1188     /*
1189 michael 2322 * min_nonwildcard_simple: the minimum number of non-wildcard characters
1190 michael 4173 * in gecos bans. Wildcard characters: '*', '?'
1191 db 897 */
1192     min_nonwildcard_simple = 3;
1193    
1194 michael 1863 /* anti_nick_flood: enable the nickflood control code. */
1195 db 897 anti_nick_flood = yes;
1196    
1197 michael 5621 /*
1198     * max_nick_changes, max_nick_time: the number of nick changes allowed in
1199     * the specified period.
1200     */
1201     max_nick_changes = 5;
1202 db 897 max_nick_time = 20 seconds;
1203    
1204     /*
1205 michael 7130 * away_count, away_time: how many AWAY commands are permitted per
1206 michael 4313 * client per away_time.
1207     */
1208     away_count = 2;
1209     away_time = 10 seconds;
1210    
1211     /*
1212 db 897 * anti_spam_exit_message_time: the minimum time a user must be connected
1213     * before custom quit messages are allowed.
1214     */
1215     anti_spam_exit_message_time = 5 minutes;
1216    
1217     /*
1218 michael 3882 * ts_warn_delta, ts_max_delta: the time delta allowed between server
1219     * clocks before a warning is given, or before the link is dropped.
1220 michael 4173 * All servers should run ntpdate/rdate to keep clocks in sync.
1221 db 897 */
1222 michael 4403 ts_warn_delta = 3 seconds;
1223     ts_max_delta = 15 seconds;
1224 db 897
1225     /*
1226 michael 3473 * warn_no_connect_block: warn opers about servers that try to connect
1227     * but for which we don't have a connect {} block. Twits with
1228     * misconfigured servers can become really annoying with this enabled.
1229 db 897 */
1230 michael 3473 warn_no_connect_block = yes;
1231 db 897
1232     /*
1233     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1234 michael 1863 * operators and administrators. Doing so is a good idea in case
1235 michael 6668 * there are any exempted (exempt {}) server IP addresses you don't
1236     * want to see leaked.
1237 db 897 */
1238     stats_e_disabled = no;
1239    
1240 michael 5025 /* stats_m_oper_only: make /stats m/M (messages) oper only. */
1241     stats_m_oper_only = yes;
1242    
1243 michael 4173 /* stats_o_oper_only: make stats o (opers) oper only. */
1244 db 897 stats_o_oper_only = yes;
1245    
1246 michael 4173 /* stats_P_oper_only: make stats P (ports) oper only. */
1247 db 897 stats_P_oper_only = yes;
1248    
1249 michael 4173 /* stats_u_oper_only: make stats u (uptime) oper only. */
1250 michael 2269 stats_u_oper_only = no;
1251    
1252 db 897 /*
1253 michael 3520 * stats_i_oper_only: make stats i (auth {}) oper only. Set to:
1254 michael 4266 * yes - show users no auth {} blocks, made oper only
1255     * masked - show users the first matching auth {} block
1256     * no - show users all auth {} blocks
1257 db 897 */
1258     stats_i_oper_only = yes;
1259    
1260     /*
1261 michael 1863 * stats_k_oper_only: make stats k/K (klines) oper only. Set to:
1262 michael 5029 * yes - show users no klines, made oper only
1263     * masked - show users the first matching kline
1264     * no - show users all klines
1265 db 897 */
1266     stats_k_oper_only = yes;
1267    
1268     /*
1269     * caller_id_wait: time between notifying a +g user that somebody
1270     * is messaging them.
1271     */
1272     caller_id_wait = 1 minute;
1273    
1274     /*
1275     * opers_bypass_callerid: allows operators to bypass +g and message
1276 michael 4786 * anyone who has it set.
1277 db 897 */
1278     opers_bypass_callerid = no;
1279    
1280     /*
1281 michael 2322 * pace_wait_simple: minimum time required between use of less
1282     * intensive commands
1283 michael 3520 * (ADMIN, HELP, LUSERS, VERSION, remote WHOIS)
1284 db 897 */
1285     pace_wait_simple = 1 second;
1286    
1287     /*
1288 michael 2322 * pace_wait: minimum time required between use of more intensive commands
1289 michael 4313 * (INFO, LINKS, MAP, MOTD, STATS, WHO, WHOWAS)
1290 db 897 */
1291     pace_wait = 10 seconds;
1292    
1293     /*
1294 michael 2322 * short_motd: send clients a notice telling them to read the MOTD
1295     * instead of forcing an MOTD to clients who may simply ignore it.
1296 db 897 */
1297     short_motd = no;
1298    
1299     /*
1300 michael 4173 * ping_cookie: require clients to respond exactly to a PING command,
1301 db 897 * can help block certain types of drones and FTP PASV mode spoofing.
1302     */
1303     ping_cookie = no;
1304    
1305     /* no_oper_flood: increase flood limits for opers. */
1306     no_oper_flood = yes;
1307    
1308     /*
1309 michael 2322 * max_targets: the maximum number of targets in a single
1310 michael 1863 * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1311 db 897 */
1312     max_targets = 4;
1313    
1314     /*
1315 michael 6152 * user modes configurable: a list of user modes for the options below
1316 db 897 *
1317     * +b - bots - See bot and drone flooding notices
1318     * +c - cconn - Client connection/quit notices
1319     * +D - deaf - Don't receive channel messages
1320     * +d - debug - See debugging notices
1321 michael 1818 * +e - external - See remote server connection and split notices
1322 michael 1976 * +F - farconnect - Remote client connection/quit notices
1323 michael 4266 * +f - full - See auth {} block full notices
1324 db 897 * +G - softcallerid - Server Side Ignore for users not on your channels
1325     * +g - callerid - Server Side Ignore (for privmsgs etc)
1326 michael 7023 * +H - hidden - Hides IRC operator status to other users
1327 michael 2345 * +i - invisible - Not shown in NAMES or WHO unless you share a channel
1328 michael 1290 * +j - rej - See rejected client notices
1329 db 897 * +k - skill - See server generated KILL messages
1330     * +l - locops - See LOCOPS messages
1331     * +n - nchange - See client nick changes
1332 michael 3513 * +p - hidechans - Hides channel list in WHOIS
1333 michael 3506 * +q - hideidle - Hides idle and signon time in WHOIS
1334 michael 1855 * +R - nononreg - Only receive private messages from registered clients
1335 db 897 * +s - servnotice - See general server notices
1336     * +u - unauth - See unauthorized client notices
1337     * +w - wallop - See server generated WALLOPS
1338     * +y - spy - See LINKS, STATS, TRACE notices etc.
1339     */
1340    
1341 michael 6152 /* oper_only_umodes: user modes only operators may set. */
1342 michael 6668 oper_only_umodes = bots, cconn, debug, external, farconnect, full, hidden,
1343     locops, nchange, rej, skill, spy, unauth;
1344 db 897
1345 michael 6668 /* oper_umodes: default user modes operators get when they successfully OPER. */
1346 michael 3869 oper_umodes = bots, locops, servnotice, wallop;
1347 db 897
1348     /*
1349 michael 3877 * throttle_count: the maximum number of connections from the same
1350     * IP address allowed in throttle_time duration.
1351     */
1352     throttle_count = 1;
1353    
1354     /*
1355 michael 2322 * throttle_time: the minimum amount of time required between
1356 michael 3877 * connections from the same IP address. exempt {} blocks are
1357     * excluded from this throttling.
1358 michael 1863 * Offers protection against flooders who reconnect quickly.
1359 db 897 * Set to 0 to disable.
1360     */
1361 michael 3877 throttle_time = 2 seconds;
1362 db 897 };
1363    
1364     modules {
1365     /*
1366 michael 951 * path: other paths to search for modules specified below
1367 michael 1441 * and in "/module load".
1368 db 897 */
1369 michael 4173 path = "lib/ircd-hybrid/modules";
1370 michael 5007 # path = "lib/ircd-hybrid/modules/extra";
1371 michael 4173 path = "lib/ircd-hybrid/modules/autoload";
1372 db 897
1373 michael 1863 /* module: the name of a module to load on startup/rehash. */
1374 michael 2171 # module = "some_module.la";
1375 db 897 };
1376 michael 1247
1377     /*
1378     * log {}: contains information about logfiles.
1379     */
1380     log {
1381     /* Do you want to enable logging to ircd.log? */
1382     use_logging = yes;
1383    
1384     file {
1385     type = oper;
1386 michael 4173 name = "var/log/oper.log";
1387 michael 1250 size = unlimited;
1388 michael 1247 };
1389    
1390     file {
1391     type = user;
1392 michael 4173 name = "var/log/user.log";
1393 michael 1247 size = 50 megabytes;
1394     };
1395    
1396     file {
1397     type = kill;
1398 michael 4173 name = "var/log/kill.log";
1399 michael 1247 size = 50 megabytes;
1400     };
1401    
1402     file {
1403     type = kline;
1404 michael 4173 name = "var/log/kline.log";
1405 michael 1247 size = 50 megabytes;
1406     };
1407    
1408     file {
1409     type = dline;
1410 michael 4173 name = "var/log/dline.log";
1411 michael 1247 size = 50 megabytes;
1412     };
1413    
1414     file {
1415 michael 2336 type = xline;
1416 michael 4173 name = "var/log/xline.log";
1417 michael 2336 size = 50 megabytes;
1418     };
1419    
1420     file {
1421     type = resv;
1422 michael 4173 name = "var/log/resv.log";
1423 michael 2336 size = 50 megabytes;
1424     };
1425    
1426     file {
1427 michael 1247 type = debug;
1428 michael 4173 name = "var/log/debug.log";
1429 michael 1247 size = 50 megabytes;
1430 michael 1824 };
1431 michael 1247 };

Properties

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