ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 9857
Committed: Fri Jan 1 04:43:22 2021 UTC (5 years, 6 months ago) by michael
File size: 39327 byte(s)
Log Message:
- Bump copyright years

File Contents

# User Rev Content
1 michael 2962 /*
2     * This is an example configuration file for ircd-hybrid
3 db 897 *
4 michael 9857 * Copyright (c) 1997-2021 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 9692 * network_name, network_description: the name and description of the network
65 michael 9695 * this server is on. Shown in the 005 reply and used with server hiding.
66 db 897 */
67     network_name = "MyNet";
68 michael 9692 network_description = "This is My Network";
69 db 897
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 9586 * client - Only client connections are permitted
325 michael 9610 * defer - Delay accepting of new connections until data is ready to be read
326 michael 1229 * hidden - Port is hidden from /stats P, unless you're an admin
327 db 897 */
328 michael 9157 flags = hidden, tls;
329 michael 6523 host = "192.0.2.2";
330 db 897 port = 6697;
331    
332     /*
333 michael 5522 * host: set a specific IP address to listen on using the
334 michael 2322 * subsequent port definitions. This may be IPv4 or IPv6.
335 db 897 */
336 michael 6523 host = "192.0.2.3";
337 db 897 port = 7000, 7001;
338    
339 michael 6523 host = "2001:DB8::2";
340 db 897 port = 7002;
341     };
342    
343     /*
344 michael 1229 * auth {}: allow users to connect to the ircd
345 db 897 */
346     auth {
347     /*
348 michael 1541 * user: the user@host allowed to connect. Multiple user
349 michael 4266 * lines are permitted within each auth {} block.
350 db 897 */
351 michael 6523 user = "*@192.0.2.0/24";
352     user = "*test@2001:DB8:*";
353 db 897
354 michael 4173 /* password: an optional password that is required to use this block. */
355 db 897 password = "letmein";
356    
357     /*
358 michael 7523 * encrypted: indicates whether the auth password above has been
359 michael 5504 * encrypted. Default is 'no' if nothing else is specified.
360 db 897 */
361     encrypted = yes;
362    
363     /*
364 michael 7523 * spoof: fake the user's host to this. This is free-form; just do
365 michael 1863 * everyone a favor and don't abuse it. ('=' prefix on /stats I)
366 db 897 */
367     spoof = "I.still.hate.packets";
368    
369 michael 4173 /* class: the class the user is placed in. */
370 db 897 class = "opers";
371    
372     /*
373 michael 4392 * need_password - don't allow users who haven't supplied the correct | ('&' prefix on /stats I if disabled)
374 michael 4266 * password to connect using another auth {} block
375 michael 4392 * need_ident - require the user to have identd to connect | ('+' prefix on /stats I)
376     * exceed_limit - allow a user to exceed class limits | ('>' prefix on /stats I)
377 michael 5805 * kline_exempt - exempt this user from k-lines | ('^' prefix on /stats I)
378 michael 5985 * xline_exempt - exempt this user from x-lines | ('!' prefix on /stats I)
379 michael 4392 * resv_exempt - exempt this user from resvs | ('$' prefix on /stats I)
380     * no_tilde - remove ~ from a user with no ident | ('-' prefix on /stats I)
381     * can_flood - allow this user to exceed flood limits | ('|' prefix on /stats I)
382     * webirc - enables WEBIRC authentication for web-based | ('<' prefix on /stats I)
383     * clients such as Mibbit
384 db 897 */
385 michael 9333 flags = need_password, exceed_limit, kline_exempt, xline_exempt, resv_exempt, 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 2228 */
442 michael 9145 # tls_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
443 michael 2228
444 michael 2248 /*
445 michael 9145 * tls_connection_required: client must be connected over TLS in order to be able to
446     * use this operator {} block. Default is 'no' if nothing else is specified.
447 michael 2248 */
448 michael 9145 tls_connection_required = no;
449 michael 2248
450 michael 6668 /* class: the class the oper joins when they successfully OPER. */
451 db 897 class = "opers";
452    
453     /*
454 michael 7523 * whois: allows overriding the default RPL_WHOISOPERATOR numeric
455 michael 7476 * string shown in WHOIS.
456 michael 6624 * This string is propagated to all servers on the network.
457     */
458     # whois = "is a Smurf Target (IRC Operator)";
459    
460     /*
461 michael 6668 * umodes: the default user modes opers get when they successfully OPER.
462 michael 4173 * If defined, it will override oper_umodes settings in general {}.
463 michael 6152 * Available user modes:
464 db 897 *
465 michael 9775 * +B - bot - Marks the client as being a bot
466 db 897 * +c - cconn - Client connection/quit notices
467     * +D - deaf - Don't receive channel messages
468     * +d - debug - See debugging notices
469 michael 1818 * +e - external - See remote server connection and split notices
470 michael 1976 * +F - farconnect - Remote client connection/quit notices
471 michael 9638 * +f - flood - See flood/spam notices
472 db 897 * +G - softcallerid - Server Side Ignore for users not on your channels
473     * +g - callerid - Server Side Ignore (for privmsgs etc)
474 michael 7023 * +H - hidden - Hides IRC operator status to other users
475 michael 2267 * +i - invisible - Not shown in NAMES or WHO unless you share a channel
476 michael 1290 * +j - rej - See rejected client notices
477 db 897 * +k - skill - See server generated KILL messages
478     * +l - locops - See LOCOPS messages
479     * +n - nchange - See client nick changes
480 michael 3513 * +p - hidechans - Hides channel list in WHOIS
481 michael 3506 * +q - hideidle - Hides idle and signon time in WHOIS
482 michael 1855 * +R - nononreg - Only receive private messages from registered clients
483 db 897 * +s - servnotice - See general server notices
484     * +w - wallop - See server generated WALLOPS
485 michael 8963 * +X - expiration - See *LINE expiration notices
486 db 897 * +y - spy - See LINKS, STATS, TRACE notices etc.
487     */
488 michael 3869 umodes = locops, servnotice, wallop;
489 db 897
490     /*
491 michael 5522 * flags: controls the activities and commands an oper is
492 michael 4301 * allowed to do on the server. All flags default to 'no'.
493     * Available flags:
494 db 897 *
495 michael 7060 * admin - gives administrator privileges | ('A' flag)
496     * close - allows CLOSE | ('B' flag)
497     * connect - allows local CONNECT | ('C' flag)
498     * connect:remote - allows remote CONNECT | ('D' flag)
499     * die - allows DIE | ('E' flag)
500     * dline - allows DLINE | ('F' flag)
501     * globops - allows GLOBOPS | ('G' flag)
502     * join:resv - allows to JOIN resv {} channels | ('H' flag)
503     * kill - allows to KILL local clients | ('I' flag)
504     * kill:remote - allows remote users to be /KILL'd | ('J' flag)
505     * kline - allows KLINE | ('K' flag)
506     * locops - allows LOCOPS | ('L' flag)
507     * module - allows MODULE | ('M' flag)
508     * nick:resv - allows to use NICK on resv {} nicks | ('N' flag)
509     * opme - allows OPME | ('O' flag)
510     * rehash - allows oper to REHASH config | ('P' flag)
511     * rehash:remote - allows oper to remotely REHASH config | ('Q' flag)
512     * remoteban - allows remote KLINE/UNKLINE | ('R' flag)
513     * restart - allows RESTART | ('S' flag)
514     * resv - allows RESV | ('T' flag)
515     * set - allows SET | ('U' flag)
516     * squit - allows local SQUIT | ('V' flag)
517     * squit:remote - allows remote SQUIT | ('W' flag)
518     * undline - allows UNDLINE | ('X' flag)
519     * unkline - allows UNKLINE | ('Y' flag)
520     * unresv - allows UNRESV | ('Z' flag)
521     * unxline - allows UNXLINE | ('a' flag)
522     * wallops - allows WALLOPS | ('b' flag)
523     * xline - allows XLINE | ('c' flag)
524 db 897 */
525 michael 4308 flags = admin, connect, connect:remote, die, globops, kill, kill:remote,
526     kline, module, rehash, restart, set, unkline, unxline, xline;
527 db 897 };
528    
529 michael 1552 /*
530 michael 2322 * connect {}: define a server to connect to
531 db 897 */
532     connect {
533 michael 4173 /* name: the name of the server. */
534 michael 6523 name = "uplink.example.net";
535 db 897
536     /*
537 michael 7476 * host: the host or IP address to connect to. If a hostname is used,
538     * it must match the reverse DNS of the server.
539 db 897 */
540 michael 6523 host = "192.0.2.4";
541 db 897
542 michael 9094 /* port: the port to connect to this server on. */
543     port = 6666;
544    
545 db 897 /*
546 michael 9096 * timeout: defines how long to wait until a connection is established.
547     * Default is 30 seconds if this option is not specified.
548     */
549     timeout = 10 seconds;
550    
551     /*
552 michael 8864 * bind: the IP address to bind to when making outgoing connections to
553     * servers.
554 db 897 */
555 michael 8864 bind = "192.0.2.5";
556 db 897
557     /*
558 michael 4301 * send_password, accept_password: the passwords to send and accept.
559 michael 2322 * The remote server will have these passwords swapped.
560 db 897 */
561     send_password = "password";
562     accept_password = "anotherpassword";
563    
564     /*
565 michael 7523 * encrypted: indicates whether the accept_password above has been
566 michael 1070 * encrypted.
567 db 897 */
568     encrypted = no;
569    
570     /*
571 michael 1863 * hub_mask: the mask of servers that this server may hub. Multiple
572     * entries are permitted.
573 db 897 */
574     hub_mask = "*";
575    
576     /*
577 michael 1863 * leaf_mask: the mask of servers this server may not hub. Multiple
578     * entries are permitted. Useful for forbidding EU -> US -> EU routes.
579 db 897 */
580     # leaf_mask = "*.uk";
581    
582 michael 4173 /* class: the class this server is in. */
583 db 897 class = "server";
584    
585 michael 1524 /*
586 michael 9145 * tls_cipher_list: list of ciphers that the server we are connecting to
587 michael 4173 * must support. If the server is not capable of using any of the ciphers
588     * listed below, the connection will simply be rejected.
589 michael 1524 * Can be used to enforce stronger ciphers, even though this option
590 michael 9145 * is not necessarily required to establish a TLS connection.
591 michael 1524 *
592     * Multiple ciphers are separated by colons. The order of preference
593     * is from left to right.
594 michael 9173 *
595     * It is recommended to leave this directive commented out and have the
596     * TLS library choose the optimal settings.
597 michael 1524 */
598 michael 9145 # tls_cipher_list = "ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA:AES256-SHA";
599 michael 1306
600 db 897 /*
601 michael 9145 * tls_certificate_fingerprint: enhances security by additionally checking
602 michael 2244 * the server's client certificate fingerprint against the specified
603     * fingerprint below.
604 michael 2228 */
605 michael 9145 # tls_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
606 michael 2228
607     /*
608 michael 1229 * autoconn - controls whether we autoconnect to this server or not,
609     * dependent on class limits. By default, this is disabled.
610 michael 9157 * tls - initiates a TLS connection.
611 db 897 */
612 michael 9157 # flags = autoconn, tls;
613 db 897 };
614    
615     connect {
616 michael 6523 name = "ipv6.example.net";
617     host = "2001:DB8::3";
618 michael 9094 port = 6666;
619 db 897 send_password = "password";
620     accept_password = "password";
621    
622     /*
623     * aftype: controls whether the connection uses "ipv4" or "ipv6".
624     * Default is ipv4.
625     */
626     aftype = ipv6;
627     class = "server";
628     };
629    
630     /*
631     * cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
632 michael 1229 * automatically
633 db 897 */
634     cluster {
635     /*
636 michael 2322 * name: the server to share with; this can take wildcards
637 db 897 *
638 michael 2322 * NOTE: only local actions will be clustered, meaning that if
639 db 897 * the server receives a shared kline/unkline/etc, it
640     * will not be propagated to clustered servers.
641     *
642     * Remote servers are not necessarily required to accept
643 michael 4288 * clustered lines, they need a shared {} block for *THIS*
644     * server in order to accept them.
645 db 897 */
646 michael 6523 name = "*.example.net";
647 db 897
648     /*
649 michael 2322 * type: list of what to share; options are as follows:
650 michael 1301 * dline - share dlines
651     * undline - share undlines
652 michael 1336 * kline - share klines
653     * unkline - share unklines
654     * xline - share xlines
655     * unxline - share unxlines
656     * resv - share resvs
657     * unresv - share unresvs
658     * locops - share locops
659     * all - share all of the above (default)
660 db 897 */
661     type = kline, unkline, locops, xline, resv;
662     };
663    
664     /*
665 michael 1229 * shared {}: users that are allowed to remote kline
666 db 897 *
667 michael 2322 * NOTE: This can effectively be used for remote klines.
668 db 897 * Please note that there is no password authentication
669 michael 1863 * for users setting remote klines. You must also be
670 db 897 * /oper'd in order to issue a remote kline.
671     */
672     shared {
673     /*
674 michael 2322 * name: the server the user must be connected to in order to set klines.
675     * If this is not specified, the user will be allowed to kline from all
676     * servers.
677 db 897 */
678 michael 6523 name = "irc2.example.net";
679 db 897
680     /*
681 michael 1863 * user: the user@host mask that is allowed to set klines. If this is
682 db 897 * not specified, all users on the server above will be allowed to set
683     * a remote kline.
684     */
685     user = "oper@my.host.is.spoofed";
686    
687     /*
688     * type: list of what to share, options are as follows:
689 michael 1301 * dline - allow oper/server to dline
690     * undline - allow oper/server to undline
691 michael 1336 * kline - allow oper/server to kline
692     * unkline - allow oper/server to unkline
693     * xline - allow oper/server to xline
694     * unxline - allow oper/server to unxline
695 michael 7082 * rehash - allow oper/server to rehash
696 michael 1336 * resv - allow oper/server to resv
697     * unresv - allow oper/server to unresv
698 db 897 * locops - allow oper/server to locops - only used for servers that cluster
699 michael 1336 * all - allow oper/server to do all of the above (default)
700 db 897 */
701     type = kline, unkline, resv;
702     };
703    
704     /*
705 michael 1229 * kill {}: users that are not allowed to connect
706 michael 4308 * Oper issued klines will be added to the specified kline database
707 db 897 */
708     kill {
709 michael 6523 user = "bad@*.example.net";
710 db 897 reason = "Obviously hacked account";
711     };
712    
713     /*
714 michael 2322 * deny {}: IP addresses that are not allowed to connect
715     * (before DNS/ident lookup)
716 michael 4308 * Oper issued dlines will be added to the specified dline database
717 db 897 */
718     deny {
719 michael 6523 ip = "192.0.2.0/28";
720 db 897 reason = "Reconnecting vhosted bots";
721     };
722    
723     /*
724 michael 2322 * exempt {}: IP addresses that are exempt from deny {} and Dlines
725 db 897 */
726     exempt {
727 michael 6523 ip = "192.0.2.240/28";
728 michael 7082
729     /* The 'ip' directives can be stacked */
730     ip = "10.0.0.0/8";
731     ip = "fc00::/7";
732 db 897 };
733    
734     /*
735 michael 1229 * resv {}: nicks and channels users may not use/join
736 db 897 */
737 michael 1858 resv { mask = "clone*"; reason = "Clone bots"; };
738 michael 3659 resv { mask = "Global"; reason = "Reserved for services"; };
739 michael 1866 resv { mask = "ChanServ"; reason = "Reserved for services"; };
740 michael 1858 resv { mask = "NickServ"; reason = "Reserved for services"; };
741     resv { mask = "OperServ"; reason = "Reserved for services"; };
742     resv { mask = "MemoServ"; reason = "Reserved for services"; };
743     resv { mask = "BotServ"; reason = "Reserved for services"; };
744     resv { mask = "HelpServ"; reason = "Reserved for services"; };
745     resv { mask = "HostServ"; reason = "Reserved for services"; };
746     resv { mask = "StatServ"; reason = "Reserved for services"; };
747     resv { mask = "#*services*"; reason = "Reserved for services"; };
748 michael 1823
749 michael 1858 resv {
750     /*
751     * mask: masks starting with a '#' are automatically considered
752 michael 2322 * as channel name masks.
753 michael 1858 */
754     mask = "#helsinki";
755 michael 3550 reason = "Channel is reserved for Finnish inhabitants";
756 michael 1858
757     /*
758 michael 8314 * exempt: nick!user@host mask. CIDR is supported. Exempt
759 michael 1858 * entries can be stacked.
760     */
761 michael 8314 exempt = "*@*.sexy";
762 michael 1858 };
763    
764 db 897 /*
765 michael 4308 * gecos {}: used for banning users based on their "realname".
766 db 897 */
767     gecos {
768     name = "*sex*";
769     reason = "Possible spambot";
770     };
771    
772     gecos {
773     name = "sub7server";
774     reason = "Trojan drone";
775     };
776    
777     /*
778 michael 4919 * service {}: specifies a server which may act as a network service
779     *
780     * NOTE: it is very important that every server on the network
781     * has the same service {} block.
782     */
783     service {
784 michael 7256 /* name: the actual name of the service. Wildcards are not allowed. */
785 michael 6523 name = "service.example.net";
786 michael 7256
787     /* The 'name' directives can be stacked. */
788 michael 6523 name = "stats.example.net";
789 michael 4919 };
790    
791     /*
792 michael 4545 * pseudo {}: adds pseudo/custom commands also known as service aliases
793     */
794     pseudo {
795 michael 5719 /* command: the actual command/alias. */
796 michael 4545 command = "IDENTIFY";
797    
798 michael 7523 /* prepend: optional text that can be prepended to the user's message. */
799 michael 4545 prepend = "IDENTIFY ";
800    
801 michael 5719 /* name: the service name, used for error messages. */
802 michael 4545 name = "NickServ";
803    
804 michael 5719 /* target: the actual target where this message should be sent to. */
805 michael 6523 target = "NickServ@service.example.net";
806 michael 4545 };
807    
808     pseudo {
809 michael 4591 command = "CHANSERV";
810     name = "ChanServ";
811 michael 6523 target = "ChanServ@service.example.net";
812 michael 4545 };
813    
814     pseudo {
815 michael 4591 command = "CS";
816     name = "ChanServ";
817 michael 6523 target = "ChanServ@service.example.net";
818 michael 4545 };
819    
820     pseudo {
821 michael 4591 command = "NICKSERV";
822     name = "NickServ";
823 michael 6523 target = "NickServ@service.example.net";
824 michael 4545 };
825    
826     pseudo {
827 michael 4591 command = "NS";
828     name = "NickServ";
829 michael 6523 target = "NickServ@service.example.net";
830 michael 4545 };
831    
832     pseudo {
833 michael 4591 command = "MEMOSERV";
834     name = "MemoServ";
835 michael 6523 target = "MemoServ@service.example.net";
836 michael 4545 };
837    
838     pseudo {
839 michael 4591 command = "MS";
840     name = "MemoServ";
841 michael 6523 target = "MemoServ@service.example.net";
842 michael 4545 };
843    
844     pseudo {
845 michael 4591 command = "OPERSERV";
846     name = "OperServ";
847 michael 6523 target = "OperServ@service.example.net";
848 michael 4545 };
849    
850     pseudo {
851 michael 4591 command = "OS";
852     name = "OperServ";
853 michael 6523 target = "OperServ@service.example.net";
854 michael 4545 };
855    
856     pseudo {
857 michael 4591 command = "HOSTSERV";
858     name = "HostServ";
859 michael 6523 target = "HostServ@service.example.net";
860 michael 4545 };
861    
862     pseudo {
863 michael 4591 command = "HS";
864     name = "HostServ";
865 michael 6523 target = "HostServ@service.example.net";
866 michael 4545 };
867    
868     pseudo {
869 michael 4591 command = "BOTSERV";
870     name = "BotServ";
871 michael 6523 target = "BotServ@service.example.net";
872 michael 4545 };
873    
874     pseudo {
875 michael 4591 command = "BS";
876     name = "BotServ";
877 michael 6523 target = "BotServ@service.example.net";
878 michael 4545 };
879    
880     /*
881 michael 4308 * channel {}: the channel block contains options pertaining to channels
882 db 897 */
883     channel {
884     /*
885 michael 9257 * enable_extbans: whether or not to enable extbans. This is set
886 michael 9234 * to 'no' by default and should not be enabled before all servers
887     * on the network have been updated to ircd-hybrid 8.2.29 or later.
888     *
889     * For a more detailed explanation of the extban feature, see help/extban.
890     */
891 michael 9257 enable_extbans = no;
892 michael 9234
893     /*
894 db 897 * disable_fake_channels: this option, if set to 'yes', will
895 michael 2322 * disallow clients from creating or joining channels that have one
896 db 897 * of the following ASCII characters in their name:
897     *
898     * 2 | bold
899     * 3 | mirc color
900 michael 951 * 15 | plain text
901 db 897 * 22 | reverse
902 michael 1424 * 29 | italic
903 db 897 * 31 | underline
904     * 160 | non-breaking space
905     */
906     disable_fake_channels = yes;
907    
908     /*
909 michael 3860 * invite_client_count, invite_client_time: how many INVITE commands
910     * are permitted per client per invite_client_time.
911 michael 3762 */
912 michael 3860 invite_client_count = 10;
913     invite_client_time = 5 minutes;
914 michael 3762
915     /*
916 michael 6792 * invite_delay_channel: how often an INVITE to any specific channel
917     * is permitted, regardless of the user sending the INVITE.
918     */
919     invite_delay_channel = 5 seconds;
920    
921     /*
922 michael 7793 * invite_expire_time: specifies the amount of time an INVITE will be
923     * active until it expires. Set it to 0 if you don't want invites to
924     * expire. Default is 30 minutes if nothing else is specified.
925     */
926 michael 7799 invite_expire_time = 1 hour;
927 michael 7793
928     /*
929 michael 3860 * knock_client_count, knock_client_time: how many KNOCK commands
930     * are permitted per client per knock_client_time.
931 michael 3762 */
932 michael 3860 knock_client_count = 1;
933     knock_client_time = 5 minutes;
934 michael 3762
935     /*
936 michael 3933 * knock_delay_channel: how often a KNOCK to any specific channel
937 michael 3762 * is permitted, regardless of the user sending the KNOCK.
938 db 897 */
939     knock_delay_channel = 1 minute;
940    
941     /*
942 michael 3933 * max_channels: the maximum number of channels a user can join/be on.
943 michael 4266 * This is a default value which can be overriden with class {} blocks.
944 db 897 */
945 michael 3933 max_channels = 25;
946 db 897
947 michael 7766 /* max_invites: the maximum number of channels a user can be invited to. */
948     max_invites = 20;
949    
950 michael 5719 /* max_bans: maximum number of +b/e/I modes in a channel. */
951 michael 1522 max_bans = 100;
952 db 897
953 michael 8046 /* max_bans_large: maximum number of +b/e/I modes in a +L channel. */
954     max_bans_large = 500;
955    
956 db 897 /*
957 michael 5489 * default_join_flood_count, default_join_flood_time:
958     * how many joins in how many seconds constitute a flood. Use 0 to disable.
959     * +b opers will be notified. These are only default values which can be
960     * changed via "/QUOTE SET JFLOODCOUNT" and "/QUOTE SET JFLOODTIME".
961 db 897 */
962 michael 5489 default_join_flood_count = 18;
963     default_join_flood_time = 6 seconds;
964 db 897 };
965    
966     /*
967 michael 4308 * serverhide {}: the serverhide block contains the options regarding
968 michael 4205 * to server hiding. For more information regarding server hiding,
969     * please see doc/serverhide.txt
970 db 897 */
971     serverhide {
972     /*
973 michael 2322 * disable_remote_commands: disable users issuing commands
974 michael 2196 * on remote servers.
975     */
976     disable_remote_commands = no;
977    
978     /*
979 db 897 * flatten_links: this option will show all servers in /links appear
980 michael 2322 * as though they are linked to this current server.
981 db 897 */
982     flatten_links = no;
983    
984     /*
985 michael 6597 * flatten_links_delay: how often to update the links file when it is
986 db 897 * flattened.
987     */
988 michael 6597 flatten_links_delay = 5 minutes;
989 db 897
990     /*
991 michael 6609 * flatten_links_file: path to the flatten links cache file.
992 michael 6599 */
993     flatten_links_file = "var/lib/links.txt";
994    
995     /*
996 db 897 * hidden: hide this server from a /links output on servers that
997 michael 1863 * support it. This allows hub servers to be hidden etc.
998 db 897 */
999     hidden = no;
1000    
1001     /*
1002     * hide_servers: hide remote servernames everywhere and instead use
1003 michael 9692 * hidden_name and network_description.
1004 db 897 */
1005     hide_servers = no;
1006    
1007     /*
1008 michael 1851 * hide_services: define this if you want to hide the location of
1009 michael 4266 * services servers that are specified in the service {} block.
1010 michael 1851 */
1011     hide_services = no;
1012    
1013     /*
1014 michael 4308 * hidden_name: use this as the servername users see if hide_servers = yes.
1015 db 897 */
1016 michael 6523 hidden_name = "*.example.net";
1017 db 897
1018     /*
1019 michael 4301 * hide_server_ips: if this is disabled, opers will be unable to see
1020 michael 2322 * servers' IP addresses and will be shown a masked IP address; admins
1021     * will be shown the real IP address.
1022 db 897 *
1023 michael 2322 * If this is enabled, nobody can see a server's IP address.
1024     * *This is a kludge*: it has the side effect of hiding the IP addresses
1025     * everywhere, including logfiles.
1026 db 897 *
1027     * We recommend you leave this disabled, and just take care with who you
1028 michael 1729 * give administrator privileges to.
1029 db 897 */
1030     hide_server_ips = no;
1031     };
1032    
1033     /*
1034 michael 4308 * general {}: the general block contains many of the options that were once
1035 michael 1783 * compiled in options in config.h
1036 db 897 */
1037     general {
1038 michael 2286 /*
1039     * cycle_on_host_change: sends a fake QUIT/JOIN combination
1040     * when services change the hostname of a specific client.
1041     */
1042     cycle_on_host_change = yes;
1043    
1044 michael 9750 /* max_monitor: maximum MONITOR entries a client can have. */
1045     max_monitor = 50;
1046 db 897
1047 michael 6152 /* max_accept: maximum allowed /accept's for +g user mode. */
1048 michael 6740 max_accept = 50;
1049 michael 3882
1050 michael 7447 /* whowas_history_length: maximum length of the WHOWAS nick name history. */
1051 michael 7437 whowas_history_length = 15000;
1052    
1053     /*
1054 michael 5805 * dline_min_cidr: the minimum required length of a CIDR bitmask
1055     * for IPv4 based D-lines.
1056 michael 1459 */
1057 michael 5805 dline_min_cidr = 16;
1058 michael 1459
1059     /*
1060 michael 5805 * dline_min_cidr6: the minimum required length of a CIDR bitmask
1061     * for IPv6 based D-lines.
1062 michael 1459 */
1063 michael 5805 dline_min_cidr6 = 48;
1064 michael 1459
1065     /*
1066 michael 5805 * kline_min_cidr: the minimum required length of a CIDR bitmask
1067     * for IPv4 based K-lines.
1068 db 897 */
1069 michael 5805 kline_min_cidr = 16;
1070 db 897
1071     /*
1072 michael 5805 * kline_min_cidr6: the minimum required length of a CIDR bitmask
1073     * for IPv6 based K-lines.
1074 db 897 */
1075 michael 5805 kline_min_cidr6 = 48;
1076 db 897
1077     /*
1078 michael 6668 * invisible_on_connect: whether to automatically set user mode +i
1079     * on connecting users.
1080 db 897 */
1081     invisible_on_connect = yes;
1082    
1083     /*
1084 michael 2322 * kill_chase_time_limit: KILL chasing is a feature whereby a KILL
1085     * issued for a user who has recently changed nickname will be applied
1086     * automatically to the new nick. kill_chase_time_limit is the maximum
1087     * time following a nickname change that this chasing will apply.
1088 db 897 */
1089 michael 3341 kill_chase_time_limit = 30 seconds;
1090 db 897
1091     /*
1092     * disable_auth: completely disable ident lookups; if you enable this,
1093 michael 5719 * be careful of what you set need_ident to in your auth {} blocks.
1094 db 897 */
1095     disable_auth = no;
1096    
1097     /*
1098     * default_floodcount: the default value of floodcount that is configurable
1099 michael 4173 * via /quote set floodcount. This is the number of lines a user may send
1100 michael 7858 * to any other user/channel per floodtime. Set to 0 to disable.
1101 db 897 */
1102     default_floodcount = 10;
1103    
1104     /*
1105 michael 7858 * default_floodtime: the default value of floodtime that is configurable
1106     * via /quote set floodtime.
1107     */
1108     default_floodtime = 1 second;
1109    
1110     /*
1111 michael 2305 * failed_oper_notice: send a notice to all opers on the server when
1112 db 897 * someone tries to OPER and uses the wrong password, host or ident.
1113     */
1114     failed_oper_notice = yes;
1115    
1116     /*
1117 michael 2322 * dots_in_ident: the number of '.' characters permitted in an ident
1118 db 897 * reply before the user is rejected.
1119     */
1120     dots_in_ident = 2;
1121    
1122     /*
1123 michael 2322 * min_nonwildcard: the minimum number of non-wildcard characters in
1124 michael 5894 * k/d lines placed via the server. K-lines hand-placed are exempt from
1125 michael 2322 * this limit.
1126 michael 5898 * Wildcard characters: '.', ':', '*', '?'
1127 db 897 */
1128     min_nonwildcard = 4;
1129    
1130     /*
1131 michael 2322 * min_nonwildcard_simple: the minimum number of non-wildcard characters
1132 michael 4173 * in gecos bans. Wildcard characters: '*', '?'
1133 db 897 */
1134     min_nonwildcard_simple = 3;
1135    
1136 michael 1863 /* anti_nick_flood: enable the nickflood control code. */
1137 db 897 anti_nick_flood = yes;
1138    
1139 michael 5621 /*
1140     * max_nick_changes, max_nick_time: the number of nick changes allowed in
1141     * the specified period.
1142     */
1143     max_nick_changes = 5;
1144 db 897 max_nick_time = 20 seconds;
1145    
1146     /*
1147 michael 7130 * away_count, away_time: how many AWAY commands are permitted per
1148 michael 4313 * client per away_time.
1149     */
1150     away_count = 2;
1151     away_time = 10 seconds;
1152    
1153     /*
1154 db 897 * anti_spam_exit_message_time: the minimum time a user must be connected
1155 michael 7691 * before custom PART/QUIT messages are allowed.
1156 db 897 */
1157     anti_spam_exit_message_time = 5 minutes;
1158    
1159     /*
1160 michael 3882 * ts_warn_delta, ts_max_delta: the time delta allowed between server
1161     * clocks before a warning is given, or before the link is dropped.
1162 michael 4173 * All servers should run ntpdate/rdate to keep clocks in sync.
1163 db 897 */
1164 michael 4403 ts_warn_delta = 3 seconds;
1165     ts_max_delta = 15 seconds;
1166 db 897
1167     /*
1168 michael 3473 * warn_no_connect_block: warn opers about servers that try to connect
1169     * but for which we don't have a connect {} block. Twits with
1170     * misconfigured servers can become really annoying with this enabled.
1171 db 897 */
1172 michael 3473 warn_no_connect_block = yes;
1173 db 897
1174     /*
1175     * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1176 michael 1863 * operators and administrators. Doing so is a good idea in case
1177 michael 6668 * there are any exempted (exempt {}) server IP addresses you don't
1178     * want to see leaked.
1179 db 897 */
1180     stats_e_disabled = no;
1181    
1182 michael 5025 /* stats_m_oper_only: make /stats m/M (messages) oper only. */
1183     stats_m_oper_only = yes;
1184    
1185 michael 4173 /* stats_o_oper_only: make stats o (opers) oper only. */
1186 db 897 stats_o_oper_only = yes;
1187    
1188 michael 4173 /* stats_P_oper_only: make stats P (ports) oper only. */
1189 db 897 stats_P_oper_only = yes;
1190    
1191 michael 4173 /* stats_u_oper_only: make stats u (uptime) oper only. */
1192 michael 2269 stats_u_oper_only = no;
1193    
1194 michael 9319 /* stats_i_oper_only: make stats i (auth {}) oper only. */
1195 db 897 stats_i_oper_only = yes;
1196    
1197 michael 9319 /* stats_k_oper_only: make stats k/K (klines) oper only. */
1198 db 897 stats_k_oper_only = yes;
1199    
1200     /*
1201     * caller_id_wait: time between notifying a +g user that somebody
1202     * is messaging them.
1203     */
1204     caller_id_wait = 1 minute;
1205    
1206     /*
1207     * opers_bypass_callerid: allows operators to bypass +g and message
1208 michael 4786 * anyone who has it set.
1209 db 897 */
1210 michael 7949 opers_bypass_callerid = yes;
1211 db 897
1212     /*
1213 michael 2322 * pace_wait_simple: minimum time required between use of less
1214     * intensive commands
1215 michael 3520 * (ADMIN, HELP, LUSERS, VERSION, remote WHOIS)
1216 db 897 */
1217     pace_wait_simple = 1 second;
1218    
1219     /*
1220 michael 2322 * pace_wait: minimum time required between use of more intensive commands
1221 michael 4313 * (INFO, LINKS, MAP, MOTD, STATS, WHO, WHOWAS)
1222 db 897 */
1223     pace_wait = 10 seconds;
1224    
1225     /*
1226 michael 2322 * short_motd: send clients a notice telling them to read the MOTD
1227     * instead of forcing an MOTD to clients who may simply ignore it.
1228 db 897 */
1229     short_motd = no;
1230    
1231     /*
1232 michael 4173 * ping_cookie: require clients to respond exactly to a PING command,
1233 db 897 * can help block certain types of drones and FTP PASV mode spoofing.
1234     */
1235     ping_cookie = no;
1236    
1237     /* no_oper_flood: increase flood limits for opers. */
1238     no_oper_flood = yes;
1239    
1240     /*
1241 michael 2322 * max_targets: the maximum number of targets in a single
1242 michael 1863 * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1243 db 897 */
1244     max_targets = 4;
1245    
1246     /*
1247 michael 6152 * user modes configurable: a list of user modes for the options below
1248 db 897 *
1249 michael 9775 * +B - bot - Marks the client as being a bot
1250 db 897 * +c - cconn - Client connection/quit notices
1251     * +D - deaf - Don't receive channel messages
1252     * +d - debug - See debugging notices
1253 michael 1818 * +e - external - See remote server connection and split notices
1254 michael 1976 * +F - farconnect - Remote client connection/quit notices
1255 michael 9638 * +f - flood - See flood/spam notices
1256 db 897 * +G - softcallerid - Server Side Ignore for users not on your channels
1257     * +g - callerid - Server Side Ignore (for privmsgs etc)
1258 michael 7023 * +H - hidden - Hides IRC operator status to other users
1259 michael 2345 * +i - invisible - Not shown in NAMES or WHO unless you share a channel
1260 michael 1290 * +j - rej - See rejected client notices
1261 db 897 * +k - skill - See server generated KILL messages
1262     * +l - locops - See LOCOPS messages
1263     * +n - nchange - See client nick changes
1264 michael 3513 * +p - hidechans - Hides channel list in WHOIS
1265 michael 3506 * +q - hideidle - Hides idle and signon time in WHOIS
1266 michael 1855 * +R - nononreg - Only receive private messages from registered clients
1267 db 897 * +s - servnotice - See general server notices
1268     * +w - wallop - See server generated WALLOPS
1269 michael 8963 * +X - expiration - See *LINE expiration notices
1270 db 897 * +y - spy - See LINKS, STATS, TRACE notices etc.
1271     */
1272    
1273 michael 6152 /* oper_only_umodes: user modes only operators may set. */
1274 michael 9775 oper_only_umodes = bot, cconn, debug, external, farconnect, flood, hidden,
1275 michael 9638 locops, nchange, rej, skill, spy, expiration;
1276 db 897
1277 michael 6668 /* oper_umodes: default user modes operators get when they successfully OPER. */
1278 michael 9638 oper_umodes = flood, locops, servnotice, wallop;
1279 db 897
1280     /*
1281 michael 3877 * throttle_count: the maximum number of connections from the same
1282     * IP address allowed in throttle_time duration.
1283     */
1284     throttle_count = 1;
1285    
1286     /*
1287 michael 2322 * throttle_time: the minimum amount of time required between
1288 michael 3877 * connections from the same IP address. exempt {} blocks are
1289     * excluded from this throttling.
1290 michael 1863 * Offers protection against flooders who reconnect quickly.
1291 db 897 * Set to 0 to disable.
1292     */
1293 michael 3877 throttle_time = 2 seconds;
1294 db 897 };
1295    
1296     modules {
1297     /*
1298 michael 951 * path: other paths to search for modules specified below
1299 michael 1441 * and in "/module load".
1300 db 897 */
1301 michael 4173 path = "lib/ircd-hybrid/modules";
1302 michael 5007 # path = "lib/ircd-hybrid/modules/extra";
1303 michael 4173 path = "lib/ircd-hybrid/modules/autoload";
1304 db 897
1305 michael 1863 /* module: the name of a module to load on startup/rehash. */
1306 michael 2171 # module = "some_module.la";
1307 db 897 };
1308 michael 1247
1309     /*
1310     * log {}: contains information about logfiles.
1311     */
1312     log {
1313     /* Do you want to enable logging to ircd.log? */
1314     use_logging = yes;
1315    
1316     file {
1317     type = oper;
1318 michael 4173 name = "var/log/oper.log";
1319 michael 1250 size = unlimited;
1320 michael 1247 };
1321    
1322     file {
1323     type = user;
1324 michael 4173 name = "var/log/user.log";
1325 michael 1247 size = 50 megabytes;
1326     };
1327    
1328     file {
1329     type = kill;
1330 michael 4173 name = "var/log/kill.log";
1331 michael 1247 size = 50 megabytes;
1332     };
1333    
1334     file {
1335     type = kline;
1336 michael 4173 name = "var/log/kline.log";
1337 michael 1247 size = 50 megabytes;
1338     };
1339    
1340     file {
1341     type = dline;
1342 michael 4173 name = "var/log/dline.log";
1343 michael 1247 size = 50 megabytes;
1344     };
1345    
1346     file {
1347 michael 2336 type = xline;
1348 michael 4173 name = "var/log/xline.log";
1349 michael 2336 size = 50 megabytes;
1350     };
1351    
1352     file {
1353     type = resv;
1354 michael 4173 name = "var/log/resv.log";
1355 michael 2336 size = 50 megabytes;
1356     };
1357    
1358     file {
1359 michael 1247 type = debug;
1360 michael 4173 name = "var/log/debug.log";
1361 michael 1247 size = 50 megabytes;
1362 michael 1824 };
1363 michael 1247 };

Properties

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