ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
Revision: 8046
Committed: Sat Mar 18 18:07:45 2017 UTC (9 years, 4 months ago) by michael
File size: 41542 byte(s)
Log Message:
- Implemented channel mode 'L'. Channels with that mode set can make use of an extended ban list size
  specified with the new 'channel::max_bans_large' configuraton option. This mode can be set only by
  irc-operators or servers.

File Contents

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

Properties

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