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-7.2/etc/example.conf.in (file contents), Revision 967 by michael, Sun Aug 2 18:05:28 2009 UTC vs.
ircd-hybrid/trunk/doc/reference.conf (file contents), Revision 1851 by michael, Wed Apr 24 18:31:06 2013 UTC

# Line 1 | Line 1
1 < /* doc/example.conf - ircd-hybrid-7 Example configuration file
2 < * Copyright (C) 2000-2009 Hybrid Development Team
1 > /* ircd-hybrid reference configuration file
2 > * Copyright (C) 2000-2013 Hybrid Development Team
3   *
4   * Written by ejb, wcampbel, db, leeh and others
5 * Other example configurations can be found in the source dir under
6 * etc/.
5   *
6   * $Id$
7   */
8  
9 < /* IMPORTANT NOTES:
9 > /*
10 > * ########################################################################
11 > * IMPORTANT NOTES:
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,
15   * then general access.
16 + * ########################################################################
17   *
18   * Shell style (#), C++ style (//) and C style comments are supported.
19   *
# Line 24 | Line 25
25   *        12 hours 30 minutes 1 second
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
# Line 32 | Line 33
33   * Sizes and times may be singular or plural.  
34   */
35  
36 < /* EFNET NOTE:
36 < *
37 < * This config file is NOT suitable for EFNet.  EFNet admins should use
38 < * example.efnet.conf
39 < */
40 <
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 our 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";
45  
# Line 53 | Line 49 | serverinfo {
49           * a digit, followed by 2 alpha-numerical letters.
50           * NOTE: The letters must be capitalized.  This cannot be changed at runtime.
51           */
52 <        sid = "_CHANGE_ME_";
52 >        sid = "0HY";
53  
54          /*
55 <         * description: the description of the server.  '[' and ']' may not
60 <         * be used here for compatibility with older servers.
55 >         * description: the description of the server.
56           */
57 <        description = "hybrid-7 test server";
57 >        description = "ircd-hybrid test server";
58  
59          /*
60           * network info: the name and description of the network this server
# Line 90 | Line 85 | serverinfo {
85          max_clients = 512;
86  
87          /*
88 +         * max_nick_length: only applies to local clients. Must be in the
89 +         * range of 9 to 30. Default is 9 if nothing else is specified.
90 +         */
91 +        max_nick_length = 9;
92 +
93 +        /*
94 +         * max_topic_length: only applies to topics set by local clients.
95 +         * Must be in the range of 80 to 300. Default is 80 if nothing
96 +         * else is specified.
97 +         */
98 +        max_topic_length = 160;
99 +
100 +        /*
101           * rsa_private_key_file: the path to the file containing our
102           * rsa key for cryptlink.
103           *
104           * Example command to store a 2048 bit RSA keypair in
105           * rsa.key, and the public key in rsa.pub:
106           *
107 <         *      openssl genrsa -out rsa.key 2048
107 >         *      openssl genrsa -out rsa.key 2048
108           *      openssl rsa -in rsa.key -pubout -out rsa.pub
109           *      chown <ircd-user>.<ircd.group> rsa.key rsa.pub
110           *      chmod 0600 rsa.key
# Line 106 | Line 114 | serverinfo {
114  
115          /*
116           * ssl_certificate_file: the path to the file containing our
117 <         * ssl certificate
110 <         * for encrypted client connection.
117 >         * ssl certificate for encrypted client connection.
118           *
119           * This assumes your private RSA key is stored in rsa.key. You
120           * MUST have an RSA key in order to generate the certificate
# Line 126 | Line 133 | serverinfo {
133          #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
134  
135          /*
136 <         * ssl_server_protocol:
137 <         * SSL/TLS protocols we provide for incoming secure connections.
136 >         * ssl_dh_param_file:
137 >         *
138 >         * Path to the PEM encoded Diffie-Hellman parameter file.
139 >         * DH parameters are strictly required when using ciphers
140 >         * with EDH (ephemeral Diffie-Hellman) key exchange.
141 >         *
142 >         * A DH parameter file can be created by running:
143 >         *
144 >         *      openssl dhparam -out dhparam.pem 1024
145 >         *
146 >         * Prime size must be at least 1024 bits. Further information
147 >         * regarding specific OpenSSL dhparam command-line options
148 >         * can be found in the OpenSSL manual.
149 >         */
150 >        #ssl_dh_param_file = "/usr/local/ircd/etc/dhparam.pem";
151 >
152 >        /*
153 >         * ssl_cipher_list:
154 >         *
155 >         * List of ciphers that are supported by _this_ server. Can be used to
156 >         * enforce specific ciphers for incoming SSL/TLS connections.
157 >         * If a client (which also includes incoming server connections) isn't
158 >         * capable of any cipher listed below, the connection will simply be
159 >         * rejected.
160 >         *
161 >         * A list of supported ciphers can be obtained by running:
162 >         *
163 >         *      openssl ciphers -ssl3 -tls1 -v
164 >         *
165 >         * Multiple ciphers are separated by colons. The order of preference is
166 >         * from left to right.
167 >         */
168 >        #ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
169 >
170 >        /*
171 >         * ssl_server_method:
172 >         * ssl_client_method:
173 >         *
174 >         * SSL/TLS methods we provide for incoming (server method) and
175 >         * outgoing (client method) SSL/TLS connections.
176           * This can be either sslv3 for SSLv3, and/or tlsv1 for TLSv1.
132         * SSLv2 is not suppported. This cannot be changed at runtime.
177           */
178 <        #ssl_server_protocol = sslv3, tlsv1;
178 >        #ssl_server_method = tlsv1, sslv3;
179 >        #ssl_client_method = tlsv1;
180   };
181  
182   /*
183 < * admin {}:  contains admin information about the server. (OLD A:)
183 > * admin {}:  contains admin information about the server
184   */
185   admin {
186          name = "Smurf target";
# Line 144 | Line 189 | admin {
189   };
190  
191   /*
192 < * log {}:  contains information about logfiles.
148 < */
149 < log {
150 <        /* Do you want to enable logging to ircd.log? */
151 <        use_logging = yes;
152 <
153 <        /*
154 <         * logfiles: the logfiles to use for user connects, /oper uses,
155 <         * and failed /oper.  These files must exist for logging to be used.
156 <         */
157 <        fname_userlog = "logs/userlog";
158 <        fname_operlog = "logs/operlog";
159 <        fname_killlog = "logs/kill";
160 <        fname_klinelog = "logs/kline";
161 <        fname_glinelog = "logs/gline";
162 <
163 <        /*
164 <         * log_level: the amount of detail to log in ircd.log.  The
165 <         * higher, the more information is logged.  May be changed
166 <         * once the server is running via /quote SET LOG.  Either:
167 <         * L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO or L_DEBUG
168 <         */
169 <        log_level = L_INFO;
170 < };
171 <
172 < /*
173 < * class {}:  contains information about classes for users (OLD Y:)
192 > * class {}:  contains information about classes for users
193   */
194   class {
195 <        /* name: the name of the class.  classes are text now */
195 >        /* name: the name of the class */
196          name = "users";
197  
198          /*
# Line 213 | Line 232 | class {
232          number_per_cidr = 16;
233  
234          /*
235 <         * sendq: the amount of data allowed in a clients queue before
235 >         * sendq: the amount of data allowed in a clients send queue before
236           * they are dropped.
237           */
238          sendq = 100 kbytes;
239 +
240 +        /*
241 +         * recvq: maximum amount of data in a clients receive queue before
242 +         * they are dropped for flooding. Defaults to 2560 if the chosen
243 +         * value isn't within the range of 512 to 8000.
244 +         */
245 +        recvq = 2560 bytes;
246   };
247  
248   class {
# Line 224 | Line 250 | class {
250          ping_time = 90 seconds;
251          number_per_ip = 10;
252          max_number = 100;
253 <        sendq = 100kbytes;
253 >        sendq = 100 kbytes;
254 >
255 >        /*
256 >         * min_idle: minimum idle time that is shown in /whois
257 >         */
258 >        min_idle = 3 hours;
259 >
260 >        /*
261 >         * max_idle: maximum idle time that is shown in /whois
262 >         */
263 >        max_idle = 8 hours;
264 >
265 >        /*
266 >         * flags:
267 >         *
268 >         * random_idle          - idle time is randomly selected within the
269 >         *                        range of min_idle to max_idle
270 >         * hide_idle_from_opers - fake idle time will be shown to operators, too
271 >         */
272 >        flags = random_idle, hide_idle_from_opers;
273   };
274  
275   class {
# Line 232 | Line 277 | class {
277          ping_time = 90 seconds;
278  
279          /*
235         * ping_warning: how fast a server must reply to a PING before
236         * a warning to opers is generated.
237         */
238        ping_warning = 15 seconds;
239
240        /*
280           * connectfreq: only used in server classes.  Specifies the delay
281           * between autoconnecting to servers.
282           */
# Line 251 | Line 290 | class {
290   };
291  
292   /*
293 < * listen {}:  contains information about the ports ircd listens on (OLD P:)
293 > * listen {}:  contains information about the ports ircd listens on
294   */
295   listen {
296          /*
# Line 272 | Line 311 | listen {
311           *
312           * Currently available flags are:
313           *
314 <         *  ssl    - Port is for SSL client connections only
314 >         *  ssl    - Port may only accept TLS/SSL connections
315           *  server - Only server connections are permitted
316 <         *  hidden - Port is hidden from /stats P
316 >         *  hidden - Port is hidden from /stats P, unless you're an admin
317           */
318          flags = hidden, ssl;
319          host = "192.168.0.1";
# Line 292 | Line 331 | listen {
331   };
332  
333   /*
334 < * auth {}:  allow users to connect to the ircd (OLD I:)
334 > * auth {}:  allow users to connect to the ircd
335   */
336   auth {
337          /*
338 <         * user: the user@host allowed to connect.  Multiple IPv4/IPv6 user
338 >         * user: the user@host allowed to connect. Multiple user
339           * lines are permitted per auth block.
340           */
341          user = "*@172.16.0.0/12";
# Line 321 | Line 360 | auth {
360          class = "opers";
361  
362          /*
363 <         * need_password: don't allow users who haven't supplied the correct
364 <         *                password to connect using another auth{} block
365 <         *                ('&' prefix on /stats I if disabled)
366 <         * need_ident:    require the user to have identd to connect ('+' prefix on /stats I)
367 <         * spoof_notice:  enable spoofing notification to admins
368 <         * exceed_limit:  allow a user to exceed class limits ('>' prefix on /stats I)
369 <         * kline_exempt:  exempt this user from k/glines ('^' prefix on /stats I)
370 <         * gline_exempt:  exempt this user from glines ('_' prefix on /stats I)
371 <         * resv_exempt:   exempt this user from resvs ('$' prefix on /stats I)
372 <         * no_tilde:      remove ~ from a user with no ident ('-' prefix on /stats I)
373 <         * can_flood:     allow this user to exceed flood limits ('|' prefix on /stats I)
374 <         * can_idle:      exempt this user from idle restrictions ('<' prefix on /stats I)
363 >         * need_password - don't allow users who haven't supplied the correct
364 >         *                 password to connect using another auth{} block
365 >         *                 ('&' prefix on /stats I if disabled)
366 >         * need_ident    - require the user to have identd to connect ('+' prefix on /stats I)
367 >         * spoof_notice  - enable spoofing notification to admins
368 >         * exceed_limit  - allow a user to exceed class limits ('>' prefix on /stats I)
369 >         * kline_exempt  - exempt this user from k/glines ('^' prefix on /stats I)
370 >         * gline_exempt  - exempt this user from glines ('_' prefix on /stats I)
371 >         * resv_exempt   - exempt this user from resvs ('$' prefix on /stats I)
372 >         * no_tilde      - remove ~ from a user with no ident ('-' prefix on /stats I)
373 >         * can_flood     - allow this user to exceed flood limits ('|' prefix on /stats I)
374 >         * webirc        - enables WEBIRC authentication for web-based clients such as Mibbit
375 >         *                 ('<' prefix on /stats I)
376           */
377          flags = need_password, spoof_notice, exceed_limit, kline_exempt,
378 <                gline_exempt, resv_exempt, no_tilde, can_flood, can_idle;
378 >                gline_exempt, resv_exempt, no_tilde, can_flood;
379   };
380  
381   auth {
# Line 360 | Line 400 | auth {
400   };
401  
402   /*
403 < * operator {}:  defines ircd operators. (OLD O:)
403 > * operator {}:  defines ircd operators
404   *
405   * ircd-hybrid no longer supports local operators, privileges are
406   * controlled via flags.
407   */
408   operator {
409          /* name: the name of the oper */
410 <        /* NOTE: operator "opername"{} is also supported */
371 <        name = "god";
410 >        name = "sheep";
411  
412          /*
413 <         * user: the user@host required for this operator.  CIDR is not
414 <         * supported.  Multiple user="" lines are supported.
413 >         * user: the user@host required for this operator. Multiple
414 >         * user="" lines are supported.
415           */
416 <        user = "*god@*";
417 <        user = "*@127.0.0.1";
416 >        user = "*sheep@192.168.0.0/16";
417 >        user = "*@127.0.0.0/8";
418  
419          /*
420           * password: the password required to oper.  By default this will
421 <         * need to be encrypted using 'mkpasswd'.  MD5 is supported.
421 >         * need to be encrypted by using the provided mkpasswd tool.
422 >         * Several password hash algorithms are available depending
423 >         * on your system's crypt() implementation. For example, a modern
424 >         * glibc already has support for SHA-256/512, and MD5 encryption
425 >         * algorithms.
426           */
427 <        password = "etcnjl8juSU1E";
427 >        password = "$5$x5zof8qe.Yc7/bPp$5zIg1Le2Lsgd4CvOjaD20pr5PmcfD7ha/9b2.TaUyG4";
428  
429          /*
430           * encrypted: controls whether the oper password above has been
431 <         * encrypted.  (OLD CRYPT_OPER_PASSWORD now optional per operator)
431 >         * encrypted.
432           */
433          encrypted = yes;
434  
# Line 409 | Line 452 | operator {
452           * +C - cconn_full   - Client connection/quit notices full
453           * +D - deaf         - Don't receive channel messages
454           * +d - debug        - See debugging notices
455 <         * +f - full         - See I: line full notices
455 >         * +e - external     - See remote server connection and split notices
456 >         * +f - full         - See auth{} block full notices
457           * +G - softcallerid - Server Side Ignore for users not on your channels
458           * +g - callerid     - Server Side Ignore (for privmsgs etc)
459 +         * +H - hidden       - Hides operator status to other users
460           * +i - invisible    - Not shown in NAMES or WHO unless you share a
461           *                     a channel
462 +         * +j - rej          - See rejected client notices
463           * +k - skill        - See server generated KILL messages
464           * +l - locops       - See LOCOPS messages
465           * +n - nchange      - See client nick changes
420         * +r - rej          - See rejected client notices
466           * +s - servnotice   - See general server notices
467           * +u - unauth       - See unauthorized client notices
468           * +w - wallop       - See server generated WALLOPS
424         * +x - external     - See remote server connection and split notices
469           * +y - spy          - See LINKS, STATS, TRACE notices etc.
470           * +z - operwall     - See oper generated WALLOPS
471           */
# Line 429 | Line 473 | operator {
473  
474          /*
475           * privileges: controls the activities and commands an oper is
476 <         * allowed to do on the server.  All options default to no.
476 >         * allowed to do on the server. All options default to no.
477           * Available options:
478           *
479 <         * global_kill:  allows remote users to be /KILL'd (OLD 'O' flag)
480 <         * remote:       allows remote SQUIT and CONNECT   (OLD 'R' flag)
481 <         * remoteban:    allows remote KLINE/UNKLINE
482 <         * kline:        allows KILL, KLINE and DLINE      (OLD 'K' flag)
483 <         * unkline:      allows UNKLINE and UNDLINE        (OLD 'U' flag)
484 <         * gline:        allows GLINE                      (OLD 'G' flag)
485 <         * xline:        allows XLINE                      (OLD 'X' flag)
486 <         * operwall:     allows OPERWALL
487 <         * nick_changes: allows oper to see nickchanges    (OLD 'N' flag)
488 <         *               via usermode +n
489 <         * rehash:       allows oper to REHASH config      (OLD 'H' flag)
490 <         * die:          allows DIE and RESTART            (OLD 'D' flag)
491 <         * admin:        gives admin privileges.  admins
492 <         *               may (un)load modules and see the
493 <         *               real IPs of servers.
494 <         * hidden_admin: same as 'admin', but noone can recognize you as
495 <         *               being an admin
496 <         * hidden_oper:  not shown in /stats p (except for other operators)
497 <         */
454 <        /* You can either use
455 <         * die = yes;
456 <         * rehash = yes;
457 <         *
458 <         * or in a flags statement i.e.
459 <         * flags = die, rehash;
460 <         *
461 <         * You can also negate a flag with ~ i.e.
462 <         * flags = ~remote;
463 <         *
479 >         * module       - allows MODULE
480 >         * global_kill  - allows remote users to be /KILL'd
481 >         * remote       - allows remote SQUIT and CONNECT
482 >         * remoteban    - allows remote KLINE/UNKLINE
483 >         * dline        - allows DLINE
484 >         * undline      - allows UNDLINE
485 >         * kline        - allows KILL and KLINE
486 >         * unkline      - allows UNKLINE
487 >         * gline        - allows GLINE
488 >         * xline        - allows XLINE
489 >         * globops      - allows GLOBOPS
490 >         * operwall     - allows OPERWALL
491 >         * nick_changes - allows oper to see nickchanges via usermode +n
492 >         * rehash       - allows oper to REHASH config
493 >         * die          - allows DIE
494 >         * restart      - allows RESTART
495 >         * set          - allows SET
496 >         * admin        - gives admin privileges. admins for example,
497 >         *                may see the real IP addresses of servers.
498           */
499 <        flags = global_kill, remote, kline, unkline, xline,
500 <                die, rehash, nick_changes, admin, operwall;
499 >        flags = global_kill, remote, kline, unkline, xline, globops, restart,
500 >                die, rehash, nick_changes, admin, operwall, module;
501   };
502  
503   /*
504 < * connect {}:  controls servers we connect to (OLD C:, N:, H:, L:)
504 > * service {}: specifies what server may act as a network service
505 > *
506 > * NOTE: it is absolutely important that every single server on the network
507 > *       has the same service{} block.
508 > */
509 > service {
510 >        name = "service.someserver";
511 >        name = "stats.someserver";
512 > };
513 >
514 > /*
515 > * connect {}:  controls servers we connect to
516   */
517   connect {
518          /* name: the name of the server */
# Line 495 | Line 540 | connect {
540  
541          /*
542           * encrypted: controls whether the accept_password above has been
543 <         * encrypted.  (OLD CRYPT_LINK_PASSWORD now optional per connect)
543 >         * encrypted.
544           */
545          encrypted = no;
546  
# Line 514 | Line 559 | connect {
559           */
560   #       leaf_mask = "*.uk";
561  
517        /* fakename: the servername we pretend to be when we connect */
518 #       fakename = "*.arpa";
519
562          /* class: the class this server is in */
563          class = "server";
564  
565          /*
566 <         * autoconn:    controls whether we autoconnect to this server or not,
567 <         *              dependent on class limits.  By default, this is disabled.
568 <         * compressed:  controls whether traffic is compressed via ziplinks.
569 <         *              By default, this is disabled
570 <         * cryptlink:   enable full encryption for all data passing between our
571 <         *              server and this link and rsa authentication.
572 <         * burst_away:  This will send the /away string that users have set
573 <         *              on the server burst.  Note this can be a lot of data
574 <         *              and slow down your server burst.
575 <         * topicburst:  Send topics to this server during channel burst.  Works
534 <         *              only if the server we are connecting to is capable
535 <         *              of TBURST/TB.
536 <         */
537 < #       flags = autoconn, compressed, cryptlink, burst_away, topicburst;
538 < };
539 <
540 < connect {
541 <        name = "encrypted.auth.example";
542 <        host = "some.host.somewhere";
543 <        port = 6667;
544 <
545 <        flags = cryptlink;
546 <
547 <        /*
548 <         * rsa_public_key_file: the path to the public keyfile of the server.
549 <         * Used instead of passwords.
566 >         * ssl_cipher_list:
567 >         *
568 >         * List of ciphers that the server we are connecting to must support.
569 >         * If the server isn't capable of any cipher listed below, the
570 >         * connection will simply be rejected.
571 >         * Can be used to enforce stronger ciphers, even though this option
572 >         * is not necessarily required to establish a SSL/TLS connection.
573 >         *
574 >         * Multiple ciphers are separated by colons. The order of preference
575 >         * is from left to right.
576           */
577 <        rsa_public_key_file = "etc/remote.server.keyfile";
577 >        #ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
578  
579          /*
580 <         * cipher preference: set the preferred cipher for this link
581 <         *
582 <         * Available ciphers are:
557 <         *      BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
558 <         *      RC5.12/128 RC5.8/128 3DES/168 DES/56
559 <         *
560 <         * NOTE:  Some ciphers may not be supported by your OpenSSL.
561 <         *        Check the output from 'configure' for available ciphers.
562 <         *
563 <         * NOTE2: To help you decide what cipher to use, tools/encspeed
564 <         *        will show you approximately how fast each cipher is.
565 <         *        However, blowfish is fast and secure, and is probably
566 <         *        a good default for most situations.
567 <         *
568 <         * NOTE3: Default if none is set is BF/128
569 <         *
570 <         * The cipher *MUST* be the same in both directions.  If you
571 <         * set a cipher preference, your uplink must set the same cipher,
572 <         * else it will not link.
580 >         * autoconn   - controls whether we autoconnect to this server or not,
581 >         *              dependent on class limits. By default, this is disabled.
582 >         * ssl        - Initiates a TLS/SSL connection.
583           */
584 < #       cipher_preference = "BF/168";
584 > #       flags = autoconn, ssl;
585   };
586  
587 < /*
588 < * NOTE: Don't add an extra 'name=' entry if you use
579 < * the connect "name"{} feature
580 < */
581 < connect "ipv6.some.server" {
587 > connect {
588 >        name = "ipv6.some.server";
589          host = "3ffd:dead:beef::1";
590          send_password = "password";
591          accept_password = "password";
# Line 594 | Line 601 | connect "ipv6.some.server" {
601  
602   /*
603   * cluster {}:  servers that share klines/unkline/xline/unxline/resv/unresv/locops
604 < * automatically (OLD hyb6 SLAVE_SERVERS)
604 > * automatically
605   */
606   cluster {
607          /*
# Line 612 | Line 619 | cluster {
619  
620          /*
621           * type: list of what to share, options are as follows:
622 <         *      kline   - share klines
623 <         *      tkline  - share temporary klines
624 <         *      unkline - share unklines
625 <         *      xline   - share xlines
626 <         *      txline  - share temporary xlines
627 <         *      unxline - share unxlines
628 <         *      resv    - share resvs
629 <         *      tresv   - share temporary resvs
630 <         *      unresv  - share unresvs
631 <         *      locops  - share locops
625 <         *      all     - share all of the above (default)
622 >         *      dline   - share dlines
623 >         *      undline - share undlines
624 >         *      kline   - share klines
625 >         *      unkline - share unklines
626 >         *      xline   - share xlines
627 >         *      unxline - share unxlines
628 >         *      resv    - share resvs
629 >         *      unresv  - share unresvs
630 >         *      locops  - share locops
631 >         *      all     - share all of the above (default)
632           */
633          type = kline, unkline, locops, xline, resv;
634   };
635  
636   /*
637 < * shared {}: users that are allowed to remote kline (OLD U:)
637 > * shared {}: users that are allowed to remote kline
638   *
639   * NOTE: This can be effectively used for remote klines.
640   *       Please note that there is no password authentication
# Line 651 | Line 657 | shared {
657  
658          /*
659           * type: list of what to share, options are as follows:
660 <         *      kline   - allow oper/server to kline
661 <         *      tkline  - allow temporary klines
662 <         *      unkline - allow oper/server to unkline
663 <         *      xline   - allow oper/server to xline
664 <         *      txline  - allow temporary xlines
665 <         *      unxline - allow oper/server to unxline
666 <         *      resv    - allow oper/server to resv
667 <         *      tresv   - allow temporary resvs
662 <         *      unresv  - allow oper/server to unresv
660 >         *      dline   - allow oper/server to dline
661 >         *      undline - allow oper/server to undline
662 >         *      kline   - allow oper/server to kline
663 >         *      unkline - allow oper/server to unkline
664 >         *      xline   - allow oper/server to xline
665 >         *      unxline - allow oper/server to unxline
666 >         *      resv    - allow oper/server to resv
667 >         *      unresv  - allow oper/server to unresv
668           *      locops  - allow oper/server to locops - only used for servers that cluster
669 <         *      all     - allow oper/server to do all of the above (default)
669 >         *      all     - allow oper/server to do all of the above (default)
670           */
671          type = kline, unkline, resv;
672   };
673  
674   /*
675 < * kill {}:  users that are not allowed to connect (OLD K:)
675 > * kill {}:  users that are not allowed to connect
676   * Oper issued klines will be added to the specified kline config
677   */
678   kill {
# Line 695 | Line 700 | deny {
700   };
701  
702   /*
703 < * exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:)
703 > * exempt {}: IPs that are exempt from deny {} and Dlines
704   */
705   exempt {
706          ip = "192.168.0.0/16";
707   };
708  
709   /*
710 < * resv {}:  nicks and channels users may not use/join (OLD Q:)
710 > * resv {}:  nicks and channels users may not use/join
711   */
712 < resv {
713 <        /* reason: the reason for the proceeding resv's */
714 <        reason = "There are no services on this network";
715 <
716 <        /* resv: the nicks and channels users may not join/use */
717 <        nick = "nickserv";
718 <        nick = "chanserv";
719 <        channel = "#services";
720 <
716 <        /* resv: wildcard masks are also supported in nicks only */
717 <        reason = "Clone bots";
718 <        nick = "clone*";
719 < };
712 > resv { nick = "clone*"; reason = "Clone bots"; };
713 > resv { nick = "NickServ"; reason = "Reserved for services"; };
714 > resv { nick = "OperServ"; reason = "Reserved for services"; };
715 > resv { nick = "MemoServ"; reason = "Reserved for services"; };
716 > resv { nick = "BotServ"; reason = "Reserved for services"; };
717 > resv { nick = "HelpServ"; reason = "Reserved for services"; };
718 > resv { nick = "HostServ"; reason = "Reserved for services"; };
719 > resv { nick = "StatServ"; reason = "Reserved for services"; };
720 > resv { channel = "#*services*"; reason = "Reserved for services"; };
721  
722   /*
723   * gecos {}:  The X: replacement, used for banning users based on
# Line 733 | Line 734 | gecos {
734   };
735  
736   gecos {
736        name = "*http*";
737        reason = "Spambot";
738 };
739
740 gecos {
737          name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
738  
739          /*
# Line 760 | Line 756 | channel {
756           *   3 | mirc color
757           *  15 | plain text
758           *  22 | reverse
759 +         *  29 | italic
760           *  31 | underline
761           * 160 | non-breaking space
762           */
# Line 772 | Line 769 | channel {
769          restrict_channels = no;
770  
771          /*
775         * disable_local_channels: prevent users from joining &channels.
776         */
777        disable_local_channels = no;
778
779        /*
780         * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
781         * that can join a +i channel without an invite.
782         */
783        use_invex = yes;
784
785        /*
786         * use_except: Enable/disable channel mode +e, a n!u@h list of masks
787         * that can join a channel through a ban (+b).
788         */
789        use_except = yes;
790
791        /*
792         * use_knock: Allows users to request an invite to a channel that
793         * is locked somehow (+ikl).  If the channel is +p or you are banned
794         * the knock will not be sent.
795         */
796        use_knock = yes;
797
798        /*
772           * knock_delay: The amount of time a user must wait between issuing
773           * the knock command.
774           */
# Line 808 | Line 781 | channel {
781          knock_delay_channel = 1 minute;
782  
783          /*
784 <         * burst_topicwho: enable sending of who set topic on topicburst
785 <         * default is yes
784 >         * max_chans_per_user: The maximum number of channels a user can
785 >         * join/be on.
786           */
787 <        burst_topicwho = yes;
787 >        max_chans_per_user = 25;
788  
789          /*
790 <         * max_chans_per_user: The maximum number of channels a user can
790 >         * max_chans_per_oper: The maximum number of channels an oper can
791           * join/be on.
792           */
793 <        max_chans_per_user = 25;
793 >        max_chans_per_oper = 50;
794  
795          /* quiet_on_ban: stop banned people talking in channels. */
796          quiet_on_ban = yes;
797  
798          /* max_bans: maximum number of +b/e/I modes in a channel */
799 <        max_bans = 25;
799 >        max_bans = 100;
800  
801          /*
802           * how many joins in how many seconds constitute a flood, use 0 to
# Line 884 | Line 857 | serverhide {
857          hidden = no;
858  
859          /*
887         * disable_hidden: prevent servers hiding themselves from a
888         * /links output.
889         */
890        disable_hidden = no;
891
892        /*
860           * hide_servers: hide remote servernames everywhere and instead use
861           * hidden_name and network_desc.
862           */
863          hide_servers = no;
864  
865 +
866 +        /*
867 +         * hide_services: define this if you want to hide the location of
868 +         * services servers thar are specified service{} block.
869 +         */
870 +        hide_services = no;
871 +
872          /*
873           * Use this as the servername users see if hide_servers = yes.
874           */
# Line 910 | Line 884 | serverhide {
884           * logfiles.
885           *
886           * We recommend you leave this disabled, and just take care with who you
887 <         * give admin=yes; to.
887 >         * give administrator privileges to.
888           */
889          hide_server_ips = no;
890   };
891  
892   /*
893   * general {}:  The general block contains many of the options that were once
894 < * compiled in options in config.h.  The general block is read at start time.
894 > * compiled in options in config.h
895   */
896   general {
897 +        /* services_name: servername of nick/channel services */
898 +        services_name = "service.someserver";
899 +
900          /* max_watch: maximum WATCH entries a client can have. */
901 <        max_watch = 64;
901 >        max_watch = 60;
902 >
903 >        /* gline_enable: enable glines, network wide temp klines */
904 >        gline_enable = yes;
905 >
906 >        /*
907 >         * gline_duration: the amount of time a gline will remain on your
908 >         * server before expiring
909 >         */
910 >        gline_duration = 1 day;
911 >
912 >        /*
913 >         * gline_request_duration:  how long a pending G-line can be around.
914 >         * 10 minutes should be plenty
915 >         */
916 >        gline_request_duration = 10 minutes;
917  
918          /*
919           * gline_min_cidr: the minimum required length of a CIDR bitmask
# Line 941 | Line 933 | general {
933          invisible_on_connect = yes;
934  
935          /*
944         * If you don't explicitly specify burst_away in your connect blocks, then
945         * they will default to the burst_away value below.
946         */
947        burst_away = no;
948
949        /*
950         * Show "actually using host <ip>" on /whois when possible.
951         */
952        use_whois_actually = yes;
953
954        /*
936           * Max time from the nickname change that still causes KILL
937 <         * automatically to switch for the current nick of that user. (seconds)
937 >         * automatically to switch for the current nick of that user.
938           */
939 <        kill_chase_time_limit = 90;
939 >        kill_chase_time_limit = 90 seconds;
940  
941          /*
942 <         * If hide_spoof_ips is disabled, opers will be allowed to see the real IP of spoofed
943 <         * users in /trace etc.  If this is defined they will be shown a masked IP.
942 >         * If hide_spoof_ips is disabled, opers will be allowed to see the real
943 >         * IP of spoofed users in /trace etc. If this is defined they will be
944 >         * shown a masked IP.
945           */
946          hide_spoof_ips = yes;
947  
# Line 1006 | Line 988 | general {
988          dots_in_ident = 2;
989  
990          /*
1009         * dot_in_ip6_addr: ircd-hybrid-6.0 and earlier will disallow hosts
1010         * without a '.' in them.  This will add one to the end.  Only needed
1011         * for older servers.
1012         */
1013        dot_in_ip6_addr = no;
1014
1015        /*
991           * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
992           * placed via the server.  klines hand placed are exempt from limits.
993           * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
# Line 1050 | Line 1025 | general {
1025          ts_max_delta = 5 minutes;
1026  
1027          /*
1053         * kline_with_reason: show the user the reason why they are k/d/glined
1054         * on exit.  May give away who set k/dline when set via tcm.
1055         */
1056        kline_with_reason = yes;
1057
1058        /*
1059         * kline_reason: show this message to users on channel
1060         * instead of the oper reason.
1061         */
1062        kline_reason = "Connection closed";
1063
1064        /*
1065         * reject_hold_time: wait this amount of time before disconnecting
1066         * a rejected client. Use 0 to disable.
1067         */
1068        reject_hold_time = 0;
1069
1070        /*
1028           * warn_no_nline: warn opers about servers that try to connect but
1029           * we don't have a connect {} block for.  Twits with misconfigured
1030           * servers can get really annoying with this enabled.
# Line 1124 | Line 1081 | general {
1081  
1082          /*
1083           * pace_wait: time between more intensive commands
1084 <         * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1084 >         * (AWAY, INFO, LINKS, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1085           */
1086          pace_wait = 10 seconds;
1087  
# Line 1152 | Line 1109 | general {
1109          /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1110          oper_pass_resv = yes;
1111  
1155        /*
1156         * idletime: the maximum amount of time a user may idle before
1157         * they are disconnected
1158         */
1159        idletime = 0;
1160
1112          /* REMOVE ME.  The following line checks you've been reading. */
1113          havent_read_conf = 1;
1114  
# Line 1168 | Line 1119 | general {
1119          max_targets = 4;
1120  
1121          /*
1171         * client_flood: maximum amount of data in a clients queue before
1172         * they are dropped for flooding.
1173         */
1174        client_flood = 2560 bytes;
1175
1176        /*
1177         * message_locale: the default message locale
1178         * Use "standard" for the compiled in defaults.
1179         * To install the translated messages, go into messages/ in the
1180         * source directory and run `make install'.
1181         */
1182        message_locale = "standard";
1183
1184        /*
1122           * usermodes configurable: a list of usermodes for the options below
1123           *
1124           * +b - bots         - See bot and drone flooding notices
# Line 1189 | Line 1126 | general {
1126           * +C - cconn_full   - Client connection/quit notices full
1127           * +D - deaf         - Don't receive channel messages
1128           * +d - debug        - See debugging notices
1129 <         * +f - full         - See I: line full notices
1129 >         * +e - external     - See remote server connection and split notices
1130 >         * +f - full         - See auth{} block full notices
1131           * +G - softcallerid - Server Side Ignore for users not on your channels
1132           * +g - callerid     - Server Side Ignore (for privmsgs etc)
1133 +         * +H - hidden       - Hides operator status to other users
1134           * +i - invisible    - Not shown in NAMES or WHO unless you share a
1135           *                     a channel
1136 +         * +j - rej          - See rejected client notices
1137           * +k - skill        - See server generated KILL messages
1138           * +l - locops       - See LOCOPS messages
1139           * +n - nchange      - See client nick changes
1200         * +r - rej          - See rejected client notices
1140           * +s - servnotice   - See general server notices
1141           * +u - unauth       - See unauthorized client notices
1142           * +w - wallop       - See server generated WALLOPS
1204         * +x - external     - See remote server connection and split notices
1143           * +y - spy          - See LINKS, STATS, TRACE notices etc.
1144           * +z - operwall     - See oper generated WALLOPS
1145           */
1146  
1147          /* oper_only_umodes: usermodes only opers may set */
1148 <        oper_only_umodes = bots, cconn, cconn_full, debug, full, skill,
1148 >        oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1149                             nchange, rej, spy, external, operwall,
1150                             locops, unauth;
1151  
# Line 1215 | Line 1153 | general {
1153          oper_umodes = bots, locops, servnotice, operwall, wallop;
1154  
1155          /*
1218         * servlink_path: path to 'servlink' program used by ircd to handle
1219         * encrypted/compressed server <-> server links.
1220         *
1221         * only define if servlink is not in same directory as ircd itself.
1222         */
1223        #servlink_path = "/usr/local/ircd/bin/servlink";
1224
1225        /*
1226         * default_cipher_preference: default cipher to use for cryptlink when none is
1227         * specified in connect block.
1228         */
1229        #default_cipher_preference = "BF/168";
1230
1231        /*
1156           * use_egd: if your system does not have *random devices yet you
1157           * want to use OpenSSL and encrypted links, enable this.  Beware -
1158           * EGD is *very* CPU intensive when gathering data for its pool
# Line 1241 | Line 1165 | general {
1165           */
1166   #       egdpool_path = "/var/run/egd-pool";
1167  
1244
1245        /*
1246         * compression_level: level of compression for compressed links between
1247         * servers.  
1248         *
1249         * values are between: 1 (least compression, fastest)
1250         *                and: 9 (most compression, slowest).
1251         */
1252 #       compression_level = 6;
1253
1168          /*
1169           * throttle_time: the minimum amount of time between connections from
1170           * the same ip.  exempt {} blocks are excluded from this throttling.
# Line 1260 | Line 1174 | general {
1174          throttle_time = 10;
1175   };
1176  
1263 glines {
1264        /* enable: enable glines, network wide temp klines */
1265        enable = yes;
1266
1267        /*
1268         * duration: the amount of time a gline will remain on your
1269         * server before expiring
1270         */
1271        duration = 1 day;
1272
1273        /*
1274         * logging: which types of rules you want to log when triggered
1275         * (choose reject or block)
1276         */
1277        logging = reject, block;
1278
1279        /*
1280         * NOTE: gline ACLs can cause a desync of glines throughout the
1281         * network, meaning some servers may have a gline triggered, and
1282         * others may not. Also, you only need insert rules for glines
1283         * that you want to block and/or reject. If you want to accept and
1284         * propagate the gline, do NOT put a rule for it.
1285         */
1286
1287        /* user@host for rule to apply to */
1288        user = "god@I.still.hate.packets";
1289        /* server for rule to apply to */
1290        name = "hades.arpa";
1291
1292        /*
1293         * action: action to take when a matching gline is found. options are:
1294         *  reject      - do not apply the gline locally
1295         *  block       - do not propagate the gline
1296         */
1297        action = reject, block;
1298
1299        user = "god@*";
1300        name = "*";
1301        action = block;
1302 };
1303
1177   modules {
1178          /*
1179           * path: other paths to search for modules specified below
1180 <         * and in /modload.
1180 >         * and in "/module load".
1181           */
1182 <        path = "@LIBDIR@/modules";
1183 <        path = "@LIBDIR@/modules/autoload";
1182 >        path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1183 >        path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1184  
1185          /* module: the name of a module to load on startup/rehash */
1186          #module = "some_module.la";
1187   };
1188 +
1189 + /*
1190 + * log {}:  contains information about logfiles.
1191 + */
1192 + log {
1193 +        /* Do you want to enable logging to ircd.log? */
1194 +        use_logging = yes;
1195 +
1196 +        file {
1197 +                type = oper;
1198 +                name = "/home/ircd/var/log/oper.log";
1199 +                size = unlimited;
1200 +        };
1201 +
1202 +        file {
1203 +                type = user;
1204 +                name = "/home/ircd/var/log/user.log";
1205 +                size = 50 megabytes;
1206 +        };
1207 +
1208 +        file {
1209 +                type = kill;
1210 +                name = "/home/ircd/var/log/kill.log";
1211 +                size = 50 megabytes;
1212 +        };
1213 +
1214 +        file {
1215 +                type = kline;
1216 +                name = "/home/ircd/var/log/kline.log";
1217 +                size = 50 megabytes;
1218 +        };
1219 +
1220 +        file {
1221 +                type = dline;
1222 +                name = "/home/ircd/var/log/dline.log";
1223 +                size = 50 megabytes;
1224 +        };
1225 +
1226 +        file {
1227 +                type = gline;
1228 +                name = "/home/ircd/var/log/gline.log";
1229 +                size = 50 megabytes;
1230 +        };
1231 +
1232 +        file {
1233 +                type = debug;
1234 +                name = "/home/ircd/var/log/debug.log";
1235 +                size = 50 megabytes;
1236 +        };
1237 + };

Diff Legend

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