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

Properties

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