ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 9173
Committed: Sun Jan 19 09:35:31 2020 UTC (6 years, 8 months ago) by michael
File size: 39727 byte(s)
Log Message:
- Update reference.conf

File Contents

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

Properties

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