ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/doc/reference.conf
(Generate patch)

Comparing:
ircd-hybrid-8/etc/example.conf (file contents), Revision 1217 by michael, Tue Sep 13 18:28:18 2011 UTC vs.
ircd-hybrid/trunk/doc/reference.conf (file contents), Revision 6609 by michael, Thu Oct 22 18:44:58 2015 UTC

# Line 1 | Line 1
1 < /* doc/example.conf - ircd-hybrid-7 Example configuration file
2 < * Copyright (C) 2000-2011 Hybrid Development Team
1 > /*
2 > * This is an example configuration file for ircd-hybrid
3   *
4 < * Written by ejb, wcampbel, db, leeh and others
5 < * Other example configurations can be found in the source dir under
6 < * etc/.
4 > * Copyright (c) 2000-2015 ircd-hybrid development team
5   *
6   * $Id$
7   */
8  
9 < /* IMPORTANT NOTES:
9 > /*
10 > * ########################################################################
11 > * IMPORTANT NOTE:
12   *
13 < * 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,
13 > * 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   * then general access.
16 + * ########################################################################
17   *
18   * Shell style (#), C++ style (//) and C style comments are supported.
19   *
# Line 22 | Line 23
23   *
24   * Times/durations are written as:
25   *        12 hours 30 minutes 1 second
26 < *        
26 > *
27   * Valid units of time:
28 < *        month, week, day, hour, minute, second
28 > *        year, month, week, day, hour, minute, second
29   *
30   * Valid units of size:
31   *        megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
32   *
33 < * Sizes and times may be singular or plural.  
33 < */
34 <
35 < /* EFNET NOTE:
36 < *
37 < * This config file is NOT suitable for EFNet.  EFNet admins should use
38 < * example.efnet.conf
33 > * Sizes and times may be singular or plural.
34   */
35 <
35 >
36 >
37   /*
38 < * serverinfo {}:  contains information about the server. (OLD M:)
38 > * serverinfo {}:  contains information about the server
39   */
40   serverinfo {
41          /*
42 <         * name: the name of this server.  This cannot be changed at runtime.
42 >         * name: the name of this server. This cannot be changed at runtime.
43           */
44 <        name = "hades.arpa";
44 >        name = "server.example.net";
45  
46          /*
47 <         * 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
47 >         * 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           * a digit, followed by 2 alpha-numerical letters.
50 <         * NOTE: The letters must be capitalized.  This cannot be changed at runtime.
50 >         *
51 >         * NOTE: The letters must be capitalized. This cannot be changed at runtime.
52 >         *
53 >         * A sid is automatically generated at runtime, if you want to configure
54 >         * a specific sid, uncomment the following line.
55           */
56 <        sid = "_CHANGE_ME_";
56 > #       sid = "0HY";
57  
58          /*
59 <         * description: the description of the server.  '[' and ']' may not
60 <         * be used here for compatibility with older servers.
59 >         * description: the description of the server.
60           */
61 <        description = "hybrid-7 test server";
61 >        description = "ircd-hybrid test server";
62  
63          /*
64 <         * network info: the name and description of the network this server
65 <         * is on.  Shown in the 005 reply and used with serverhiding.
64 >         * 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           */
67          network_name = "MyNet";
68          network_desc = "This is My Network";
# Line 75 | Line 74 | serverinfo {
74          hub = no;
75  
76          /*
77 <         * vhost: the IP to bind to when we connect outward to ipv4 servers.
78 <         * This should be an ipv4 IP only, or "*" for INADDR_ANY.
77 >         * vhost: the IP address to bind to when we connect outward to IPv4 servers.
78 >         * This should be an IPv4 address, or "*" for INADDR_ANY.
79           */
80 <        #vhost = "192.169.0.1";
80 > #       vhost = "192.0.2.1";
81  
82          /*
83 <         * vhost6: the IP to bind to when we connect outward to ipv6 servers.
84 <         * This should be an ipv6 IP only, or "*" for INADDR_ANY.
83 >         * vhost6: the IP address to bind to when we connect outward to IPv6 servers.
84 >         * This should be an IPv6 address, or "*" for in6addr_any.
85           */
86 <        #vhost6 = "3ffe:80e8:546::2";
86 > #       vhost6 = "2001:DB8::1";
87  
88 <        /* max_clients: the maximum number of clients allowed to connect */
89 <        max_clients = 512;
88 >        /*
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 >
94 >        /*
95 >         * 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 <         * rsa_private_key_file: the path to the file containing our
109 <         * rsa key for cryptlink.
108 >         * rsa_private_key_file: the path to the file containing the
109 >         * RSA key.
110           *
111 <         * Example command to store a 2048 bit RSA keypair in
112 <         * rsa.key, and the public key in rsa.pub:
113 <         *
114 <         *      openssl genrsa -out rsa.key 2048
100 <         *      openssl rsa -in rsa.key -pubout -out rsa.pub
101 <         *      chown <ircd-user>.<ircd.group> rsa.key rsa.pub
111 >         * Example commands to store a 2048 bit RSA key in rsa.key:
112 >         *
113 >         *      openssl genrsa -out rsa.key 2048
114 >         *      chown <ircd-user>.<ircd.group> rsa.key
115           *      chmod 0600 rsa.key
103         *      chmod 0644 rsa.pub
116           */
117 <        #rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
117 > #       rsa_private_key_file = "etc/rsa.key";
118  
119          /*
120           * ssl_certificate_file: the path to the file containing our
121 <         * ssl certificate for encrypted client connection.
121 >         * SSL certificate for encrypted client connection.
122           *
123           * This assumes your private RSA key is stored in rsa.key. You
124 <         * MUST have an RSA key in order to generate the certificate
124 >         * MUST have an RSA key in order to generate the certificate.
125           *
126 <         *      openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
126 >         * Example command:
127           *
128 <         * See http://www.openssl.org/docs/HOWTO/certificates.txt
128 >         *      openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
129           *
130           * Please use the following values when generating the cert
131           *
132           *      Organization Name: Network Name
133 <         *      Organization Unit Name: changme.someirc.net
134 <         *      Common Name: irc.someirc.net
135 <         *      E-mail: you@domain.com
133 >         *      Organization Unit Name: unit.example.net
134 >         *      Common Name: irc.example.net
135 >         *      E-mail: email@example.net
136           */
137 <        #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
137 > #       ssl_certificate_file = "etc/cert.pem";
138  
139          /*
140 <         * ssl_server_protocol:
141 <         * SSL/TLS protocols we provide for incoming secure connections.
142 <         * This can be either sslv3 for SSLv3, and/or tlsv1 for TLSv1.
143 <         * SSLv2 is not suppported. This cannot be changed at runtime.
140 >         * ssl_dh_param_file: path to the PEM encoded Diffie-Hellman
141 >         * parameter file. DH parameters are required when using
142 >         * ciphers with EDH (ephemeral Diffie-Hellman) key exchange.
143 >         *
144 >         * A DH parameter file can be created by running:
145 >         *
146 >         *      openssl dhparam -out dhparam.pem 2048
147 >         *
148 >         * Prime size must be at least 1024 bits. Further information
149 >         * regarding specific OpenSSL dhparam command-line options
150 >         * can be found in the OpenSSL manual.
151           */
152 <        #ssl_server_protocol = sslv3, tlsv1;
134 < };
152 > #       ssl_dh_param_file = "etc/dhparam.pem";
153  
154 < /*
155 < * admin {}:  contains admin information about the server. (OLD A:)
156 < */
157 < admin {
158 <        name = "Smurf target";
159 <        description = "Main Server Administrator";
160 <        email = "<syn@packets.r.us>";
161 < };
162 <
163 < /*
146 < * log {}:  contains information about logfiles.
147 < */
148 < log {
149 <        /* Do you want to enable logging to ircd.log? */
150 <        use_logging = yes;
154 >        /*
155 >         * ssl_dh_elliptic_curve: defines the curve to use for the
156 >         * Elliptic Curve Diffie-Hellman (ECDH) algorithm.
157 >         * Default is ANSI X9.62 prime256v1/secp256r1 if nothing else is specified.
158 >         *
159 >         * A list of supported curves by OpenSSL can be obtained by running:
160 >         *
161 >         *      openssl ecparam -list_curves
162 >         */
163 > #       ssl_dh_elliptic_curve = "secp521r1";
164  
165          /*
166 <         * logfiles: the logfiles to use for user connects, /oper uses,
167 <         * and failed /oper.  These files must exist for logging to be used.
166 >         * ssl_cipher_list: list of ciphers to support on _this_ server.
167 >         * Can be used to enforce specific ciphers for incoming SSL/TLS
168 >         * connections. If a client (which also includes incoming server connections)
169 >         * is not capable of using any of the ciphers listed here, the connection will
170 >         * simply be rejected.
171 >         *
172 >         * A list of supported ciphers by OpenSSL can be obtained by running:
173 >         *
174 >         *      openssl ciphers -tls1 -v
175 >         *
176 >         * Multiple ciphers are separated by colons. The order of preference is
177 >         * from left to right.
178           */
179 <        fname_userlog = "logs/userlog";
157 <        fname_operlog = "logs/operlog";
158 <        fname_killlog = "logs/kill";
159 <        fname_klinelog = "logs/kline";
160 <        fname_glinelog = "logs/gline";
179 > #       ssl_cipher_list = "ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA:AES256-SHA";
180  
181          /*
182 <         * log_level: the amount of detail to log in ircd.log.  The
183 <         * higher, the more information is logged.  May be changed
184 <         * once the server is running via /quote SET LOG.  Either:
185 <         * L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO or L_DEBUG
182 >         * ssl_message_digest_algorithm: defines what cryptographic hash function
183 >         * to use for generating fingerprint hashes of X.509 certificates.
184 >         * Default is SHA-256 if nothing else is specified.
185 >         *
186 >         * A list of supported message digest algorithms by OpenSSL can be obtained by running:
187 >         *
188 >         *      openssl list-message-digest-algorithms
189           */
190 <        log_level = L_INFO;
190 > #       ssl_message_digest_algorithm = "sha256";
191 > };
192 >
193 > /*
194 > * admin {}:  contains administrative information about the server
195 > */
196 > admin {
197 >        name = "Smurf target";
198 >        description = "Main Server Administrator";
199 >        email = "<admin@server.example.net>";
200   };
201  
202   /*
203 < * class {}:  contains information about classes for users (OLD Y:)
203 > * class {}:  contains information about classes for users
204   */
205   class {
206 <        /* name: the name of the class.  classes are text now */
206 >        /* name: the name of the class. */
207          name = "users";
208  
209          /*
# Line 183 | Line 214 | class {
214  
215          /*
216           * number_per_ip: how many local users are allowed to connect
217 <         * from one IP  (optional)
217 >         * from a single IP address (optional)
218           */
219          number_per_ip = 2;
220  
221          /*
222           * max_local: how many local users are allowed to connect
223 <         * from one ident@host  (optional)
223 >         * from a single ident@host (optional)
224           */
225          max_local = 2;
226  
227          /*
228 <         * max_global: network-wide limit of users per ident@host  (optional)
228 >         * max_global: network-wide limit of users per ident@host (optional)
229           */
230          max_global = 10;
231  
# Line 204 | Line 235 | class {
235          max_number = 100;
236  
237          /*
238 <         * the following lines are optional and allow you to define
239 <         * how many users can connect from one /NN subnet
238 >         * The following lines are optional and allow you to define
239 >         * how many users can connect from one /NN subnet.
240           */
241          cidr_bitlen_ipv4 = 24;
242          cidr_bitlen_ipv6 = 120;
243          number_per_cidr = 16;
244  
245          /*
246 <         * sendq: the amount of data allowed in a clients queue before
246 >         * sendq: the amount of data allowed in a client's send queue before
247           * they are dropped.
248           */
249          sendq = 100 kbytes;
250 +
251 +        /*
252 +         * recvq: the amount of data allowed in a client's receive queue before
253 +         * they are dropped for flooding. Defaults to 2560 if the chosen value
254 +         * isn't within the range of 512 to 8000.
255 +         */
256 +        recvq = 2560 bytes;
257   };
258  
259   class {
# Line 223 | Line 261 | class {
261          ping_time = 90 seconds;
262          number_per_ip = 10;
263          max_number = 100;
264 <        sendq = 100kbytes;
264 >        sendq = 100 kbytes;
265 >
266 >        /*
267 >         * max_channels: maximum number of channels users in this class can join.
268 >         */
269 >        max_channels = 60;
270 >
271 >        /*
272 >         * min_idle: minimum idle time that is shown in /whois.
273 >         */
274 >        min_idle = 3 hours;
275 >
276 >        /*
277 >         * max_idle: maximum idle time that is shown in /whois.
278 >         */
279 >        max_idle = 8 hours;
280 >
281 >        /*
282 >         * flags:
283 >         *
284 >         * random_idle          - a fake idle time is set randomly between
285 >         *                        min_idle and max_idle
286 >         * hide_idle_from_opers - the fake idle time will also be shown to operators
287 >         */
288 >        flags = random_idle, hide_idle_from_opers;
289   };
290  
291   class {
# Line 231 | Line 293 | class {
293          ping_time = 90 seconds;
294  
295          /*
296 <         * ping_warning: how fast a server must reply to a PING before
235 <         * a warning to opers is generated.
236 <         */
237 <        ping_warning = 15 seconds;
238 <
239 <        /*
240 <         * connectfreq: only used in server classes.  Specifies the delay
296 >         * connectfreq: only used in server classes. Specifies the delay
297           * between autoconnecting to servers.
298           */
299          connectfreq = 5 minutes;
300  
301 <        /* max number: the amount of servers to autoconnect to */
301 >        /* max number: the number of servers to autoconnect to. */
302          max_number = 1;
303  
304 <        /* sendq: servers need a higher sendq as they send more data */
304 >        /* sendq: servers need a higher sendq as they send more data. */
305          sendq = 2 megabytes;
306   };
307  
308   /*
309 < * listen {}:  contains information about the ports ircd listens on (OLD P:)
309 > * motd {}: Allows the display of a different MOTD to a client
310 > * depending on its origin. Applies to local users only.
311 > */
312 > motd {
313 >        /*
314 >         * mask: multiple mask entries are permitted. Mask can either be
315 >         * a class name or a hostname. CIDR is supported.
316 >         */
317 >        mask = "*.at";
318 >        mask = "*.de";
319 >        mask = "*.ch";
320 >
321 >        /*
322 >         * file: path to the actual motd file.
323 >         */
324 >        file = "etc/german.motd";
325 > };
326 >
327 > /*
328 > * listen {}:  contains information about the ports ircd listens on
329   */
330   listen {
331          /*
332 <         * port: the specific port to listen on.  If no host is specified
333 <         * before, it will listen on all available IPs.
332 >         * port: the port to listen on. If no host is specified earlier in the
333 >         * listen {} block, it will listen on all available IP addresses.
334           *
335 <         * Ports are separated via a comma, a range may be specified using ".."
335 >         * Ports are separated by commas; a range may be specified using ".."
336           */
337 <        
338 <        /* port: listen on all available IPs, ports 6665 to 6669 */
337 >
338 >        /* port: listen on all available IP addresses, ports 6665 to 6669. */
339          port = 6665 .. 6669;
340  
341          /*
342 <         * Listen on 192.168.0.1/6697 with ssl enabled and hidden from STATS P
342 >         * Listen on 192.0.2.1/6697 with SSL enabled and hidden from STATS P
343           * unless you are an administrator.
344           *
345 <         * NOTE: The "flags" directive has to come before "port".  Always!
345 >         * NOTE: The "flags" directive always has to come before "port".
346           *
347           * Currently available flags are:
348           *
349 <         *  ssl    - Port is for SSL client connections only
349 >         *  ssl    - Port may only accept TLS/SSL connections
350           *  server - Only server connections are permitted
351 <         *  hidden - Port is hidden from /stats P
351 >         *  hidden - Port is hidden from /stats P, unless you're an admin
352           */
353          flags = hidden, ssl;
354 <        host = "192.168.0.1";
354 >        host = "192.0.2.2";
355          port = 6697;
356  
357          /*
358 <         * host: set a specific IP/host the ports after the line will listen
359 <         * on.  This may be ipv4 or ipv6.
358 >         * host: set a specific IP address to listen on using the
359 >         * subsequent port definitions. This may be IPv4 or IPv6.
360           */
361 <        host = "1.2.3.4";
361 >        host = "192.0.2.3";
362          port = 7000, 7001;
363  
364 <        host = "3ffe:1234:a:b:c::d";
364 >        host = "2001:DB8::2";
365          port = 7002;
366   };
367  
368   /*
369 < * auth {}:  allow users to connect to the ircd (OLD I:)
369 > * auth {}:  allow users to connect to the ircd
370   */
371   auth {
372          /*
373 <         * user: the user@host allowed to connect.  Multiple IPv4/IPv6 user
374 <         * lines are permitted per auth block.
373 >         * user: the user@host allowed to connect. Multiple user
374 >         * lines are permitted within each auth {} block.
375           */
376 <        user = "*@172.16.0.0/12";
377 <        user = "*test@123D:B567:*";
376 >        user = "*@192.0.2.0/24";
377 >        user = "*test@2001:DB8:*";
378  
379 <        /* password: an optional password that is required to use this block */
379 >        /* password: an optional password that is required to use this block. */
380          password = "letmein";
381  
382          /*
383           * encrypted: controls whether the auth password above has been
384 <         * encrypted.
384 >         * encrypted. Default is 'no' if nothing else is specified.
385           */
386          encrypted = yes;
387  
388          /*
389 <         * spoof: fake the users host to this.  This is free-form,
390 <         * just do everyone a favor and don't abuse it. ('=' prefix on /stats I)
389 >         * spoof: fake the user's host to this. This is free-form, just do
390 >         * everyone a favor and don't abuse it. ('=' prefix on /stats I)
391           */
392          spoof = "I.still.hate.packets";
393  
394 <        /* class: the class the user is placed in */
394 >        /* class: the class the user is placed in. */
395          class = "opers";
396  
397          /*
398 <         * need_password: don't allow users who haven't supplied the correct
399 <         *                password to connect using another auth{} block
400 <         *                ('&' prefix on /stats I if disabled)
401 <         * need_ident:    require the user to have identd to connect ('+' prefix on /stats I)
402 <         * spoof_notice:  enable spoofing notification to admins
403 <         * exceed_limit:  allow a user to exceed class limits ('>' prefix on /stats I)
404 <         * kline_exempt:  exempt this user from k/glines ('^' prefix on /stats I)
405 <         * gline_exempt:  exempt this user from glines ('_' prefix on /stats I)
406 <         * resv_exempt:   exempt this user from resvs ('$' prefix on /stats I)
407 <         * no_tilde:      remove ~ from a user with no ident ('-' prefix on /stats I)
408 <         * can_flood:     allow this user to exceed flood limits ('|' prefix on /stats I)
398 >         * need_password - don't allow users who haven't supplied the correct  | ('&' prefix on /stats I if disabled)
399 >         *                 password to connect using another auth {} block
400 >         * need_ident    - require the user to have identd to connect          | ('+' prefix on /stats I)
401 >         * spoof_notice  - enable spoofing notification to admins
402 >         * exceed_limit  - allow a user to exceed class limits                 | ('>' prefix on /stats I)
403 >         * kline_exempt  - exempt this user from k-lines                       | ('^' prefix on /stats I)
404 >         * xline_exempt  - exempt this user from x-lines                       | ('!' prefix on /stats I)
405 >         * resv_exempt   - exempt this user from resvs                         | ('$' prefix on /stats I)
406 >         * no_tilde      - remove ~ from a user with no ident                  | ('-' prefix on /stats I)
407 >         * can_flood     - allow this user to exceed flood limits              | ('|' prefix on /stats I)
408 >         * webirc        - enables WEBIRC authentication for web-based         | ('<' prefix on /stats I)
409 >         *                 clients such as Mibbit
410           */
411          flags = need_password, spoof_notice, exceed_limit, kline_exempt,
412 <                gline_exempt, resv_exempt, no_tilde, can_flood;
412 >                xline_exempt, resv_exempt, no_tilde, can_flood;
413   };
414  
415   auth {
416          /*
417 <         * redirect: the server and port to redirect a user to.  A user does
418 <         * not have to obey the redirection, the ircd just suggests an alternative
419 <         * server for them.
417 >         * redirserv, redirport: the server and port to redirect a user to.
418 >         * A user does not have to obey the redirection; the ircd just
419 >         * suggests an alternative server for them.
420           */
421 <        redirserv = "this.is.not.a.real.server";
421 >        redirserv = "server2.example.net";
422          redirport = 6667;
347        
348        user = "*.server";
423  
424 <        /* class: a class is required even though it is not used */
424 >        user = "*@*.ch";
425 >
426 >        /* class: a class is required even though it is not used. */
427          class = "users";
428   };
429  
# Line 358 | Line 434 | auth {
434   };
435  
436   /*
437 < * operator {}:  defines ircd operators. (OLD O:)
362 < *
363 < * ircd-hybrid no longer supports local operators, privileges are
364 < * controlled via flags.
437 > * operator {}:  defines ircd operators
438   */
439   operator {
440 <        /* name: the name of the oper */
441 <        /* NOTE: operator "opername"{} is also supported */
369 <        name = "god";
440 >        /* name: the name of the operator */
441 >        name = "sheep";
442  
443          /*
444 <         * user: the user@host required for this operator.  CIDR is not
445 <         * supported.  Multiple user="" lines are supported.
444 >         * user: the user@host required for this operator. Multiple user
445 >         * lines are permitted within each operator {} block.
446           */
447 <        user = "*god@*";
448 <        user = "*@127.0.0.1";
447 >        user = "*sheep@192.0.2.0/26";
448 >        user = "*@192.0.2.240/28";
449  
450          /*
451 <         * password: the password required to oper.  By default this will
451 >         * password: the password required to oper. By default this will
452           * need to be encrypted by using the provided mkpasswd tool.
453           * Several password hash algorithms are available depending
454           * on your system's crypt() implementation. For example, a modern
455 <         * glibc already has support for SHA-256/512, and MD5 encryption
455 >         * glibc already has support for the SHA-256/512 and MD5 encryption
456           * algorithms.
457           */
458          password = "$5$x5zof8qe.Yc7/bPp$5zIg1Le2Lsgd4CvOjaD20pr5PmcfD7ha/9b2.TaUyG4";
459  
460          /*
461           * encrypted: controls whether the oper password above has been
462 <         * encrypted.
462 >         * encrypted. Default is 'yes' if nothing else is specified.
463           */
464          encrypted = yes;
465  
466          /*
467 <         * rsa_public_key_file: the public key for this oper when using Challenge.
468 <         * A password should not be defined when this is used, see
469 <         * doc/challenge.txt for more information.
467 >         * whois: allows to override the default RPL_WHOISOPERATOR numeric
468 >         * string shown in /whois.
469 >         * This string is propagated to all servers on the network.
470           */
471 < #       rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
471 > #       whois = "is a Smurf Target (IRC Operator)";
472  
473 <        /* class: the class the oper joins when they successfully /oper */
473 >        /*
474 >         * ssl_certificate_fingerprint: enhances security by additionally checking
475 >         * the oper's client certificate fingerprint against the specified
476 >         * fingerprint below.
477 >         *
478 >         * Hint: your users can use the following command to obtain a SHA-256 hash
479 >         * of their ssl certificate:
480 >         *
481 >         *      openssl x509 -sha256 -noout -fingerprint -in cert.pem | sed -e 's/^.*=//;s/://g'
482 >         */
483 > #       ssl_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
484 >
485 >        /*
486 >         * ssl_connection_required: client must be connected over SSL/TLS
487 >         * in order to be able to use this operator {} block.
488 >         * Default is 'no' if nothing else is specified.
489 >         */
490 >        ssl_connection_required = no;
491 >
492 >        /* class: the class the oper joins when they successfully /oper. */
493          class = "opers";
494  
495          /*
496 <         * umodes: default usermodes opers get when they /oper.  If defined,
497 <         * it will override oper_umodes settings in general {}.
498 <         * Available usermodes:
496 >         * umodes: the default user modes opers get when they /oper.
497 >         * If defined, it will override oper_umodes settings in general {}.
498 >         * Available user modes:
499           *
500           * +b - bots         - See bot and drone flooding notices
501           * +c - cconn        - Client connection/quit notices
411         * +C - cconn_full   - Client connection/quit notices full
502           * +D - deaf         - Don't receive channel messages
503           * +d - debug        - See debugging notices
504 <         * +f - full         - See I: line full notices
504 >         * +e - external     - See remote server connection and split notices
505 >         * +F - farconnect   - Remote client connection/quit notices
506 >         * +f - full         - See auth {} block full notices
507           * +G - softcallerid - Server Side Ignore for users not on your channels
508           * +g - callerid     - Server Side Ignore (for privmsgs etc)
509 <         * +i - invisible    - Not shown in NAMES or WHO unless you share a
510 <         *                     a channel
509 >         * +H - hidden       - Hides operator status to other users
510 >         * +i - invisible    - Not shown in NAMES or WHO unless you share a channel
511 >         * +j - rej          - See rejected client notices
512           * +k - skill        - See server generated KILL messages
513           * +l - locops       - See LOCOPS messages
514           * +n - nchange      - See client nick changes
515 <         * +r - rej          - See rejected client notices
515 >         * +p - hidechans    - Hides channel list in WHOIS
516 >         * +q - hideidle     - Hides idle and signon time in WHOIS
517 >         * +R - nononreg     - Only receive private messages from registered clients
518           * +s - servnotice   - See general server notices
519           * +u - unauth       - See unauthorized client notices
520           * +w - wallop       - See server generated WALLOPS
426         * +x - external     - See remote server connection and split notices
521           * +y - spy          - See LINKS, STATS, TRACE notices etc.
428         * +z - operwall     - See oper generated WALLOPS
522           */
523 < #       umodes = locops, servnotice, operwall, wallop;
523 >        umodes = locops, servnotice, wallop;
524  
525          /*
526 <         * privileges: controls the activities and commands an oper is
527 <         * allowed to do on the server.  All options default to no.
528 <         * Available options:
529 <         *
530 <         * global_kill:  allows remote users to be /KILL'd (OLD 'O' flag)
531 <         * remote:       allows remote SQUIT and CONNECT   (OLD 'R' flag)
532 <         * remoteban:    allows remote KLINE/UNKLINE
533 <         * kline:        allows KILL, KLINE and DLINE      (OLD 'K' flag)
534 <         * unkline:      allows UNKLINE and UNDLINE        (OLD 'U' flag)
535 <         * gline:        allows GLINE                      (OLD 'G' flag)
536 <         * xline:        allows XLINE                      (OLD 'X' flag)
537 <         * operwall:     allows OPERWALL
538 <         * globops:      allows GLOBOPS
539 <         * nick_changes: allows oper to see nickchanges    (OLD 'N' flag)
540 <         *               via usermode +n
541 <         * rehash:       allows oper to REHASH config      (OLD 'H' flag)
542 <         * die:          allows DIE and RESTART            (OLD 'D' flag)
543 <         * admin:        gives admin privileges.  admins
544 <         *               may (un)load modules and see the
545 <         *               real IPs of servers.
546 <         * hidden_admin: same as 'admin', but noone can recognize you as
547 <         *               being an admin
548 <         * hidden_oper:  not shown in /stats p (except for other operators)
549 <         *
550 <         * A flag can be negated with ~ i.e.
551 <         * flags = ~remote;
526 >         * flags: controls the activities and commands an oper is
527 >         * allowed to do on the server. All flags default to 'no'.
528 >         * Available flags:
529 >         *
530 >         * admin          - gives administrator privileges    | ('A' flag)
531 >         * close          - allows CLOSE
532 >         * connect        - allows local CONNECT              | ('P' flag)
533 >         * connect:remote - allows remote CONNECT             | ('Q' flag)
534 >         * die            - allows DIE                        | ('D' flag)
535 >         * dline          - allows DLINE                      |
536 >         * globops        - allows GLOBOPS                    |
537 >         * join:resv      - allows to JOIN resv {} channels
538 >         * kill           - allows to KILL local clients      | ('N' flag)
539 >         * kill:remote    - allows remote users to be /KILL'd | ('O' flag)
540 >         * kline          - allows KLINE                      | ('K' flag)
541 >         * locops         - allows LOCOPS                     |
542 >         * module         - allows MODULE                     |
543 >         * nick:resv      - allows to use NICK on resv {} nicks
544 >         * opme           - allows OPME                       |
545 >         * rehash         - allows oper to REHASH config      | ('H' flag)
546 >         * remoteban      - allows remote KLINE/UNKLINE       | ('B' flag)
547 >         * restart        - allows RESTART                    |
548 >         * resv           - allows RESV
549 >         * set            - allows SET                        |
550 >         * squit          - allows local SQUIT                | ('R' flag)
551 >         * squit:remote   - allows remote SQUIT               | ('S' flag)
552 >         * undline        - allows UNDLINE                    |
553 >         * unkline        - allows UNKLINE                    | ('U' flag)
554 >         * unresv         - allows UNRESV
555 >         * unxline        - allows UNXLINE                    |
556 >         * wallops        - allows WALLOPS                    |
557 >         * xline          - allows XLINE                      | ('X' flag)
558           */
559 <        flags = global_kill, remote, kline, unkline, xline, globops,
560 <                die, rehash, nick_changes, admin, operwall;
462 < };
463 <
464 < service {
465 <        name = "service.someserver";
466 <        name = "stats.someserver;
559 >        flags = admin, connect, connect:remote, die, globops, kill, kill:remote,
560 >                kline, module, rehash, restart, set, unkline, unxline, xline;
561   };
562  
563   /*
564 < * connect {}:  controls servers we connect to (OLD C:, N:, H:, L:)
564 > * connect {}: define a server to connect to
565   */
566   connect {
567 <        /* name: the name of the server */
568 <        name = "irc.uplink.com";
567 >        /* name: the name of the server. */
568 >        name = "uplink.example.net";
569  
570          /*
571 <         * host: the host or IP to connect to.  If a hostname is used it
572 <         * must match the reverse dns of the server.
571 >         * host: the host or IP address to connect to. If a hostname is used it
572 >         * must match the reverse DNS of the server.
573           */
574 <        host = "192.168.0.1";
574 >        host = "192.0.2.4";
575  
576          /*
577 <         * vhost: the IP to bind to when we connect outward to servers.
577 >         * vhost: the IP address to bind to when making outgoing connections to
578 >         * servers.
579           * serverinfo::vhost and serverinfo::vhost6 will be overridden
580           * by this directive.
581           */
582 <        vhost = "192.168.0.2";
582 >        vhost = "192.0.2.5";
583  
584          /*
585 <         * passwords: the passwords we send (OLD C:) and accept (OLD N:).
586 <         * The remote server will have these passwords reversed.
585 >         * send_password, accept_password: the passwords to send and accept.
586 >         * The remote server will have these passwords swapped.
587           */
588          send_password = "password";
589          accept_password = "anotherpassword";
# Line 499 | Line 594 | connect {
594           */
595          encrypted = no;
596  
597 <        /* port: the port to connect to this server on */
597 >        /* port: the port to connect to this server on. */
598          port = 6666;
599  
600          /*
601 <         * hub_mask: the mask of servers that this server may hub.  Multiple
602 <         * entries are permitted
601 >         * hub_mask: the mask of servers that this server may hub. Multiple
602 >         * entries are permitted.
603           */
604          hub_mask = "*";
605  
606          /*
607 <         * leaf_mask: the mask of servers this server may not hub.  Multiple
608 <         * entries are permitted.  Useful for forbidding EU -> US -> EU routes.
607 >         * leaf_mask: the mask of servers this server may not hub. Multiple
608 >         * entries are permitted. Useful for forbidding EU -> US -> EU routes.
609           */
610   #       leaf_mask = "*.uk";
611  
612 <        /* class: the class this server is in */
612 >        /* class: the class this server is in. */
613          class = "server";
614  
615          /*
616 <         * autoconn:    controls whether we autoconnect to this server or not,
617 <         *              dependent on class limits.  By default, this is disabled.
618 <         * compressed:  controls whether traffic is compressed via ziplinks.
619 <         *              By default, this is disabled
620 <         * cryptlink:   enable full encryption for all data passing between our
621 <         *              server and this link and rsa authentication.
622 <         * burst_away:  This will send the /away string that users have set
623 <         *              on the server burst.  Note this can be a lot of data
529 <         *              and slow down your server burst.
530 <         * topicburst:  Send topics to this server during channel burst.  Works
531 <         *              only if the server we are connecting to is capable
532 <         *              of TBURST/TB.
616 >         * ssl_cipher_list: list of ciphers that the server we are connecting to
617 >         * must support. If the server is not capable of using any of the ciphers
618 >         * listed below, the connection will simply be rejected.
619 >         * Can be used to enforce stronger ciphers, even though this option
620 >         * is not necessarily required to establish a SSL/TLS connection.
621 >         *
622 >         * Multiple ciphers are separated by colons. The order of preference
623 >         * is from left to right.
624           */
625 < #       flags = autoconn, compressed, cryptlink, burst_away, topicburst;
535 < };
536 <
537 < connect {
538 <        name = "encrypted.auth.example";
539 <        host = "some.host.somewhere";
540 <        port = 6667;
541 <
542 <        flags = cryptlink;
625 > #       ssl_cipher_list = "ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA:AES256-SHA";
626  
627          /*
628 <         * rsa_public_key_file: the path to the public keyfile of the server.
629 <         * Used instead of passwords.
628 >         * ssl_certificate_fingerprint: enhances security by additionally checking
629 >         * the server's client certificate fingerprint against the specified
630 >         * fingerprint below.
631           */
632 <        rsa_public_key_file = "etc/remote.server.keyfile";
632 > #       ssl_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
633  
634          /*
635 <         * cipher preference: set the preferred cipher for this link
636 <         *
637 <         * Available ciphers are:
554 <         *      BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
555 <         *      RC5.12/128 RC5.8/128 3DES/168 DES/56
556 <         *
557 <         * NOTE:  Some ciphers may not be supported by your OpenSSL.
558 <         *        Check the output from 'configure' for available ciphers.
559 <         *
560 <         * NOTE2: To help you decide what cipher to use, tools/encspeed
561 <         *        will show you approximately how fast each cipher is.
562 <         *        However, blowfish is fast and secure, and is probably
563 <         *        a good default for most situations.
564 <         *
565 <         * NOTE3: Default if none is set is BF/128
566 <         *
567 <         * The cipher *MUST* be the same in both directions.  If you
568 <         * set a cipher preference, your uplink must set the same cipher,
569 <         * else it will not link.
635 >         * autoconn   - controls whether we autoconnect to this server or not,
636 >         *              dependent on class limits. By default, this is disabled.
637 >         * ssl        - Initiates a TLS/SSL connection.
638           */
639 < #       cipher_preference = "BF/168";
639 > #       flags = autoconn, ssl;
640   };
641  
642 < /*
643 < * NOTE: Don't add an extra 'name=' entry if you use
644 < * the connect "name"{} feature
577 < */
578 < connect "ipv6.some.server" {
579 <        host = "3ffd:dead:beef::1";
642 > connect {
643 >        name = "ipv6.example.net";
644 >        host = "2001:DB8::3";
645          send_password = "password";
646          accept_password = "password";
647          port = 6666;
# Line 591 | Line 656 | connect "ipv6.some.server" {
656  
657   /*
658   * cluster {}:  servers that share klines/unkline/xline/unxline/resv/unresv/locops
659 < * automatically (OLD hyb6 SLAVE_SERVERS)
659 > * automatically
660   */
661   cluster {
662          /*
663 <         * name: the server to share with, this can take wildcards
663 >         * name: the server to share with; this can take wildcards
664           *
665 <         * NOTE: only local actions will be clustered, meaning if
665 >         * NOTE: only local actions will be clustered, meaning that if
666           *       the server receives a shared kline/unkline/etc, it
667           *       will not be propagated to clustered servers.
668           *
669           *       Remote servers are not necessarily required to accept
670 <         *       clustered lines, they need a shared{} for *THIS* server
671 <         *       in order to accept them.
670 >         *       clustered lines, they need a shared {} block for *THIS*
671 >         *       server in order to accept them.
672           */
673 <        name = "*.arpa";
673 >        name = "*.example.net";
674  
675          /*
676 <         * type: list of what to share, options are as follows:
677 <         *      kline   - share klines
678 <         *      tkline  - share temporary klines
679 <         *      unkline - share unklines
680 <         *      xline   - share xlines
681 <         *      txline  - share temporary xlines
682 <         *      unxline - share unxlines
683 <         *      resv    - share resvs
684 <         *      tresv   - share temporary resvs
685 <         *      unresv  - share unresvs
686 <         *      locops  - share locops
622 <         *      all     - share all of the above (default)
676 >         * type: list of what to share; options are as follows:
677 >         *      dline   - share dlines
678 >         *      undline - share undlines
679 >         *      kline   - share klines
680 >         *      unkline - share unklines
681 >         *      xline   - share xlines
682 >         *      unxline - share unxlines
683 >         *      resv    - share resvs
684 >         *      unresv  - share unresvs
685 >         *      locops  - share locops
686 >         *      all     - share all of the above (default)
687           */
688          type = kline, unkline, locops, xline, resv;
689   };
690  
691   /*
692 < * shared {}: users that are allowed to remote kline (OLD U:)
692 > * shared {}: users that are allowed to remote kline
693   *
694 < * NOTE: This can be effectively used for remote klines.
694 > * NOTE: This can effectively be used for remote klines.
695   *       Please note that there is no password authentication
696 < *       for users setting remote klines.  You must also be
696 > *       for users setting remote klines. You must also be
697   *       /oper'd in order to issue a remote kline.
698   */
699   shared {
700          /*
701 <         * name: the server the user must be on to set klines.  If this is not
702 <         * specified, the user will be allowed to kline from all servers.
701 >         * name: the server the user must be connected to in order to set klines.
702 >         * If this is not specified, the user will be allowed to kline from all
703 >         * servers.
704           */
705 <        name = "irc2.some.server";
705 >        name = "irc2.example.net";
706  
707          /*
708 <         * user: the user@host mask that is allowed to set klines.  If this is
708 >         * user: the user@host mask that is allowed to set klines. If this is
709           * not specified, all users on the server above will be allowed to set
710           * a remote kline.
711           */
# Line 648 | Line 713 | shared {
713  
714          /*
715           * type: list of what to share, options are as follows:
716 <         *      kline   - allow oper/server to kline
717 <         *      tkline  - allow temporary klines
718 <         *      unkline - allow oper/server to unkline
719 <         *      xline   - allow oper/server to xline
720 <         *      txline  - allow temporary xlines
721 <         *      unxline - allow oper/server to unxline
722 <         *      resv    - allow oper/server to resv
723 <         *      tresv   - allow temporary resvs
659 <         *      unresv  - allow oper/server to unresv
716 >         *      dline   - allow oper/server to dline
717 >         *      undline - allow oper/server to undline
718 >         *      kline   - allow oper/server to kline
719 >         *      unkline - allow oper/server to unkline
720 >         *      xline   - allow oper/server to xline
721 >         *      unxline - allow oper/server to unxline
722 >         *      resv    - allow oper/server to resv
723 >         *      unresv  - allow oper/server to unresv
724           *      locops  - allow oper/server to locops - only used for servers that cluster
725 <         *      all     - allow oper/server to do all of the above (default)
725 >         *      all     - allow oper/server to do all of the above (default)
726           */
727          type = kline, unkline, resv;
728   };
729  
730   /*
731 < * kill {}:  users that are not allowed to connect (OLD K:)
732 < * Oper issued klines will be added to the specified kline config
731 > * kill {}:  users that are not allowed to connect
732 > * Oper issued klines will be added to the specified kline database
733   */
734   kill {
735 <        user = "bad@*.hacked.edu";
735 >        user = "bad@*.example.net";
736          reason = "Obviously hacked account";
737   };
738  
675 kill {
676        user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
677
678        /*
679         * NOTE: You have to set type=regex; when using a regular expression
680         * based user entry
681         */
682        type = regex;
683 };
684
739   /*
740 < * deny {}:  IPs that are not allowed to connect (before DNS/ident lookup)
741 < * Oper issued dlines will be added to the specified dline config
740 > * deny {}:  IP addresses that are not allowed to connect
741 > * (before DNS/ident lookup)
742 > * Oper issued dlines will be added to the specified dline database
743   */
744   deny {
745 <        ip = "10.0.1.0/24";
745 >        ip = "192.0.2.0/28";
746          reason = "Reconnecting vhosted bots";
747   };
748  
749   /*
750 < * exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:)
750 > * exempt {}:  IP addresses that are exempt from deny {} and Dlines
751   */
752   exempt {
753 <        ip = "192.168.0.0/16";
753 >        ip = "192.0.2.240/28";
754   };
755  
756   /*
757 < * resv {}:  nicks and channels users may not use/join (OLD Q:)
757 > * resv {}:  nicks and channels users may not use/join
758   */
759 + resv { mask = "clone*"; reason = "Clone bots"; };
760 + resv { mask = "Global"; reason = "Reserved for services"; };
761 + resv { mask = "ChanServ"; reason = "Reserved for services"; };
762 + resv { mask = "NickServ"; reason = "Reserved for services"; };
763 + resv { mask = "OperServ"; reason = "Reserved for services"; };
764 + resv { mask = "MemoServ"; reason = "Reserved for services"; };
765 + resv { mask = "BotServ"; reason = "Reserved for services"; };
766 + resv { mask = "HelpServ"; reason = "Reserved for services"; };
767 + resv { mask = "HostServ"; reason = "Reserved for services"; };
768 + resv { mask = "StatServ"; reason = "Reserved for services"; };
769 + resv { mask = "#*services*"; reason = "Reserved for services"; };
770 +
771   resv {
772 <        /* reason: the reason for the proceeding resv's */
773 <        reason = "Reserved for services";
772 >        /*
773 >         * mask: masks starting with a '#' are automatically considered
774 >         * as channel name masks.
775 >         */
776 >        mask = "#helsinki";
777 >        reason = "Channel is reserved for Finnish inhabitants";
778  
779 <        /* resv: the nicks and channels users may not join/use */
780 <        nick = "Global";
781 <        nick = "DevNull";
782 <        nick = "Services";
783 <        nick = "StatServ";
784 <        nick = "HostServ";
714 <        nick = "NickServ";
715 <        nick = "ChanServ";
716 <        nick = "MemoServ";
717 <        nick = "OperServ";
718 <        channel = "#services";
719 <
720 <        /* resv: wildcard masks are also supported in nicks only */
721 <        reason = "Clone bots";
722 <        nick = "clone*";
779 >        /*
780 >         * exempt: can be either a ISO 3166 alpha-2 two letter country
781 >         * code, or a nick!user@host mask. CIDR is supported. Exempt
782 >         * entries can be stacked.
783 >         */
784 >        exempt = "FI";
785   };
786  
787   /*
788 < * gecos {}:  The X: replacement, used for banning users based on
727 < * their "realname".
788 > * gecos {}:  used for banning users based on their "realname".
789   */
790   gecos {
791          name = "*sex*";
# Line 736 | Line 797 | gecos {
797          reason = "Trojan drone";
798   };
799  
800 < gecos {
801 <        name = "*http*";
802 <        reason = "Spambot";
800 > /*
801 > * service {}: specifies a server which may act as a network service
802 > *
803 > * NOTE: it is very important that every server on the network
804 > *       has the same service {} block.
805 > */
806 > service {
807 >        name = "service.example.net";
808 >        name = "stats.example.net";
809   };
810  
811 < gecos {
812 <        name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
811 > /*
812 > * pseudo {}: adds pseudo/custom commands also known as service aliases
813 > */
814 > pseudo {
815 >        /* command: the actual command/alias. */
816 >        command = "IDENTIFY";
817  
818 <        /*
819 <         * NOTE: You have to set type=regex; when using a regular expression
820 <         * based name entry
821 <         */
822 <        type = regex;
818 >        /* prepend: optional text that can be prepended before the user's message. */
819 >        prepend = "IDENTIFY ";
820 >
821 >        /* name: the service name, used for error messages. */
822 >        name = "NickServ";
823 >
824 >        /* target: the actual target where this message should be sent to. */
825 >        target = "NickServ@service.example.net";
826 > };
827 >
828 > pseudo {
829 >        command = "CHANSERV";
830 >        name = "ChanServ";
831 >        target = "ChanServ@service.example.net";
832 > };
833 >
834 > pseudo {
835 >        command = "CS";
836 >        name = "ChanServ";
837 >        target = "ChanServ@service.example.net";
838 > };
839 >
840 > pseudo {
841 >        command = "NICKSERV";
842 >        name = "NickServ";
843 >        target = "NickServ@service.example.net";
844 > };
845 >
846 > pseudo {
847 >        command = "NS";
848 >        name = "NickServ";
849 >        target = "NickServ@service.example.net";
850 > };
851 >
852 > pseudo {
853 >        command = "MEMOSERV";
854 >        name = "MemoServ";
855 >        target = "MemoServ@service.example.net";
856 > };
857 >
858 > pseudo {
859 >        command = "MS";
860 >        name = "MemoServ";
861 >        target = "MemoServ@service.example.net";
862 > };
863 >
864 > pseudo {
865 >        command = "OPERSERV";
866 >        name = "OperServ";
867 >        target = "OperServ@service.example.net";
868 > };
869 >
870 > pseudo {
871 >        command = "OS";
872 >        name = "OperServ";
873 >        target = "OperServ@service.example.net";
874 > };
875 >
876 > pseudo {
877 >        command = "HOSTSERV";
878 >        name = "HostServ";
879 >        target = "HostServ@service.example.net";
880 > };
881 >
882 > pseudo {
883 >        command = "HS";
884 >        name = "HostServ";
885 >        target = "HostServ@service.example.net";
886 > };
887 >
888 > pseudo {
889 >        command = "BOTSERV";
890 >        name = "BotServ";
891 >        target = "BotServ@service.example.net";
892 > };
893 >
894 > pseudo {
895 >        command = "BS";
896 >        name = "BotServ";
897 >        target = "BotServ@service.example.net";
898   };
899  
900   /*
901 < * channel {}:  The channel block contains options pertaining to channels
901 > * channel {}:  the channel block contains options pertaining to channels
902   */
903   channel {
904          /*
905           * disable_fake_channels: this option, if set to 'yes', will
906 <         * disallow clients to create or join channels that have one
906 >         * disallow clients from creating or joining channels that have one
907           * of the following ASCII characters in their name:
908           *
909           *   2 | bold
910           *   3 | mirc color
911           *  15 | plain text
912           *  22 | reverse
913 +         *  29 | italic
914           *  31 | underline
915           * 160 | non-breaking space
916           */
917          disable_fake_channels = yes;
918  
919          /*
920 <         * restrict_channels: reverse channel RESVs logic, only reserved
921 <         * channels are allowed
775 <         */
776 <        restrict_channels = no;
777 <
778 <        /*
779 <         * disable_local_channels: prevent users from joining &channels.
780 <         */
781 <        disable_local_channels = no;
782 <
783 <        /*
784 <         * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
785 <         * that can join a +i channel without an invite.
786 <         */
787 <        use_invex = yes;
788 <
789 <        /*
790 <         * use_except: Enable/disable channel mode +e, a n!u@h list of masks
791 <         * that can join a channel through a ban (+b).
792 <         */
793 <        use_except = yes;
794 <
795 <        /*
796 <         * use_knock: Allows users to request an invite to a channel that
797 <         * is locked somehow (+ikl).  If the channel is +p or you are banned
798 <         * the knock will not be sent.
920 >         * invite_client_count, invite_client_time: how many INVITE commands
921 >         * are permitted per client per invite_client_time.
922           */
923 <        use_knock = yes;
923 >        invite_client_count = 10;
924 >        invite_client_time = 5 minutes;
925  
926          /*
927 <         * knock_delay: The amount of time a user must wait between issuing
928 <         * the knock command.
927 >         * knock_client_count, knock_client_time: how many KNOCK commands
928 >         * are permitted per client per knock_client_time.
929           */
930 <        knock_delay = 5 minutes;
930 >        knock_client_count = 1;
931 >        knock_client_time = 5 minutes;
932  
933          /*
934 <         * knock_delay_channel: How often a knock to any specific channel
935 <         * is permitted, regardless of the user sending the knock.
934 >         * knock_delay_channel: how often a KNOCK to any specific channel
935 >         * is permitted, regardless of the user sending the KNOCK.
936           */
937          knock_delay_channel = 1 minute;
938  
939          /*
940 <         * burst_topicwho: enable sending of who set topic on topicburst
941 <         * default is yes
940 >         * max_channels: the maximum number of channels a user can join/be on.
941 >         * This is a default value which can be overriden with class {} blocks.
942           */
943 <        burst_topicwho = yes;
819 <
820 <        /*
821 <         * max_chans_per_user: The maximum number of channels a user can
822 <         * join/be on.
823 <         */
824 <        max_chans_per_user = 25;
825 <
826 <        /* quiet_on_ban: stop banned people talking in channels. */
827 <        quiet_on_ban = yes;
943 >        max_channels = 25;
944  
945 <        /* max_bans: maximum number of +b/e/I modes in a channel */
946 <        max_bans = 25;
945 >        /* max_bans: maximum number of +b/e/I modes in a channel. */
946 >        max_bans = 100;
947  
948          /*
949 <         * how many joins in how many seconds constitute a flood, use 0 to
950 <         * disable. +b opers will be notified (changeable via /set)
951 <         */
952 <        join_flood_count = 16;
837 <        join_flood_time = 8 seconds;
838 <
839 <        /*
840 <         * splitcode: The ircd will now check splitmode every few seconds.
841 <         *
842 <         * Either split users or split servers can activate splitmode, but
843 <         * both conditions must be met for the ircd to deactivate splitmode.
844 <         *
845 <         * You may force splitmode to be permanent by /quote set splitmode on
949 >         * default_join_flood_count, default_join_flood_time:
950 >         * how many joins in how many seconds constitute a flood. Use 0 to disable.
951 >         * +b opers will be notified. These are only default values which can be
952 >         * changed via "/QUOTE SET JFLOODCOUNT" and "/QUOTE SET JFLOODTIME".
953           */
954 <
955 <        /*
849 <         * default_split_user_count: when the usercount is lower than this level,
850 <         * consider ourselves split.  This must be set for automatic splitmode.
851 <         */
852 <        default_split_user_count = 0;
853 <
854 <        /*
855 <         * default_split_server_count: when the servercount is lower than this,
856 <         * consider ourselves split.  This must be set for automatic splitmode.
857 <         */
858 <        default_split_server_count = 0;
859 <
860 <        /* no_create_on_split: disallow users creating channels on split. */
861 <        no_create_on_split = yes;
862 <
863 <        /* no_join_on_split: disallow users joining channels at all on a split. */
864 <        no_join_on_split = no;
954 >        default_join_flood_count = 18;
955 >        default_join_flood_time = 6 seconds;
956   };
957  
958   /*
959 < * serverhide {}:  The serverhide block contains the options regarding
960 < * serverhiding
959 > * serverhide {}:  the serverhide block contains the options regarding
960 > * to server hiding. For more information regarding server hiding,
961 > * please see doc/serverhide.txt
962   */
963   serverhide {
964          /*
965 +         * disable_remote_commands: disable users issuing commands
966 +         * on remote servers.
967 +         */
968 +        disable_remote_commands = no;
969 +
970 +        /*
971           * flatten_links: this option will show all servers in /links appear
972 <         * that they are linked to this current server
972 >         * as though they are linked to this current server.
973           */
974          flatten_links = no;
975  
976          /*
977 <         * links_delay: how often to update the links file when it is
977 >         * flatten_links_delay: how often to update the links file when it is
978           * flattened.
979           */
980 <        links_delay = 5 minutes;
980 >        flatten_links_delay = 5 minutes;
981  
982          /*
983 <         * hidden: hide this server from a /links output on servers that
886 <         * support it.  This allows hub servers to be hidden etc.
983 >         * flatten_links_file: path to the flatten links cache file.
984           */
985 <        hidden = no;
985 >        flatten_links_file = "var/lib/links.txt";
986  
987          /*
988 <         * disable_hidden: prevent servers hiding themselves from a
989 <         * /links output.
988 >         * hidden: hide this server from a /links output on servers that
989 >         * support it. This allows hub servers to be hidden etc.
990           */
991 <        disable_hidden = no;
991 >        hidden = no;
992  
993          /*
994           * hide_servers: hide remote servernames everywhere and instead use
# Line 900 | Line 997 | serverhide {
997          hide_servers = no;
998  
999          /*
1000 <         * Use this as the servername users see if hide_servers = yes.
1000 >         * hide_services: define this if you want to hide the location of
1001 >         * services servers that are specified in the service {} block.
1002           */
1003 <        hidden_name = "*.hidden.com";
1003 >        hide_services = no;
1004  
1005          /*
1006 <         * hide_server_ips: If this is disabled, opers will be unable to see
1007 <         * servers ips and will be shown a masked ip, admins will be shown the
1008 <         * real ip.
1006 >         * hidden_name: use this as the servername users see if hide_servers = yes.
1007 >         */
1008 >        hidden_name = "*.example.net";
1009 >
1010 >        /*
1011 >         * hide_server_ips: if this is disabled, opers will be unable to see
1012 >         * servers' IP addresses and will be shown a masked IP address; admins
1013 >         * will be shown the real IP address.
1014           *
1015 <         * If this is enabled, nobody can see a servers ip. *This is a kludge*,
1016 <         * it has the side effect of hiding the ips everywhere, including
1017 <         * logfiles.
1015 >         * If this is enabled, nobody can see a server's IP address.
1016 >         * *This is a kludge*: it has the side effect of hiding the IP addresses
1017 >         * everywhere, including logfiles.
1018           *
1019           * We recommend you leave this disabled, and just take care with who you
1020 <         * give admin=yes; to.
1020 >         * give administrator privileges to.
1021           */
1022          hide_server_ips = no;
1023   };
1024  
1025   /*
1026 < * general {}:  The general block contains many of the options that were once
1027 < * compiled in options in config.h.  The general block is read at start time.
1026 > * general {}:  the general block contains many of the options that were once
1027 > * compiled in options in config.h
1028   */
1029   general {
1030 <        /* services_name: servername of nick/channel services */
1031 <        services_name = "service.someserver";
1030 >        /*
1031 >         * cycle_on_host_change: sends a fake QUIT/JOIN combination
1032 >         * when services change the hostname of a specific client.
1033 >         */
1034 >        cycle_on_host_change = yes;
1035  
1036          /* max_watch: maximum WATCH entries a client can have. */
1037 <        max_watch = 60;
1037 >        max_watch = 30;
1038  
1039 <        /*
1040 <         * gline_min_cidr: the minimum required length of a CIDR bitmask
935 <         * for IPv4 based glines
936 <         */
937 <        gline_min_cidr = 16;
1039 >        /* max_accept: maximum allowed /accept's for +g user mode. */
1040 >        max_accept = 30;
1041  
1042          /*
1043 <         * gline_min_cidr6: the minimum required length of a CIDR bitmask
1044 <         * for IPv6 based glines
1043 >         * dline_min_cidr: the minimum required length of a CIDR bitmask
1044 >         * for IPv4 based D-lines.
1045           */
1046 <        gline_min_cidr6 = 48;
1046 >        dline_min_cidr = 16;
1047  
1048          /*
1049 <         * Whether to automatically set mode +i on connecting users.
1049 >         * dline_min_cidr6: the minimum required length of a CIDR bitmask
1050 >         * for IPv6 based D-lines.
1051           */
1052 <        invisible_on_connect = yes;
1052 >        dline_min_cidr6 = 48;
1053  
1054          /*
1055 <         * If you don't explicitly specify burst_away in your connect blocks, then
1056 <         * they will default to the burst_away value below.
1055 >         * kline_min_cidr: the minimum required length of a CIDR bitmask
1056 >         * for IPv4 based K-lines.
1057           */
1058 <        burst_away = no;
1058 >        kline_min_cidr = 16;
1059  
1060          /*
1061 <         * Show "actually using host <ip>" on /whois when possible.
1061 >         * kline_min_cidr6: the minimum required length of a CIDR bitmask
1062 >         * for IPv6 based K-lines.
1063           */
1064 <        use_whois_actually = yes;
1064 >        kline_min_cidr6 = 48;
1065  
1066          /*
1067 <         * Max time from the nickname change that still causes KILL
1068 <         * automatically to switch for the current nick of that user.
1067 >         * invisible_on_connect: whether to automatically set mode +i on
1068 >         * connecting users.
1069           */
1070 <        kill_chase_time_limit = 90 seconds;
1070 >        invisible_on_connect = yes;
1071  
1072          /*
1073 <         * If hide_spoof_ips is disabled, opers will be allowed to see the real IP of spoofed
1074 <         * users in /trace etc.  If this is defined they will be shown a masked IP.
1073 >         * kill_chase_time_limit: KILL chasing is a feature whereby a KILL
1074 >         * issued for a user who has recently changed nickname will be applied
1075 >         * automatically to the new nick. kill_chase_time_limit is the maximum
1076 >         * time following a nickname change that this chasing will apply.
1077           */
1078 <        hide_spoof_ips = yes;
1078 >        kill_chase_time_limit = 30 seconds;
1079  
1080          /*
1081 <         * Ignore bogus timestamps from other servers.  Yes, this will desync
1082 <         * the network, but it will allow chanops to resync with a valid non TS 0
1081 >         * ignore_bogus_ts: ignore bogus timestamps from other servers.
1082 >         * Yes, this will desync the network, but it will allow chanops
1083 >         * to resync with a valid non TS 0.
1084           *
1085           * This should be enabled network wide, or not at all.
1086           */
# Line 980 | Line 1088 | general {
1088  
1089          /*
1090           * disable_auth: completely disable ident lookups; if you enable this,
1091 <         * be careful of what you set need_ident to in your auth {} blocks
1091 >         * be careful of what you set need_ident to in your auth {} blocks.
1092           */
1093          disable_auth = no;
1094  
987        /* disable_remote_commands: disable users doing commands on remote servers */
988        disable_remote_commands = no;
989
1095          /*
1096           * tkline_expire_notices: enables or disables temporary kline/xline
1097           * expire notices.
# Line 995 | Line 1100 | general {
1100  
1101          /*
1102           * default_floodcount: the default value of floodcount that is configurable
1103 <         * via /quote set floodcount.  This is the amount of lines a user
1104 <         * may send to any other user/channel in one second.
1103 >         * via /quote set floodcount. This is the number of lines a user may send
1104 >         * to any other user/channel in one second. Set to 0 to disable.
1105           */
1106          default_floodcount = 10;
1107  
1108          /*
1109 <         * failed_oper_notice: send a notice to all opers on the server when
1109 >         * failed_oper_notice: send a notice to all opers on the server when
1110           * someone tries to OPER and uses the wrong password, host or ident.
1111           */
1112          failed_oper_notice = yes;
1113  
1114          /*
1115 <         * dots_in_ident: the amount of '.' characters permitted in an ident
1115 >         * dots_in_ident: the number of '.' characters permitted in an ident
1116           * reply before the user is rejected.
1117           */
1118          dots_in_ident = 2;
1119  
1120          /*
1121 <         * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1122 <         * placed via the server.  klines hand placed are exempt from limits.
1123 <         * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1121 >         * min_nonwildcard: the minimum number of non-wildcard characters in
1122 >         * k/d lines placed via the server. K-lines hand-placed are exempt from
1123 >         * this limit.
1124 >         * Wildcard characters: '.', ':', '*', '?'
1125           */
1126          min_nonwildcard = 4;
1127  
1128          /*
1129 <         * min_nonwildcard_simple: the minimum non wildcard characters in
1130 <         * gecos bans.  wildcard chars: '*' '?' '#'
1129 >         * min_nonwildcard_simple: the minimum number of non-wildcard characters
1130 >         * in gecos bans. Wildcard characters: '*', '?'
1131           */
1132          min_nonwildcard_simple = 3;
1133  
1134 <        /* max_accept: maximum allowed /accept's for +g usermode */
1029 <        max_accept = 20;
1030 <
1031 <        /* anti_nick_flood: enable the nickflood control code */
1134 >        /* anti_nick_flood: enable the nickflood control code. */
1135          anti_nick_flood = yes;
1136  
1034        /* nick flood: the nick changes allowed in the specified period */
1035        max_nick_time = 20 seconds;
1036        max_nick_changes = 5;
1037
1137          /*
1138 <         * anti_spam_exit_message_time: the minimum time a user must be connected
1139 <         * before custom quit messages are allowed.
1138 >         * max_nick_changes, max_nick_time: the number of nick changes allowed in
1139 >         * the specified period.
1140           */
1141 <        anti_spam_exit_message_time = 5 minutes;
1142 <
1044 <        /*
1045 <         * ts delta: the time delta allowed between server clocks before
1046 <         * a warning is given, or before the link is dropped.  all servers
1047 <         * should run ntpdate/rdate to keep clocks in sync
1048 <         */
1049 <        ts_warn_delta = 30 seconds;
1050 <        ts_max_delta = 5 minutes;
1141 >        max_nick_changes = 5;
1142 >        max_nick_time = 20 seconds;
1143  
1144          /*
1145 <         * kline_with_reason: show the user the reason why they are k/d/glined
1146 <         * on exit.  May give away who set k/dline when set via tcm.
1145 >         * away_count, away_time: how many AWAY command are permitted per
1146 >         * client per away_time.
1147           */
1148 <        kline_with_reason = yes;
1148 >        away_count = 2;
1149 >        away_time = 10 seconds;
1150  
1151          /*
1152 <         * kline_reason: show this message to users on channel
1153 <         * instead of the oper reason.
1152 >         * anti_spam_exit_message_time: the minimum time a user must be connected
1153 >         * before custom quit messages are allowed.
1154           */
1155 <        kline_reason = "Connection closed";
1155 >        anti_spam_exit_message_time = 5 minutes;
1156  
1157          /*
1158 <         * reject_hold_time: wait this amount of time before disconnecting
1159 <         * a rejected client. Use 0 to disable.
1158 >         * ts_warn_delta, ts_max_delta: the time delta allowed between server
1159 >         * clocks before a warning is given, or before the link is dropped.
1160 >         * All servers should run ntpdate/rdate to keep clocks in sync.
1161           */
1162 <        reject_hold_time = 0;
1162 >        ts_warn_delta = 3 seconds;
1163 >        ts_max_delta = 15 seconds;
1164  
1165          /*
1166 <         * warn_no_nline: warn opers about servers that try to connect but
1167 <         * we don't have a connect {} block for.  Twits with misconfigured
1168 <         * servers can get really annoying with this enabled.
1166 >         * warn_no_connect_block: warn opers about servers that try to connect
1167 >         * but for which we don't have a connect {} block. Twits with
1168 >         * misconfigured servers can become really annoying with this enabled.
1169           */
1170 <        warn_no_nline = yes;
1170 >        warn_no_connect_block = yes;
1171  
1172          /*
1173           * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1174 <         * operators and administrators.  Doing so is a good idea in case
1175 <         * there are any exempted (exempt{}) server IPs you don't want to
1174 >         * operators and administrators. Doing so is a good idea in case
1175 >         * there are any exempted (exempt {}) server IPs you don't want to
1176           * see leaked.
1177           */
1178          stats_e_disabled = no;
1179  
1180 <        /* stats_o_oper only: make stats o (opers) oper only */
1180 >        /* stats_m_oper_only: make /stats m/M (messages) oper only. */
1181 >        stats_m_oper_only = yes;
1182 >
1183 >        /* stats_o_oper_only: make stats o (opers) oper only. */
1184          stats_o_oper_only = yes;
1185  
1186 <        /* stats_P_oper_only: make stats P (ports) oper only */
1186 >        /* stats_P_oper_only: make stats P (ports) oper only. */
1187          stats_P_oper_only = yes;
1188  
1189 +        /* stats_u_oper_only: make stats u (uptime) oper only. */
1190 +        stats_u_oper_only = no;
1191 +
1192          /*
1193 <         * stats i oper only: make stats i (auth {}) oper only. set to:
1194 <         *     yes:    show users no auth blocks, made oper only.
1195 <         *     masked: show users first matching auth block
1196 <         *     no:     show users all auth blocks.
1193 >         * stats_i_oper_only: make stats i (auth {}) oper only. Set to:
1194 >         *     yes    - show users no auth {} blocks, made oper only
1195 >         *     masked - show users the first matching auth {} block
1196 >         *     no     - show users all auth {} blocks
1197           */
1198          stats_i_oper_only = yes;
1199  
1200          /*
1201 <         * stats_k_oper_only: make stats k/K (klines) oper only.  set to:
1202 <         *     yes:    show users no auth blocks, made oper only
1203 <         *     masked: show users first matching auth block
1204 <         *     no:     show users all auth blocks.
1201 >         * stats_k_oper_only: make stats k/K (klines) oper only. Set to:
1202 >         *     yes    - show users no klines, made oper only
1203 >         *     masked - show users the first matching kline
1204 >         *     no     - show users all klines
1205           */
1206          stats_k_oper_only = yes;
1207  
# Line 1112 | Line 1213 | general {
1213  
1214          /*
1215           * opers_bypass_callerid: allows operators to bypass +g and message
1216 <         * anyone who has it set (useful if you use services).
1216 >         * anyone who has it set.
1217           */
1218          opers_bypass_callerid = no;
1219  
1220          /*
1221 <         * pace_wait_simple: time between use of less intensive commands
1222 <         * (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS)
1221 >         * pace_wait_simple: minimum time required between use of less
1222 >         * intensive commands
1223 >         * (ADMIN, HELP, LUSERS, VERSION, remote WHOIS)
1224           */
1225          pace_wait_simple = 1 second;
1226  
1227          /*
1228 <         * pace_wait: time between more intensive commands
1229 <         * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1228 >         * pace_wait: minimum time required between use of more intensive commands
1229 >         * (INFO, LINKS, MAP, MOTD, STATS, WHO, WHOWAS)
1230           */
1231          pace_wait = 10 seconds;
1232  
1233          /*
1234 <         * short_motd: send clients a notice telling them to read the motd
1235 <         * instead of forcing a motd to clients who may simply ignore it.
1234 >         * short_motd: send clients a notice telling them to read the MOTD
1235 >         * instead of forcing an MOTD to clients who may simply ignore it.
1236           */
1237          short_motd = no;
1238  
1239          /*
1240 <         * ping_cookie: require clients to respond exactly to a ping command,
1240 >         * ping_cookie: require clients to respond exactly to a PING command,
1241           * can help block certain types of drones and FTP PASV mode spoofing.
1242           */
1243          ping_cookie = no;
# Line 1144 | Line 1246 | general {
1246          no_oper_flood = yes;
1247  
1248          /*
1249 <         * true_no_oper_flood: completely eliminate flood limits for opers
1250 <         * and for clients with can_flood = yes in their auth {} blocks
1149 <         */
1150 <        true_no_oper_flood = yes;
1151 <
1152 <        /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1153 <        oper_pass_resv = yes;
1154 <
1155 <        /* REMOVE ME.  The following line checks you've been reading. */
1156 <        havent_read_conf = 1;
1157 <
1158 <        /*
1159 <         * max_targets: the maximum amount of targets in a single
1160 <         * PRIVMSG/NOTICE.  Set to 999 NOT 0 for unlimited.
1249 >         * max_targets: the maximum number of targets in a single
1250 >         * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1251           */
1252          max_targets = 4;
1253  
1254          /*
1255 <         * client_flood: maximum amount of data in a clients queue before
1166 <         * they are dropped for flooding.
1167 <         */
1168 <        client_flood = 2560 bytes;
1169 <
1170 <        /*
1171 <         * message_locale: the default message locale
1172 <         * Use "standard" for the compiled in defaults.
1173 <         * To install the translated messages, go into messages/ in the
1174 <         * source directory and run `make install'.
1175 <         */
1176 <        message_locale = "standard";
1177 <
1178 <        /*
1179 <         * usermodes configurable: a list of usermodes for the options below
1255 >         * user modes configurable: a list of user modes for the options below
1256           *
1257           * +b - bots         - See bot and drone flooding notices
1258           * +c - cconn        - Client connection/quit notices
1183         * +C - cconn_full   - Client connection/quit notices full
1259           * +D - deaf         - Don't receive channel messages
1260           * +d - debug        - See debugging notices
1261 <         * +f - full         - See I: line full notices
1261 >         * +e - external     - See remote server connection and split notices
1262 >         * +F - farconnect   - Remote client connection/quit notices
1263 >         * +f - full         - See auth {} block full notices
1264           * +G - softcallerid - Server Side Ignore for users not on your channels
1265           * +g - callerid     - Server Side Ignore (for privmsgs etc)
1266 <         * +i - invisible    - Not shown in NAMES or WHO unless you share a
1267 <         *                     a channel
1266 >         * +H - hidden       - Hides operator status to other users
1267 >         * +i - invisible    - Not shown in NAMES or WHO unless you share a channel
1268 >         * +j - rej          - See rejected client notices
1269           * +k - skill        - See server generated KILL messages
1270           * +l - locops       - See LOCOPS messages
1271           * +n - nchange      - See client nick changes
1272 <         * +r - rej          - See rejected client notices
1272 >         * +p - hidechans    - Hides channel list in WHOIS
1273 >         * +q - hideidle     - Hides idle and signon time in WHOIS
1274 >         * +R - nononreg     - Only receive private messages from registered clients
1275           * +s - servnotice   - See general server notices
1276           * +u - unauth       - See unauthorized client notices
1277           * +w - wallop       - See server generated WALLOPS
1198         * +x - external     - See remote server connection and split notices
1278           * +y - spy          - See LINKS, STATS, TRACE notices etc.
1200         * +z - operwall     - See oper generated WALLOPS
1201         */
1202
1203        /* oper_only_umodes: usermodes only opers may set */
1204        oper_only_umodes = bots, cconn, cconn_full, debug, full, skill,
1205                           nchange, rej, spy, external, operwall,
1206                           locops, unauth;
1207
1208        /* oper_umodes: default usermodes opers get when they /oper */
1209        oper_umodes = bots, locops, servnotice, operwall, wallop;
1210
1211        /*
1212         * servlink_path: path to 'servlink' program used by ircd to handle
1213         * encrypted/compressed server <-> server links.
1214         *
1215         * only define if servlink is not in same directory as ircd itself.
1279           */
1217        #servlink_path = "/usr/local/ircd/bin/servlink";
1280  
1281 <        /*
1282 <         * default_cipher_preference: default cipher to use for cryptlink when none is
1283 <         * specified in connect block.
1222 <         */
1223 <        #default_cipher_preference = "BF/168";
1281 >        /* oper_only_umodes: user modes only operators may set. */
1282 >        oper_only_umodes = bots, cconn, debug, external, farconnect, full, hidden, locops,
1283 >                        nchange, rej, skill, spy, unauth;
1284  
1285 <        /*
1286 <         * use_egd: if your system does not have *random devices yet you
1227 <         * want to use OpenSSL and encrypted links, enable this.  Beware -
1228 <         * EGD is *very* CPU intensive when gathering data for its pool
1229 <         */
1230 < #       use_egd = yes;
1285 >        /* oper_umodes: default user modes operators get when they /oper. */
1286 >        oper_umodes = bots, locops, servnotice, wallop;
1287  
1288          /*
1289 <         * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1290 <         * which automatically finds the path.
1289 >         * throttle_count: the maximum number of connections from the same
1290 >         * IP address allowed in throttle_time duration.
1291           */
1292 < #       egdpool_path = "/var/run/egd-pool";
1237 <
1292 >        throttle_count = 1;
1293  
1294          /*
1295 <         * compression_level: level of compression for compressed links between
1296 <         * servers.  
1297 <         *
1298 <         * values are between: 1 (least compression, fastest)
1244 <         *                and: 9 (most compression, slowest).
1245 <         */
1246 < #       compression_level = 6;
1247 <
1248 <        /*
1249 <         * throttle_time: the minimum amount of time between connections from
1250 <         * the same ip.  exempt {} blocks are excluded from this throttling.
1251 <         * Offers protection against flooders who reconnect quickly.  
1295 >         * throttle_time: the minimum amount of time required between
1296 >         * connections from the same IP address. exempt {} blocks are
1297 >         * excluded from this throttling.
1298 >         * Offers protection against flooders who reconnect quickly.
1299           * Set to 0 to disable.
1300           */
1301 <        throttle_time = 10;
1301 >        throttle_time = 2 seconds;
1302   };
1303  
1304 < glines {
1258 <        /* enable: enable glines, network wide temp klines */
1259 <        enable = yes;
1260 <
1261 <        /*
1262 <         * duration: the amount of time a gline will remain on your
1263 <         * server before expiring
1264 <         */
1265 <        duration = 1 day;
1266 <
1267 <        /*
1268 <         * logging: which types of rules you want to log when triggered
1269 <         * (choose reject or block)
1270 <         */
1271 <        logging = reject, block;
1272 <
1273 <        /*
1274 <         * NOTE: gline ACLs can cause a desync of glines throughout the
1275 <         * network, meaning some servers may have a gline triggered, and
1276 <         * others may not. Also, you only need insert rules for glines
1277 <         * that you want to block and/or reject. If you want to accept and
1278 <         * propagate the gline, do NOT put a rule for it.
1279 <         */
1280 <
1281 <        /* user@host for rule to apply to */
1282 <        user = "god@I.still.hate.packets";
1283 <        /* server for rule to apply to */
1284 <        name = "hades.arpa";
1285 <
1304 > modules {
1305          /*
1306 <         * action: action to take when a matching gline is found. options are:
1307 <         *  reject      - do not apply the gline locally
1289 <         *  block       - do not propagate the gline
1306 >         * path: other paths to search for modules specified below
1307 >         * and in "/module load".
1308           */
1309 <        action = reject, block;
1309 >        path = "lib/ircd-hybrid/modules";
1310 > #       path = "lib/ircd-hybrid/modules/extra";
1311 >        path = "lib/ircd-hybrid/modules/autoload";
1312  
1313 <        user = "god@*";
1314 <        name = "*";
1295 <        action = block;
1313 >        /* module: the name of a module to load on startup/rehash. */
1314 > #       module = "some_module.la";
1315   };
1316  
1317 < modules {
1318 <        /*
1319 <         * path: other paths to search for modules specified below
1320 <         * and in /modload.
1321 <         */
1322 <        path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1304 <        path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1317 > /*
1318 > * log {}:  contains information about logfiles.
1319 > */
1320 > log {
1321 >        /* Do you want to enable logging to ircd.log? */
1322 >        use_logging = yes;
1323  
1324 <        /* module: the name of a module to load on startup/rehash */
1325 <        #module = "some_module.la";
1324 >        file {
1325 >                type = oper;
1326 >                name = "var/log/oper.log";
1327 >                size = unlimited;
1328 >        };
1329 >
1330 >        file {
1331 >                type = user;
1332 >                name = "var/log/user.log";
1333 >                size = 50 megabytes;
1334 >        };
1335 >
1336 >        file {
1337 >                type = kill;
1338 >                name = "var/log/kill.log";
1339 >                size = 50 megabytes;
1340 >        };
1341 >
1342 >        file {
1343 >                type = kline;
1344 >                name = "var/log/kline.log";
1345 >                size = 50 megabytes;
1346 >        };
1347 >
1348 >        file {
1349 >                type = dline;
1350 >                name = "var/log/dline.log";
1351 >                size = 50 megabytes;
1352 >        };
1353 >
1354 >        file {
1355 >                type = xline;
1356 >                name = "var/log/xline.log";
1357 >                size = 50 megabytes;
1358 >        };
1359 >
1360 >        file {
1361 >                type = resv;
1362 >                name = "var/log/resv.log";
1363 >                size = 50 megabytes;
1364 >        };
1365 >
1366 >        file {
1367 >                type = debug;
1368 >                name = "var/log/debug.log";
1369 >                size = 50 megabytes;
1370 >        };
1371   };

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)