ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 9750
Committed: Sun Nov 29 16:51:58 2020 UTC (5 years, 10 months ago) by michael
File size: 39210 byte(s)
Log Message:
- Replace WATCH with IRCv3.2 MONITOR

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

Properties

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