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

Comparing ircd-hybrid/branches/8.2.x/doc/reference.conf (file contents):
Revision 3876 by michael, Fri Jun 6 15:42:52 2014 UTC vs.
Revision 5622 by michael, Fri Feb 27 19:19:45 2015 UTC

# Line 1 | Line 1
1   /*
2   * This is an example configuration file for ircd-hybrid
3   *
4 < * Copyright (c) 2000-2014 ircd-hybrid development team
4 > * Copyright (c) 2000-2015 ircd-hybrid development team
5   *
6   * $Id$
7   */
# Line 10 | Line 10
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   *
# Line 58 | Line 58 | serverinfo {
58          description = "ircd-hybrid test server";
59  
60          /*
61 <         * network info: the name and description of the network this server
62 <         * is on. Shown in the 005 reply and used with serverhiding.
61 >         * network_name, network_desc: the name and description of the network this
62 >         * server is on. Shown in the 005 reply and used with serverhiding.
63           */
64          network_name = "MyNet";
65          network_desc = "This is My Network";
# Line 82 | Line 82 | serverinfo {
82           */
83   #       vhost6 = "3ffe:80e8:546::2";
84  
85 <        /* max_clients: the maximum number of clients allowed to connect. */
86 <        max_clients = 512;
85 >        /*
86 >         * default_max_clients: the default maximum number of clients allowed
87 >         * to connect. This can be changed from within IRC via /QUOTE SET MAX.
88 >         */
89 >        default_max_clients = 512;
90  
91          /*
92           * max_nick_length: only applies to local clients. Must be in the
# Line 108 | Line 111 | serverinfo {
111           *      chown <ircd-user>.<ircd.group> rsa.key
112           *      chmod 0600 rsa.key
113           */
114 < #       rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
114 > #       rsa_private_key_file = "etc/rsa.key";
115  
116          /*
117           * ssl_certificate_file: the path to the file containing our
# Line 130 | Line 133 | serverinfo {
133           *      Common Name: irc.someirc.net
134           *      E-mail: you@domain.com
135           */
136 < #       ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
136 > #       ssl_certificate_file = "etc/cert.pem";
137  
138          /*
139 <         * ssl_dh_param_file:
140 <         *
141 <         * Path to the PEM encoded Diffie-Hellman parameter file.
139 <         * DH parameters are required when using ciphers with EDH
140 <         * (ephemeral Diffie-Hellman) key exchange.
139 >         * ssl_dh_param_file: path to the PEM encoded Diffie-Hellman
140 >         * parameter file. DH parameters are required when using
141 >         * ciphers with EDH (ephemeral Diffie-Hellman) key exchange.
142           *
143           * A DH parameter file can be created by running:
144           *
# Line 147 | Line 148 | serverinfo {
148           * regarding specific OpenSSL dhparam command-line options
149           * can be found in the OpenSSL manual.
150           */
151 < #       ssl_dh_param_file = "/usr/local/ircd/etc/dhparam.pem";
151 > #       ssl_dh_param_file = "etc/dhparam.pem";
152  
153          /*
154 <         * ssl_cipher_list:
154 >         * ssl_dh_elliptic_curve: defines the curve to use for the
155 >         * Elliptic Curve Diffie-Hellman (ECDH) algorithm.
156 >         * Default is ANSI X9.62 prime256v1/secp256r1 if nothing else is specified.
157 >         *
158 >         * A list of supported curves by OpenSSL can be obtained by running:
159           *
160 <         * List of ciphers to support on _this_ server. Can be used to
161 <         * enforce specific ciphers for incoming SSL/TLS connections.
162 <         * If a client (which also includes incoming server connections) is not
163 <         * capable of using any of the ciphers listed here, the connection will
160 >         *      openssl ecparam -list_curves
161 >         */
162 > #       ssl_dh_elliptic_curve = "secp521r1";
163 >
164 >        /*
165 >         * ssl_cipher_list: list of ciphers to support on _this_ server.
166 >         * Can be used to enforce specific ciphers for incoming SSL/TLS
167 >         * connections. If a client (which also includes incoming server connections)
168 >         * is not capable of using any of the ciphers listed here, the connection will
169           * simply be rejected.
170           *
171           * A list of supported ciphers by OpenSSL can be obtained by running:
# Line 168 | Line 178 | serverinfo {
178   #       ssl_cipher_list = "ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA:AES256-SHA";
179  
180          /*
181 <         * ssl_server_method:
182 <         * ssl_client_method:
181 >         * ssl_message_digest_algorithm: defines what cryptographic hash function
182 >         * to use for generating fingerprint hashes of X.509 certificates.
183 >         * Default is SHA-256 if nothing else is specified.
184 >         *
185 >         * A list of supported message digest algorithms by OpenSSL can be obtained by running:
186           *
187 <         * 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.
187 >         *      openssl list-message-digest-algorithms
188           */
189 < #       ssl_server_method = tlsv1, sslv3;
179 < #       ssl_client_method = tlsv1;
189 > #       ssl_message_digest_algorithm = "sha256";
190   };
191  
192   /*
193 < * admin {}:  contains admin information about the server
193 > * admin {}:  contains administrative information about the server
194   */
195   admin {
196          name = "Smurf target";
# Line 203 | Line 213 | class {
213  
214          /*
215           * number_per_ip: how many local users are allowed to connect
216 <         * from a single IP address  (optional)
216 >         * from a single IP address (optional)
217           */
218          number_per_ip = 2;
219  
220          /*
221           * max_local: how many local users are allowed to connect
222 <         * from a single ident@host  (optional)
222 >         * from a single ident@host (optional)
223           */
224          max_local = 2;
225  
226          /*
227 <         * max_global: network-wide limit of users per ident@host  (optional)
227 >         * max_global: network-wide limit of users per ident@host (optional)
228           */
229          max_global = 10;
230  
# Line 224 | Line 234 | class {
234          max_number = 100;
235  
236          /*
237 <         * the following lines are optional and allow you to define
237 >         * The following lines are optional and allow you to define
238           * how many users can connect from one /NN subnet.
239           */
240          cidr_bitlen_ipv4 = 24;
# Line 239 | Line 249 | class {
249  
250          /*
251           * recvq: the amount of data allowed in a client's receive queue before
252 <         * they are dropped for flooding. Defaults to 2560 if the chosen
253 <         * value isn't within the range of 512 to 8000.
252 >         * they are dropped for flooding. Defaults to 2560 if the chosen value
253 >         * isn't within the range of 512 to 8000.
254           */
255          recvq = 2560 bytes;
256   };
# Line 253 | Line 263 | class {
263          sendq = 100 kbytes;
264  
265          /*
266 +         * max_channels: maximum number of channels users in this class can join.
267 +         */
268 +        max_channels = 60;
269 +
270 +        /*
271           * min_idle: minimum idle time that is shown in /whois.
272           */
273          min_idle = 3 hours;
# Line 305 | Line 320 | motd {
320          /*
321           * file: path to the actual motd file.
322           */
323 <        file = "/usr/local/ircd/etc/german.motd";
323 >        file = "etc/german.motd";
324   };
325  
326   /*
# Line 319 | Line 334 | listen {
334           * Ports are separated by commas; a range may be specified using ".."
335           */
336  
337 <        /* port: listen on all available IP addresses, ports 6665 to 6669 */
337 >        /* port: listen on all available IP addresses, ports 6665 to 6669. */
338          port = 6665 .. 6669;
339  
340          /*
# Line 339 | Line 354 | listen {
354          port = 6697;
355  
356          /*
357 <         * host: set a specific IP address/host to listen on using the
357 >         * host: set a specific IP address to listen on using the
358           * subsequent port definitions. This may be IPv4 or IPv6.
359           */
360          host = "1.2.3.4";
# Line 355 | Line 370 | listen {
370   auth {
371          /*
372           * user: the user@host allowed to connect. Multiple user
373 <         * lines are permitted within each auth block.
373 >         * lines are permitted within each auth {} block.
374           */
375          user = "*@172.16.0.0/12";
376          user = "*test@123D:B567:*";
377  
378 <        /* password: an optional password that is required to use this block */
378 >        /* password: an optional password that is required to use this block. */
379          password = "letmein";
380  
381          /*
382           * encrypted: controls whether the auth password above has been
383 <         * encrypted.
383 >         * encrypted. Default is 'no' if nothing else is specified.
384           */
385          encrypted = yes;
386  
# Line 375 | Line 390 | auth {
390           */
391          spoof = "I.still.hate.packets";
392  
393 <        /* class: the class the user is placed in */
393 >        /* class: the class the user is placed in. */
394          class = "opers";
395  
396          /*
397 <         * need_password - don't allow users who haven't supplied the correct
398 <         *                 password to connect using another auth{} block
399 <         *                 ('&' prefix on /stats I if disabled)
385 <         * need_ident    - require the user to have identd to connect ('+' prefix on /stats I)
397 >         * need_password - don't allow users who haven't supplied the correct  | ('&' prefix on /stats I if disabled)
398 >         *                 password to connect using another auth {} block
399 >         * need_ident    - require the user to have identd to connect          | ('+' prefix on /stats I)
400           * spoof_notice  - enable spoofing notification to admins
401 <         * exceed_limit  - allow a user to exceed class limits ('>' prefix on /stats I)
402 <         * kline_exempt  - exempt this user from k/glines ('^' prefix on /stats I)
403 <         * gline_exempt  - exempt this user from glines ('_' prefix on /stats I)
404 <         * resv_exempt   - exempt this user from resvs ('$' prefix on /stats I)
405 <         * no_tilde      - remove ~ from a user with no ident ('-' prefix on /stats I)
406 <         * can_flood     - allow this user to exceed flood limits ('|' prefix on /stats I)
407 <         * webirc        - enables WEBIRC authentication for web-based clients such as Mibbit
408 <         *                 ('<' prefix on /stats I)
401 >         * exceed_limit  - allow a user to exceed class limits                 | ('>' prefix on /stats I)
402 >         * kline_exempt  - exempt this user from k/glines                      | ('^' prefix on /stats I)
403 >         * gline_exempt  - exempt this user from glines                        | ('_' prefix on /stats I)
404 >         * resv_exempt   - exempt this user from resvs                         | ('$' prefix on /stats I)
405 >         * no_tilde      - remove ~ from a user with no ident                  | ('-' prefix on /stats I)
406 >         * can_flood     - allow this user to exceed flood limits              | ('|' prefix on /stats I)
407 >         * webirc        - enables WEBIRC authentication for web-based         | ('<' prefix on /stats I)
408 >         *                 clients such as Mibbit
409           */
410          flags = need_password, spoof_notice, exceed_limit, kline_exempt,
411                  gline_exempt, resv_exempt, no_tilde, can_flood;
# Line 399 | Line 413 | auth {
413  
414   auth {
415          /*
416 <         * redirect: the server and port to redirect a user to. A user does not
417 <         * have to obey the redirection; the ircd just suggests an alternative
418 <         * server for them.
416 >         * redirserv, redirport: the server and port to redirect a user to.
417 >         * A user does not have to obey the redirection; the ircd just
418 >         * suggests an alternative server for them.
419           */
420 <        redirserv = "this.is.not.a.real.server";
420 >        redirserv = "server.tld";
421          redirport = 6667;
422  
423 <        user = "*.server";
423 >        user = "*@*.tld";
424  
425 <        /* class: a class is required even though it is not used */
425 >        /* class: a class is required even though it is not used. */
426          class = "users";
427   };
428  
# Line 422 | Line 436 | auth {
436   * operator {}:  defines ircd operators
437   */
438   operator {
439 <        /* name: the name of the oper */
439 >        /* name: the name of the operator */
440          name = "sheep";
441  
442          /*
443           * user: the user@host required for this operator. Multiple user
444 <         * lines are permitted within each operator block.
444 >         * lines are permitted within each operator {} block.
445           */
446          user = "*sheep@192.168.0.0/16";
447          user = "*@127.0.0.0/8";
# Line 444 | Line 458 | operator {
458  
459          /*
460           * encrypted: controls whether the oper password above has been
461 <         * encrypted.
461 >         * encrypted. Default is 'yes' if nothing else is specified.
462           */
463          encrypted = yes;
464  
465          /*
466 <         * rsa_public_key_file: the public key for this oper when using Challenge.
466 >         * whois: allows to override the default RPL_WHOISOPERATOR numeric
467 >         * string shown in /whois.
468 >         * This string is propagated to all servers on the network.
469 >         */
470 > #       whois = "is a Smurf Target (IRC Operator)";
471 >
472 >        /*
473 >         * rsa_public_key_file: the public key for this oper when using /challenge.
474           * A password should not be defined when this is used; see
475           * doc/challenge.txt for more information.
476           */
477 < #       rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
477 > #       rsa_public_key_file = "etc/oper.pub";
478  
479          /*
480           * ssl_certificate_fingerprint: enhances security by additionally checking
# Line 469 | Line 490 | operator {
490  
491          /*
492           * ssl_connection_required: client must be connected over SSL/TLS
493 <         * in order to be able to use this oper{} block.
493 >         * in order to be able to use this operator {} block.
494           * Default is 'no' if nothing else is specified.
495           */
496          ssl_connection_required = no;
497  
498 <        /* class: the class the oper joins when they successfully /oper */
498 >        /* class: the class the oper joins when they successfully /oper or /challenge. */
499          class = "opers";
500  
501          /*
502 <         * umodes: the default usermodes opers get when they /oper. If defined,
503 <         * it will override oper_umodes settings in general {}.
502 >         * umodes: the default usermodes opers get when they /oper or /challenge.
503 >         * If defined, it will override oper_umodes settings in general {}.
504           * Available usermodes:
505           *
506           * +b - bots         - See bot and drone flooding notices
# Line 488 | Line 509 | operator {
509           * +d - debug        - See debugging notices
510           * +e - external     - See remote server connection and split notices
511           * +F - farconnect   - Remote client connection/quit notices
512 <         * +f - full         - See auth{} block full notices
512 >         * +f - full         - See auth {} block full notices
513           * +G - softcallerid - Server Side Ignore for users not on your channels
514           * +g - callerid     - Server Side Ignore (for privmsgs etc)
515           * +H - hidden       - Hides operator status to other users
# Line 508 | Line 529 | operator {
529          umodes = locops, servnotice, wallop;
530  
531          /*
532 <         * privileges: controls the activities and commands an oper is
533 <         * allowed to do on the server. All options default to no.
534 <         * Available options:
532 >         * flags: controls the activities and commands an oper is
533 >         * allowed to do on the server. All flags default to 'no'.
534 >         * Available flags:
535           *
536 <         * module         - allows MODULE
536 >         * admin          - gives administrator privileges    | ('A' flag)
537           * connect        - allows local CONNECT              | ('P' flag)
538           * connect:remote - allows remote CONNECT             | ('Q' flag)
539 <         * squit          - allows local SQUIT                | ('R' flag)
540 <         * squit:remote   - allows remote SQUIT               | ('S' flag)
539 >         * die            - allows DIE                        | ('D' flag)
540 >         * dline          - allows DLINE                      |
541 >         * gline          - allows GLINE                      | ('G' flag)
542 >         * globops        - allows GLOBOPS                    |
543           * kill           - allows to KILL local clients      | ('N' flag)
544           * kill:remote    - allows remote users to be /KILL'd | ('O' flag)
522         * remoteban      - allows remote KLINE/UNKLINE       | ('B' flag)
523         * dline          - allows DLINE                      |
524         * undline        - allows UNDLINE                    |
545           * kline          - allows KLINE                      | ('K' flag)
526         * unkline        - allows UNKLINE                    | ('U' flag)
527         * gline          - allows GLINE                      | ('G' flag)
528         * xline          - allows XLINE                      | ('X' flag)
529         * unxline        - allows UNXLINE                    |
546           * locops         - allows LOCOPS                     |
547 <         * globops        - allows GLOBOPS                    |
548 <         * wallops        - allows WALLOPS                    |
547 >         * module         - allows MODULE                     |
548 >         * opme           - allows OPME                       |
549           * rehash         - allows oper to REHASH config      | ('H' flag)
550 <         * die            - allows DIE                        | ('D' flag)
550 >         * remoteban      - allows remote KLINE/UNKLINE       | ('B' flag)
551           * restart        - allows RESTART                    |
552           * set            - allows SET                        |
553 <         * admin          - gives administrator privileges    | ('A' flag)
553 >         * squit          - allows local SQUIT                | ('R' flag)
554 >         * squit:remote   - allows remote SQUIT               | ('S' flag)
555 >         * undline        - allows UNDLINE                    |
556 >         * unkline        - allows UNKLINE                    | ('U' flag)
557 >         * unxline        - allows UNXLINE                    |
558 >         * wallops        - allows WALLOPS                    |
559 >         * xline          - allows XLINE                      | ('X' flag)
560           */
561 <        flags = kill, kill:remote, connect, connect:remote, kline, unkline,
562 <                xline, globops, restart, die, rehash, admin, module;
541 < };
542 <
543 < /*
544 < * service {}: specifies a server which may act as a network service
545 < *
546 < * NOTE: it is very important that every server on the network
547 < *       has the same service{} block.
548 < */
549 < service {
550 <        name = "service.someserver";
551 <        name = "stats.someserver";
561 >        flags = admin, connect, connect:remote, die, globops, kill, kill:remote,
562 >                kline, module, rehash, restart, set, unkline, unxline, xline;
563   };
564  
565   /*
566   * connect {}: define a server to connect to
567   */
568   connect {
569 <        /* name: the name of the server */
569 >        /* name: the name of the server. */
570          name = "irc.uplink.com";
571  
572          /*
# Line 573 | Line 584 | connect {
584          vhost = "192.168.0.2";
585  
586          /*
587 <         * passwords: the passwords to send (OLD C:) and accept (OLD N:).
587 >         * send_password, accept_password: the passwords to send and accept.
588           * The remote server will have these passwords swapped.
589           */
590          send_password = "password";
# Line 585 | Line 596 | connect {
596           */
597          encrypted = no;
598  
599 <        /* port: the port to connect to this server on */
599 >        /* port: the port to connect to this server on. */
600          port = 6666;
601  
602          /*
# Line 600 | Line 611 | connect {
611           */
612   #       leaf_mask = "*.uk";
613  
614 <        /* class: the class this server is in */
614 >        /* class: the class this server is in. */
615          class = "server";
616  
617          /*
618 <         * ssl_cipher_list:
619 <         *
620 <         * List of ciphers that the server we are connecting to must support.
610 <         * If the server is not capable of using any of the ciphers listed below,
611 <         * the connection will simply be rejected.
618 >         * ssl_cipher_list: list of ciphers that the server we are connecting to
619 >         * must support. If the server is not capable of using any of the ciphers
620 >         * listed below, the connection will simply be rejected.
621           * Can be used to enforce stronger ciphers, even though this option
622           * is not necessarily required to establish a SSL/TLS connection.
623           *
# Line 660 | Line 669 | cluster {
669           *       will not be propagated to clustered servers.
670           *
671           *       Remote servers are not necessarily required to accept
672 <         *       clustered lines, they need a shared{} for *THIS* server
673 <         *       in order to accept them.
672 >         *       clustered lines, they need a shared {} block for *THIS*
673 >         *       server in order to accept them.
674           */
675          name = "*.arpa";
676  
# Line 722 | Line 731 | shared {
731  
732   /*
733   * kill {}:  users that are not allowed to connect
734 < * Oper issued klines will be added to the specified kline config
734 > * Oper issued klines will be added to the specified kline database
735   */
736   kill {
737          user = "bad@*.hacked.edu";
# Line 732 | Line 741 | kill {
741   /*
742   * deny {}:  IP addresses that are not allowed to connect
743   * (before DNS/ident lookup)
744 < * Oper issued dlines will be added to the specified dline config
744 > * Oper issued dlines will be added to the specified dline database
745   */
746   deny {
747          ip = "10.0.1.0/24";
# Line 778 | Line 787 | resv {
787   };
788  
789   /*
790 < * gecos {}:  Used for banning users based on their "realname".
790 > * gecos {}:  used for banning users based on their "realname".
791   */
792   gecos {
793          name = "*sex*";
# Line 791 | Line 800 | gecos {
800   };
801  
802   /*
803 < * channel {}:  The channel block contains options pertaining to channels
803 > * service {}: specifies a server which may act as a network service
804 > *
805 > * NOTE: it is very important that every server on the network
806 > *       has the same service {} block.
807 > */
808 > service {
809 >        name = "service.someserver";
810 >        name = "stats.someserver";
811 > };
812 >
813 > /*
814 > * pseudo {}: adds pseudo/custom commands also known as service aliases
815 > */
816 > pseudo {
817 >        /* command: the actual command/alias */
818 >        command = "IDENTIFY";
819 >
820 >        /* prepend: optional text that can be prepended before the user's message */
821 >        prepend = "IDENTIFY ";
822 >
823 >        /* name: the service name, used for error messages */
824 >        name = "NickServ";
825 >
826 >        /* target: the actual target where this message should be sent to */
827 >        target = "NickServ@service.someserver";
828 > };
829 >
830 > pseudo {
831 >        command = "CHANSERV";
832 >        name = "ChanServ";
833 >        target = "ChanServ@service.someserver";
834 > };
835 >
836 > pseudo {
837 >        command = "CS";
838 >        name = "ChanServ";
839 >        target = "ChanServ@service.someserver";
840 > };
841 >
842 > pseudo {
843 >        command = "NICKSERV";
844 >        name = "NickServ";
845 >        target = "NickServ@service.someserver";
846 > };
847 >
848 > pseudo {
849 >        command = "NS";
850 >        name = "NickServ";
851 >        target = "NickServ@service.someserver";
852 > };
853 >
854 > pseudo {
855 >        command = "MEMOSERV";
856 >        name = "MemoServ";
857 >        target = "MemoServ@service.someserver";
858 > };
859 >
860 > pseudo {
861 >        command = "MS";
862 >        name = "MemoServ";
863 >        target = "MemoServ@service.someserver";
864 > };
865 >
866 > pseudo {
867 >        command = "OPERSERV";
868 >        name = "OperServ";
869 >        target = "OperServ@service.someserver";
870 > };
871 >
872 > pseudo {
873 >        command = "OS";
874 >        name = "OperServ";
875 >        target = "OperServ@service.someserver";
876 > };
877 >
878 > pseudo {
879 >        command = "HOSTSERV";
880 >        name = "HostServ";
881 >        target = "HostServ@service.someserver";
882 > };
883 >
884 > pseudo {
885 >        command = "HS";
886 >        name = "HostServ";
887 >        target = "HostServ@service.someserver";
888 > };
889 >
890 > pseudo {
891 >        command = "BOTSERV";
892 >        name = "BotServ";
893 >        target = "BotServ@service.someserver";
894 > };
895 >
896 > pseudo {
897 >        command = "BS";
898 >        name = "BotServ";
899 >        target = "BotServ@service.someserver";
900 > };
901 >
902 > /*
903 > * channel {}:  the channel block contains options pertaining to channels
904   */
905   channel {
906          /*
# Line 824 | Line 933 | channel {
933          knock_client_time = 5 minutes;
934  
935          /*
936 <         * knock_delay_channel: How often a KNOCK to any specific channel
936 >         * knock_delay_channel: how often a KNOCK to any specific channel
937           * is permitted, regardless of the user sending the KNOCK.
938           */
939          knock_delay_channel = 1 minute;
940  
941          /*
942 <         * max_chans_per_user: The maximum number of channels a user can
943 <         * join/be on.
835 <         */
836 <        max_chans_per_user = 25;
837 <
838 <        /*
839 <         * max_chans_per_oper: The maximum number of channels an oper can
840 <         * join/be on.
942 >         * max_channels: the maximum number of channels a user can join/be on.
943 >         * This is a default value which can be overriden with class {} blocks.
944           */
945 <        max_chans_per_oper = 50;
945 >        max_channels = 25;
946  
947          /* max_bans: maximum number of +b/e/I modes in a channel */
948          max_bans = 100;
949  
950          /*
951 <         * how many joins in how many seconds constitute a flood. Use 0 to
952 <         * disable. +b opers will be notified (changeable via /set)
951 >         * default_join_flood_count, default_join_flood_time:
952 >         * how many joins in how many seconds constitute a flood. Use 0 to disable.
953 >         * +b opers will be notified. These are only default values which can be
954 >         * changed via "/QUOTE SET JFLOODCOUNT" and "/QUOTE SET JFLOODTIME".
955           */
956 <        join_flood_count = 16;
957 <        join_flood_time = 8 seconds;
956 >        default_join_flood_count = 18;
957 >        default_join_flood_time = 6 seconds;
958  
959          /*
960           * The ircd will now check splitmode (whether a server is split from
# Line 882 | Line 987 | channel {
987   };
988  
989   /*
990 < * serverhide {}:  The serverhide block contains the options regarding
991 < * to server hiding
990 > * serverhide {}:  the serverhide block contains the options regarding
991 > * to server hiding. For more information regarding server hiding,
992 > * please see doc/serverhide.txt
993   */
994   serverhide {
995          /*
# Line 918 | Line 1024 | serverhide {
1024  
1025          /*
1026           * hide_services: define this if you want to hide the location of
1027 <         * services servers that are specified in the service{} block.
1027 >         * services servers that are specified in the service {} block.
1028           */
1029          hide_services = no;
1030  
1031          /*
1032 <         * Use this as the servername users see if hide_servers = yes.
1032 >         * hidden_name: use this as the servername users see if hide_servers = yes.
1033           */
1034          hidden_name = "*.hidden.com";
1035  
1036          /*
1037 <         * hide_server_ips: If this is disabled, opers will be unable to see
1037 >         * hide_server_ips: if this is disabled, opers will be unable to see
1038           * servers' IP addresses and will be shown a masked IP address; admins
1039           * will be shown the real IP address.
1040           *
# Line 943 | Line 1049 | serverhide {
1049   };
1050  
1051   /*
1052 < * general {}:  The general block contains many of the options that were once
1052 > * general {}:  the general block contains many of the options that were once
1053   * compiled in options in config.h
1054   */
1055   general {
# Line 953 | Line 1059 | general {
1059           */
1060          cycle_on_host_change = yes;
1061  
956        /* services_name: servername of nick/channel services */
957        services_name = "service.someserver";
958
1062          /* max_watch: maximum WATCH entries a client can have. */
1063 <        max_watch = 50;
1063 >        max_watch = 30;
1064 >
1065 >        /* max_accept: maximum allowed /accept's for +g usermode. */
1066 >        max_accept = 30;
1067  
1068          /* gline_enable: enable glines (network-wide temporary klines). */
1069          gline_enable = yes;
1070  
1071          /*
1072 <         * gline_duration: the amount of time a gline will remain on your
1072 >         * gline_duration: the amount of time a G-line will remain on your
1073           * server before expiring.
1074           */
1075          gline_duration = 1 day;
# Line 976 | Line 1082 | general {
1082  
1083          /*
1084           * gline_min_cidr: the minimum required length of a CIDR bitmask
1085 <         * for IPv4 based glines.
1085 >         * for IPv4 based G-lines.
1086           */
1087          gline_min_cidr = 16;
1088  
1089          /*
1090           * gline_min_cidr6: the minimum required length of a CIDR bitmask
1091 <         * for IPv6 based glines.
1091 >         * for IPv6 based G-lines.
1092           */
1093          gline_min_cidr6 = 48;
1094  
# Line 1001 | Line 1107 | general {
1107          kill_chase_time_limit = 30 seconds;
1108  
1109          /*
1110 <         * hide_spoof_ips: if disabled, opers will be allowed to see the real
1111 <         * IP address of spoofed users in /trace etc. If this is defined they
1112 <         * will be shown a masked IP.
1007 <         */
1008 <        hide_spoof_ips = yes;
1009 <
1010 <        /*
1011 <         * Ignore bogus timestamps from other servers. Yes, this will desync the
1012 <         * network, but it will allow chanops to resync with a valid non TS 0
1110 >         * ignore_bogus_ts: ignore bogus timestamps from other servers.
1111 >         * Yes, this will desync the network, but it will allow chanops
1112 >         * to resync with a valid non TS 0.
1113           *
1114           * This should be enabled network wide, or not at all.
1115           */
# Line 1029 | Line 1129 | general {
1129  
1130          /*
1131           * default_floodcount: the default value of floodcount that is configurable
1132 <         * via /quote set floodcount. This is the number of lines a user
1133 <         * may send to any other user/channel in one second.
1132 >         * via /quote set floodcount. This is the number of lines a user may send
1133 >         * to any other user/channel in one second. Set to 0 to disable.
1134           */
1135          default_floodcount = 10;
1136  
# Line 1050 | Line 1150 | general {
1150           * min_nonwildcard: the minimum number of non-wildcard characters in
1151           * k/d/g lines placed via the server. K-lines hand-placed are exempt from
1152           * this limit.
1153 <         * Wildcard chars: '.', ':', '*', '?', '@', '!'
1153 >         * Wildcard characters: '.', ':', '*', '?', '@', '!'
1154           */
1155          min_nonwildcard = 4;
1156  
1157          /*
1158           * min_nonwildcard_simple: the minimum number of non-wildcard characters
1159 <         * in gecos bans. Wildcard chars: '*', '?'
1159 >         * in gecos bans. Wildcard characters: '*', '?'
1160           */
1161          min_nonwildcard_simple = 3;
1162  
1063        /* max_accept: maximum allowed /accept's for +g usermode. */
1064        max_accept = 50;
1065
1163          /* anti_nick_flood: enable the nickflood control code. */
1164          anti_nick_flood = yes;
1165  
1166 <        /* nick flood: the number of nick changes allowed in the specified period */
1167 <        max_nick_time = 20 seconds;
1166 >        /*
1167 >         * max_nick_changes, max_nick_time: the number of nick changes allowed in
1168 >         * the specified period.
1169 >         */
1170          max_nick_changes = 5;
1171 +        max_nick_time = 20 seconds;
1172 +
1173 +        /*
1174 +         * away_count, away_time: how many AWAY command are permitted per
1175 +         * client per away_time.
1176 +         */
1177 +        away_count = 2;
1178 +        away_time = 10 seconds;
1179  
1180          /*
1181           * anti_spam_exit_message_time: the minimum time a user must be connected
# Line 1077 | Line 1184 | general {
1184          anti_spam_exit_message_time = 5 minutes;
1185  
1186          /*
1187 <         * ts delta: the time delta allowed between server clocks before
1188 <         * a warning is given, or before the link is dropped. All servers
1189 <         * should run ntpdate/rdate to keep clocks in sync
1187 >         * ts_warn_delta, ts_max_delta: the time delta allowed between server
1188 >         * clocks before a warning is given, or before the link is dropped.
1189 >         * All servers should run ntpdate/rdate to keep clocks in sync.
1190           */
1191 <        ts_warn_delta = 10 seconds;
1192 <        ts_max_delta = 2 minutes;
1191 >        ts_warn_delta = 3 seconds;
1192 >        ts_max_delta = 15 seconds;
1193  
1194          /*
1195           * warn_no_connect_block: warn opers about servers that try to connect
# Line 1094 | Line 1201 | general {
1201          /*
1202           * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1203           * operators and administrators. Doing so is a good idea in case
1204 <         * there are any exempted (exempt{}) server IPs you don't want to
1204 >         * there are any exempted (exempt {}) server IPs you don't want to
1205           * see leaked.
1206           */
1207          stats_e_disabled = no;
1208  
1209 <        /* stats_o_oper only: make stats o (opers) oper only */
1209 >        /* stats_m_oper_only: make /stats m/M (messages) oper only. */
1210 >        stats_m_oper_only = yes;
1211 >
1212 >        /* stats_o_oper_only: make stats o (opers) oper only. */
1213          stats_o_oper_only = yes;
1214  
1215 <        /* stats_P_oper_only: make stats P (ports) oper only */
1215 >        /* stats_P_oper_only: make stats P (ports) oper only. */
1216          stats_P_oper_only = yes;
1217  
1218 <        /* stats_u_oper_only: make stats u (uptime) oper only */
1218 >        /* stats_u_oper_only: make stats u (uptime) oper only. */
1219          stats_u_oper_only = no;
1220  
1221          /*
1222           * stats_i_oper_only: make stats i (auth {}) oper only. Set to:
1223 <         *     yes    - show users no auth blocks, made oper only.
1224 <         *     masked - show users the first matching auth block
1225 <         *     no     - show users all auth blocks.
1223 >         *     yes    - show users no auth {} blocks, made oper only
1224 >         *     masked - show users the first matching auth {} block
1225 >         *     no     - show users all auth {} blocks
1226           */
1227          stats_i_oper_only = yes;
1228  
1229          /*
1230           * stats_k_oper_only: make stats k/K (klines) oper only. Set to:
1231 <         *     yes    - show users no auth blocks, made oper only
1232 <         *     masked - show users the first matching auth block
1233 <         *     no     - show users all auth blocks.
1231 >         *     yes    - show users no klines, made oper only
1232 >         *     masked - show users the first matching kline
1233 >         *     no     - show users all klines
1234           */
1235          stats_k_oper_only = yes;
1236  
# Line 1132 | Line 1242 | general {
1242  
1243          /*
1244           * opers_bypass_callerid: allows operators to bypass +g and message
1245 <         * anyone who has it set (useful if you use services).
1245 >         * anyone who has it set.
1246           */
1247          opers_bypass_callerid = no;
1248  
# Line 1145 | Line 1255 | general {
1255  
1256          /*
1257           * pace_wait: minimum time required between use of more intensive commands
1258 <         * (AWAY, INFO, LINKS, MAP, MOTD, STATS, WHO, WHOWAS)
1258 >         * (INFO, LINKS, MAP, MOTD, STATS, WHO, WHOWAS)
1259           */
1260          pace_wait = 10 seconds;
1261  
# Line 1156 | Line 1266 | general {
1266          short_motd = no;
1267  
1268          /*
1269 <         * ping_cookie: require clients to respond exactly to a ping command,
1269 >         * ping_cookie: require clients to respond exactly to a PING command,
1270           * can help block certain types of drones and FTP PASV mode spoofing.
1271           */
1272          ping_cookie = no;
# Line 1164 | Line 1274 | general {
1274          /* no_oper_flood: increase flood limits for opers. */
1275          no_oper_flood = yes;
1276  
1167        /*
1168         * true_no_oper_flood: completely eliminate flood limits for opers
1169         * and for clients with can_flood = yes in their auth {} blocks.
1170         */
1171        true_no_oper_flood = yes;
1172
1277          /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels. */
1278          oper_pass_resv = yes;
1279  
# Line 1191 | Line 1295 | general {
1295           * +d - debug        - See debugging notices
1296           * +e - external     - See remote server connection and split notices
1297           * +F - farconnect   - Remote client connection/quit notices
1298 <         * +f - full         - See auth{} block full notices
1298 >         * +f - full         - See auth {} block full notices
1299           * +G - softcallerid - Server Side Ignore for users not on your channels
1300           * +g - callerid     - Server Side Ignore (for privmsgs etc)
1301           * +H - hidden       - Hides operator status to other users
# Line 1209 | Line 1313 | general {
1313           * +y - spy          - See LINKS, STATS, TRACE notices etc.
1314           */
1315  
1316 <        /* oper_only_umodes: usermodes only opers may set */
1317 <        oper_only_umodes = bots, cconn, debug, full, hidden, skill,
1318 <                        nchange, rej, spy, external,
1215 <                        locops, unauth, farconnect;
1316 >        /* oper_only_umodes: usermodes only operators may set. */
1317 >        oper_only_umodes = bots, cconn, debug, external, farconnect, full, hidden, locops,
1318 >                        nchange, rej, skill, spy, unauth;
1319  
1320 <        /* oper_umodes: default usermodes opers get when they /oper */
1320 >        /* oper_umodes: default usermodes operators get when they /oper or /challenge. */
1321          oper_umodes = bots, locops, servnotice, wallop;
1322  
1323          /*
1221         * use_egd: if your system does not have *random devices yet you
1222         * want to use OpenSSL and encrypted links, enable this. Beware -
1223         * EGD is *very* CPU intensive when gathering data for its pool.
1224         */
1225 #       use_egd = yes;
1226
1227        /*
1228         * egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
1229         * which automatically finds the path.
1230         */
1231 #       egdpool_path = "/var/run/egd-pool";
1232
1233
1234        /*
1324           * throttle_count: the maximum number of connections from the same
1325           * IP address allowed in throttle_time duration.
1326           */
# Line 1252 | Line 1341 | modules {
1341           * path: other paths to search for modules specified below
1342           * and in "/module load".
1343           */
1344 <        path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1345 <        path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1344 >        path = "lib/ircd-hybrid/modules";
1345 > #       path = "lib/ircd-hybrid/modules/extra";
1346 >        path = "lib/ircd-hybrid/modules/autoload";
1347  
1348          /* module: the name of a module to load on startup/rehash. */
1349   #       module = "some_module.la";
# Line 1268 | Line 1358 | log {
1358  
1359          file {
1360                  type = oper;
1361 <                name = "/usr/local/ircd/var/log/oper.log";
1361 >                name = "var/log/oper.log";
1362                  size = unlimited;
1363          };
1364  
1365          file {
1366                  type = user;
1367 <                name = "/usr/local/ircd/var/log/user.log";
1367 >                name = "var/log/user.log";
1368                  size = 50 megabytes;
1369          };
1370  
1371          file {
1372                  type = kill;
1373 <                name = "/usr/local/ircd/var/log/kill.log";
1373 >                name = "var/log/kill.log";
1374                  size = 50 megabytes;
1375          };
1376  
1377          file {
1378                  type = kline;
1379 <                name = "/usr/local/ircd/var/log/kline.log";
1379 >                name = "var/log/kline.log";
1380                  size = 50 megabytes;
1381          };
1382  
1383          file {
1384                  type = dline;
1385 <                name = "/usr/local/ircd/var/log/dline.log";
1385 >                name = "var/log/dline.log";
1386                  size = 50 megabytes;
1387          };
1388  
1389          file {
1390                  type = gline;
1391 <                name = "/usr/local/ircd/var/log/gline.log";
1391 >                name = "var/log/gline.log";
1392                  size = 50 megabytes;
1393          };
1394  
1395          file {
1396                  type = xline;
1397 <                name = "/usr/local/ircd/var/log/xline.log";
1397 >                name = "var/log/xline.log";
1398                  size = 50 megabytes;
1399          };
1400  
1401          file {
1402                  type = resv;
1403 <                name = "/usr/local/ircd/var/log/resv.log";
1403 >                name = "var/log/resv.log";
1404                  size = 50 megabytes;
1405          };
1406  
1407          file {
1408                  type = debug;
1409 <                name = "/usr/local/ircd/var/log/debug.log";
1409 >                name = "var/log/debug.log";
1410                  size = 50 megabytes;
1411          };
1412   };

Diff Legend

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