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/trunk/doc/example.conf (file contents), Revision 1817 by michael, Fri Apr 12 10:54:39 2013 UTC vs.
ircd-hybrid/trunk/doc/reference.conf (file contents), Revision 2244 by michael, Sat Jun 15 22:08:10 2013 UTC

# Line 1 | Line 1
1 < /* doc/example.conf - ircd-hybrid-8 Example configuration file
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 * doc/.
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 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
39   */
# Line 51 | Line 47 | serverinfo {
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 >         * NOTE: The letters must be capitalized. This cannot be changed at runtime.
51           */
52          sid = "0HY";
53  
# Line 62 | Line 58 | serverinfo {
58  
59          /*
60           * network info: the name and description of the network this server
61 <         * is on.  Shown in the 005 reply and used with serverhiding.
61 >         * is on. Shown in the 005 reply and used with serverhiding.
62           */
63          network_name = "MyNet";
64          network_desc = "This is My Network";
# Line 77 | Line 73 | serverinfo {
73           * vhost: the IP to bind to when we connect outward to ipv4 servers.
74           * This should be an ipv4 IP only, or "*" for INADDR_ANY.
75           */
76 <        #vhost = "192.169.0.1";
76 > #       vhost = "192.169.0.1";
77  
78          /*
79           * vhost6: the IP to bind to when we connect outward to ipv6 servers.
80           * This should be an ipv6 IP only, or "*" for INADDR_ANY.
81           */
82 <        #vhost6 = "3ffe:80e8:546::2";
82 > #       vhost6 = "3ffe:80e8:546::2";
83  
84 <        /* max_clients: the maximum number of clients allowed to connect */
84 >        /* max_clients: the maximum number of clients allowed to connect. */
85          max_clients = 512;
86  
87          /*
# Line 114 | Line 110 | serverinfo {
110           *      chmod 0600 rsa.key
111           *      chmod 0644 rsa.pub
112           */
113 <        #rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
113 > #       rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
114  
115          /*
116           * ssl_certificate_file: the path to the file containing our
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
120 >         * MUST have an RSA key in order to generate the certificate.
121 >         *
122 >         * Example command:
123           *
124           *      openssl req -new -days 365 -x509 -key rsa.key -out cert.pem
125           *
# Line 134 | Line 132 | serverinfo {
132           *      Common Name: irc.someirc.net
133           *      E-mail: you@domain.com
134           */
135 <        #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
135 > #       ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
136  
137          /*
138           * ssl_dh_param_file:
# Line 151 | Line 149 | serverinfo {
149           * regarding specific OpenSSL dhparam command-line options
150           * can be found in the OpenSSL manual.
151           */
152 <        #ssl_dh_param_file = "/usr/local/ircd/etc/dhparam.pem";
152 > #       ssl_dh_param_file = "/usr/local/ircd/etc/dhparam.pem";
153  
154          /*
155           * ssl_cipher_list:
# Line 169 | Line 167 | serverinfo {
167           * Multiple ciphers are separated by colons. The order of preference is
168           * from left to right.
169           */
170 <        #ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
170 > #       ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
171  
172          /*
173           * ssl_server_method:
# Line 179 | Line 177 | serverinfo {
177           * outgoing (client method) SSL/TLS connections.
178           * This can be either sslv3 for SSLv3, and/or tlsv1 for TLSv1.
179           */
180 <        #ssl_server_method = tlsv1, sslv3;
181 <        #ssl_client_method = tlsv1;
180 > #       ssl_server_method = tlsv1, sslv3;
181 > #       ssl_client_method = tlsv1;
182   };
183  
184   /*
# Line 196 | Line 194 | admin {
194   * class {}:  contains information about classes for users
195   */
196   class {
197 <        /* name: the name of the class */
197 >        /* name: the name of the class. */
198          name = "users";
199  
200          /*
# Line 229 | Line 227 | class {
227  
228          /*
229           * the following lines are optional and allow you to define
230 <         * how many users can connect from one /NN subnet
230 >         * how many users can connect from one /NN subnet.
231           */
232          cidr_bitlen_ipv4 = 24;
233          cidr_bitlen_ipv6 = 120;
# Line 257 | Line 255 | class {
255          sendq = 100 kbytes;
256  
257          /*
258 <         * min_idle: minimum idle time that is shown in /whois
258 >         * min_idle: minimum idle time that is shown in /whois.
259           */
260          min_idle = 3 hours;
261  
262          /*
263 <         * max_idle: maximum idle time that is shown in /whois
263 >         * max_idle: maximum idle time that is shown in /whois.
264           */
265          max_idle = 8 hours;
266  
# Line 281 | Line 279 | class {
279          ping_time = 90 seconds;
280  
281          /*
282 <         * connectfreq: only used in server classes.  Specifies the delay
282 >         * connectfreq: only used in server classes. Specifies the delay
283           * between autoconnecting to servers.
284           */
285          connectfreq = 5 minutes;
286  
287 <        /* max number: the amount of servers to autoconnect to */
287 >        /* max number: the amount of servers to autoconnect to. */
288          max_number = 1;
289  
290 <        /* sendq: servers need a higher sendq as they send more data */
290 >        /* sendq: servers need a higher sendq as they send more data. */
291          sendq = 2 megabytes;
292   };
293  
294   /*
295 + * motd {}: Allows to show a different MOTD to a client
296 + * depending on its origin. Applies to local users only.
297 + */
298 + motd {
299 +        /*
300 +         * mask: multiple mask entries are permitted. Mask can either be
301 +         * a class name or a hostname.
302 +         */
303 +        mask = "*.at";
304 +        mask = "*.de";
305 +        mask = "*.ch";
306 +
307 +        /*
308 +         * file: path to the actual motd file.
309 +         */
310 +        file = "/usr/local/ircd/etc/german.motd";
311 + };
312 +
313 + /*
314   * listen {}:  contains information about the ports ircd listens on
315   */
316   listen {
317          /*
318 <         * port: the specific port to listen on.  If no host is specified
318 >         * port: the specific port to listen on. If no host is specified
319           * before, it will listen on all available IPs.
320           *
321           * Ports are separated via a comma, a range may be specified using ".."
# Line 311 | Line 328 | listen {
328           * Listen on 192.168.0.1/6697 with ssl enabled and hidden from STATS P
329           * unless you are an administrator.
330           *
331 <         * NOTE: The "flags" directive has to come before "port".  Always!
331 >         * NOTE: The "flags" directive has to come before "port". Always!
332           *
333           * Currently available flags are:
334           *
# Line 325 | Line 342 | listen {
342  
343          /*
344           * host: set a specific IP/host the ports after the line will listen
345 <         * on.  This may be ipv4 or ipv6.
345 >         * on. This may be ipv4 or ipv6.
346           */
347          host = "1.2.3.4";
348          port = 7000, 7001;
# Line 355 | Line 372 | auth {
372          encrypted = yes;
373  
374          /*
375 <         * spoof: fake the users host to this.  This is free-form,
376 <         * just do everyone a favor and don't abuse it. ('=' prefix on /stats I)
375 >         * spoof: fake the users host to this. This is free-form, just do
376 >         * everyone a favor and don't abuse it. ('=' prefix on /stats I)
377           */
378          spoof = "I.still.hate.packets";
379  
# Line 375 | Line 392 | auth {
392           * resv_exempt   - exempt this user from resvs ('$' prefix on /stats I)
393           * no_tilde      - remove ~ from a user with no ident ('-' prefix on /stats I)
394           * can_flood     - allow this user to exceed flood limits ('|' prefix on /stats I)
395 <         * webirc        - enables WEBIRC authentication for web-based clients such as Mibbit
395 >         * webirc        - enables WEBIRC authentication for web-based clients such as Mibbit
396           *                 ('<' prefix on /stats I)
397           */
398          flags = need_password, spoof_notice, exceed_limit, kline_exempt,
# Line 384 | Line 401 | auth {
401  
402   auth {
403          /*
404 <         * redirect: the server and port to redirect a user to.  A user does
405 <         * not have to obey the redirection, the ircd just suggests an alternative
404 >         * redirect: the server and port to redirect a user to. A user does not
405 >         * have to obey the redirection, the ircd just suggests an alternative
406           * server for them.
407           */
408          redirserv = "this.is.not.a.real.server";
# Line 405 | Line 422 | auth {
422  
423   /*
424   * operator {}:  defines ircd operators
408 *
409 * ircd-hybrid no longer supports local operators, privileges are
410 * controlled via flags.
425   */
426   operator {
427          /* name: the name of the oper */
# Line 421 | Line 435 | operator {
435          user = "*@127.0.0.0/8";
436  
437          /*
438 <         * password: the password required to oper.  By default this will
438 >         * password: the password required to oper. By default this will
439           * need to be encrypted by using the provided mkpasswd tool.
440           * Several password hash algorithms are available depending
441           * on your system's crypt() implementation. For example, a modern
# Line 443 | Line 457 | operator {
457           */
458   #       rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
459  
460 +        /*
461 +         * ssl_certificate_fingerprint: enhances security by additionally checking
462 +         * the oper's client certificate fingerprint against the specified
463 +         * fingerprint below.
464 +         *
465 +         * Hint: your users can use the following command to obtain a SHA-256 hash
466 +         * of their ssl certificate:
467 +         *
468 +         *      openssl x509 -sha256 -noout -fingerprint -in cert.pem | sed -e 's/^.*=//;s/://g'
469 +         */
470 + #       ssl_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
471 +
472          /* class: the class the oper joins when they successfully /oper */
473          class = "opers";
474  
475          /*
476 <         * umodes: default usermodes opers get when they /oper.  If defined,
476 >         * umodes: default usermodes opers get when they /oper. If defined,
477           * it will override oper_umodes settings in general {}.
478           * Available usermodes:
479           *
480           * +b - bots         - See bot and drone flooding notices
481           * +c - cconn        - Client connection/quit notices
456         * +C - cconn_full   - Client connection/quit notices full
482           * +D - deaf         - Don't receive channel messages
483           * +d - debug        - See debugging notices
484 +         * +e - external     - See remote server connection and split notices
485 +         * +F - farconnect   - Remote client connection/quit notices
486           * +f - full         - See auth{} block full notices
487           * +G - softcallerid - Server Side Ignore for users not on your channels
488           * +g - callerid     - Server Side Ignore (for privmsgs etc)
# Line 466 | Line 493 | operator {
493           * +k - skill        - See server generated KILL messages
494           * +l - locops       - See LOCOPS messages
495           * +n - nchange      - See client nick changes
496 +         * +R - nononreg     - Only receive private messages from registered clients
497           * +s - servnotice   - See general server notices
498           * +u - unauth       - See unauthorized client notices
499           * +w - wallop       - See server generated WALLOPS
472         * +x - external     - See remote server connection and split notices
500           * +y - spy          - See LINKS, STATS, TRACE notices etc.
501           * +z - operwall     - See oper generated WALLOPS
502           */
503 < #       umodes = locops, servnotice, operwall, wallop;
503 >        umodes = locops, servnotice, operwall, wallop;
504  
505          /*
506           * privileges: controls the activities and commands an oper is
507           * allowed to do on the server. All options default to no.
508           * Available options:
509           *
510 <         * module       - allows MODULE
511 <         * global_kill  - allows remote users to be /KILL'd
512 <         * remote       - allows remote SQUIT and CONNECT
513 <         * remoteban    - allows remote KLINE/UNKLINE
514 <         * dline        - allows DLINE
515 <         * undline      - allows UNDLINE
516 <         * kline        - allows KILL and KLINE
517 <         * unkline      - allows UNKLINE
518 <         * gline        - allows GLINE
519 <         * xline        - allows XLINE
520 <         * globops      - allows GLOBOPS
521 <         * operwall     - allows OPERWALL
522 <         * nick_changes - allows oper to see nickchanges via usermode +n
523 <         * rehash       - allows oper to REHASH config
524 <         * die          - allows DIE
525 <         * restart      - allows RESTART
526 <         * set          - allows SET
527 <         * admin        - gives admin privileges. admins for example,
528 <         *                may see the real IP addresses of servers.
510 >         * module         - allows MODULE
511 >         * connect        - allows local CONNECT              | ('P' flag)
512 >         * connect:remote - allows remote CONNECT             | ('Q' flag)
513 >         * squit          - allows local SQUIT                | ('R' flag)
514 >         * squit:remote   - allows remote SQUIT               | ('S' flag)
515 >         * kill           - allows to KILL local clients      | ('N' flag)
516 >         * kill:remote    - allows remote users to be /KILL'd | ('O' flag)
517 >         * remoteban      - allows remote KLINE/UNKLINE       | ('B' flag)
518 >         * dline          - allows DLINE                      |
519 >         * undline        - allows UNDLINE                    |
520 >         * kline          - allows KLINE                      | ('K' flag)
521 >         * unkline        - allows UNKLINE                    | ('U' flag)
522 >         * gline          - allows GLINE                      | ('G' flag)
523 >         * xline          - allows XLINE                      | ('X' flag)
524 >         * locops         - allows LOCOPS                     |
525 >         * globops        - allows GLOBOPS                    |
526 >         * wallops        - allows WALLOPS                    |
527 >         * operwall       - allows OPERWALL                   | ('L' flag)
528 >         * rehash         - allows oper to REHASH config      | ('H' flag)
529 >         * die            - allows DIE                        | ('D' flag)
530 >         * restart        - allows RESTART                    |
531 >         * set            - allows SET                        |
532 >         * admin          - gives administrator privileges    | ('A' flag)
533           */
534 <        flags = global_kill, remote, kline, unkline, xline, globops, restart,
535 <                die, rehash, nick_changes, admin, operwall, module;
534 >        flags = kill, kill:remote, connect, connect:remote, kline, unkline,
535 >                xline, globops, restart, die, rehash, admin, operwall, module;
536   };
537  
538   /*
# Line 523 | Line 554 | connect {
554          name = "irc.uplink.com";
555  
556          /*
557 <         * host: the host or IP to connect to.  If a hostname is used it
557 >         * host: the host or IP to connect to. If a hostname is used it
558           * must match the reverse dns of the server.
559           */
560          host = "192.168.0.1";
# Line 552 | Line 583 | connect {
583          port = 6666;
584  
585          /*
586 <         * hub_mask: the mask of servers that this server may hub.  Multiple
587 <         * entries are permitted
586 >         * hub_mask: the mask of servers that this server may hub. Multiple
587 >         * entries are permitted.
588           */
589          hub_mask = "*";
590  
591          /*
592 <         * leaf_mask: the mask of servers this server may not hub.  Multiple
593 <         * entries are permitted.  Useful for forbidding EU -> US -> EU routes.
592 >         * leaf_mask: the mask of servers this server may not hub. Multiple
593 >         * entries are permitted. Useful for forbidding EU -> US -> EU routes.
594           */
595   #       leaf_mask = "*.uk";
596  
# Line 578 | Line 609 | connect {
609           * Multiple ciphers are separated by colons. The order of preference
610           * is from left to right.
611           */
612 <        #ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
612 > #       ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA";
613 >
614 >        /*
615 >         * ssl_certificate_fingerprint: enhances security by additionally checking
616 >         * the server's client certificate fingerprint against the specified
617 >         * fingerprint below.
618 >         */
619 > #       ssl_certificate_fingerprint = "4C62287BA6776A89CD4F8FF10A62FFB35E79319F51AF6C62C674984974FCCB1D";
620  
621          /*
622           * autoconn   - controls whether we autoconnect to this server or not,
# Line 642 | Line 680 | cluster {
680   *
681   * NOTE: This can be effectively used for remote klines.
682   *       Please note that there is no password authentication
683 < *       for users setting remote klines.  You must also be
683 > *       for users setting remote klines. You must also be
684   *       /oper'd in order to issue a remote kline.
685   */
686   shared {
687          /*
688 <         * name: the server the user must be on to set klines.  If this is not
688 >         * name: the server the user must be on to set klines. If this is not
689           * specified, the user will be allowed to kline from all servers.
690           */
691          name = "irc2.some.server";
692  
693          /*
694 <         * user: the user@host mask that is allowed to set klines.  If this is
694 >         * user: the user@host mask that is allowed to set klines. If this is
695           * not specified, all users on the server above will be allowed to set
696           * a remote kline.
697           */
# Line 684 | Line 722 | kill {
722          reason = "Obviously hacked account";
723   };
724  
687 kill {
688        user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$";
689
690        /*
691         * NOTE: You have to set type=regex; when using a regular expression
692         * based user entry
693         */
694        type = regex;
695 };
696
725   /*
726   * deny {}:  IPs that are not allowed to connect (before DNS/ident lookup)
727   * Oper issued dlines will be added to the specified dline config
# Line 704 | Line 732 | deny {
732   };
733  
734   /*
735 < * exempt {}: IPs that are exempt from deny {} and Dlines
735 > * exempt {}:  IPs that are exempt from deny {} and Dlines
736   */
737   exempt {
738          ip = "192.168.0.0/16";
# Line 713 | Line 741 | exempt {
741   /*
742   * resv {}:  nicks and channels users may not use/join
743   */
744 + resv { mask = "clone*"; reason = "Clone bots"; };
745 + resv { mask = "ChanServ"; reason = "Reserved for services"; };
746 + resv { mask = "NickServ"; reason = "Reserved for services"; };
747 + resv { mask = "OperServ"; reason = "Reserved for services"; };
748 + resv { mask = "MemoServ"; reason = "Reserved for services"; };
749 + resv { mask = "BotServ"; reason = "Reserved for services"; };
750 + resv { mask = "HelpServ"; reason = "Reserved for services"; };
751 + resv { mask = "HostServ"; reason = "Reserved for services"; };
752 + resv { mask = "StatServ"; reason = "Reserved for services"; };
753 + resv { mask = "#*services*"; reason = "Reserved for services"; };
754 +
755   resv {
756 <        /* reason: the reason for the proceeding resv's */
757 <        reason = "Reserved for services";
756 >        /*
757 >         * mask: masks starting with a '#' are automatically considered
758 >         * as channel name mask.
759 >         */
760 >        mask = "#helsinki";
761 >        reason = "Channel is reserved for finnish inhabitants";
762  
763 <        /* resv: the nicks and channels users may not join/use */
764 <        nick = "Global";
765 <        nick = "DevNull";
766 <        nick = "BotServ";
767 <        nick = "Services";
768 <        nick = "StatServ";
726 <        nick = "HelpServ";
727 <        nick = "HostServ";
728 <        nick = "NickServ";
729 <        nick = "ChanServ";
730 <        nick = "MemoServ";
731 <        nick = "OperServ";
732 <        channel = "#services";
733 <
734 <        /* resv: wildcard masks are also supported in nicks only */
735 <        reason = "Clone bots";
736 <        nick = "clone*";
763 >        /*
764 >         * exempt: can be either a ISO 3166 alpha-2 two letter country
765 >         * code, or a nick!user@host mask. CIDR is supported. Exempt
766 >         * entries can be stacked.
767 >         */
768 >        exempt = "FI";
769   };
770  
771   /*
772 < * gecos {}:  The X: replacement, used for banning users based on
741 < * their "realname".
772 > * gecos {}:  Used for banning users based on their "realname".
773   */
774   gecos {
775          name = "*sex*";
# Line 750 | Line 781 | gecos {
781          reason = "Trojan drone";
782   };
783  
753 gecos {
754        name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
755
756        /*
757         * NOTE: You have to set type=regex; when using a regular expression
758         * based name entry
759         */
760        type = regex;
761 };
762
784   /*
785   * channel {}:  The channel block contains options pertaining to channels
786   */
# Line 780 | Line 801 | channel {
801          disable_fake_channels = yes;
802  
803          /*
783         * restrict_channels: reverse channel RESVs logic, only reserved
784         * channels are allowed
785         */
786        restrict_channels = no;
787
788        /*
804           * knock_delay: The amount of time a user must wait between issuing
805           * the knock command.
806           */
# Line 809 | Line 824 | channel {
824           */
825          max_chans_per_oper = 50;
826  
812        /* quiet_on_ban: stop banned people talking in channels. */
813        quiet_on_ban = yes;
814
827          /* max_bans: maximum number of +b/e/I modes in a channel */
828          max_bans = 100;
829  
# Line 833 | Line 845 | channel {
845  
846          /*
847           * default_split_user_count: when the usercount is lower than this level,
848 <         * consider ourselves split.  This must be set for automatic splitmode.
848 >         * consider ourselves split. This must be set for automatic splitmode.
849           */
850          default_split_user_count = 0;
851  
852          /*
853           * default_split_server_count: when the servercount is lower than this,
854 <         * consider ourselves split.  This must be set for automatic splitmode.
854 >         * consider ourselves split. This must be set for automatic splitmode.
855           */
856          default_split_server_count = 0;
857  
# Line 856 | Line 868 | channel {
868   */
869   serverhide {
870          /*
871 +         * disable_remote_commands: disable users doing commands
872 +         * on remote servers.
873 +         */
874 +        disable_remote_commands = no;
875 +
876 +        /*
877           * flatten_links: this option will show all servers in /links appear
878 <         * that they are linked to this current server
878 >         * that they are linked to this current server.
879           */
880          flatten_links = no;
881  
# Line 869 | Line 887 | serverhide {
887  
888          /*
889           * hidden: hide this server from a /links output on servers that
890 <         * support it.  This allows hub servers to be hidden etc.
890 >         * support it. This allows hub servers to be hidden etc.
891           */
892          hidden = no;
893  
# Line 880 | Line 898 | serverhide {
898          hide_servers = no;
899  
900          /*
901 +         * hide_services: define this if you want to hide the location of
902 +         * services servers that are specified in the service{} block.
903 +         */
904 +        hide_services = no;
905 +
906 +        /*
907           * Use this as the servername users see if hide_servers = yes.
908           */
909          hidden_name = "*.hidden.com";
# Line 910 | Line 934 | general {
934          /* max_watch: maximum WATCH entries a client can have. */
935          max_watch = 60;
936  
937 <        /* gline_enable: enable glines, network wide temp klines */
937 >        /* gline_enable: enable glines, network wide temp klines. */
938          gline_enable = yes;
939  
940          /*
941           * gline_duration: the amount of time a gline will remain on your
942 <         * server before expiring
942 >         * server before expiring.
943           */
944          gline_duration = 1 day;
945  
946          /*
947 <         * gline_request_duration:  how long a pending G-line can be around.
948 <         * 10 minutes should be plenty
947 >         * gline_request_duration: how long a pending G-line can be around.
948 >         * 10 minutes should be plenty.
949           */
950          gline_request_duration = 10 minutes;
951  
952          /*
953           * gline_min_cidr: the minimum required length of a CIDR bitmask
954 <         * for IPv4 based glines
954 >         * for IPv4 based glines.
955           */
956          gline_min_cidr = 16;
957  
958          /*
959           * gline_min_cidr6: the minimum required length of a CIDR bitmask
960 <         * for IPv6 based glines
960 >         * for IPv6 based glines.
961           */
962          gline_min_cidr6 = 48;
963  
# Line 943 | Line 967 | general {
967          invisible_on_connect = yes;
968  
969          /*
970 <         * Max time from the nickname change that still causes KILL
971 <         * automatically to switch for the current nick of that user.
970 >         * kill_chase_time_limit: maximum time from the nickname change that
971 >         * still causes KILL automatically to switch for the current nick of
972 >         * that user.
973           */
974          kill_chase_time_limit = 90 seconds;
975  
976          /*
977 <         * If hide_spoof_ips is disabled, opers will be allowed to see the real
977 >         * hide_spoof_ips: if disabled, opers will be allowed to see the real
978           * IP of spoofed users in /trace etc. If this is defined they will be
979           * shown a masked IP.
980           */
981          hide_spoof_ips = yes;
982  
983          /*
984 <         * Ignore bogus timestamps from other servers.  Yes, this will desync
985 <         * the network, but it will allow chanops to resync with a valid non TS 0
984 >         * Ignore bogus timestamps from other servers. Yes, this will desync the
985 >         * network, but it will allow chanops to resync with a valid non TS 0
986           *
987           * This should be enabled network wide, or not at all.
988           */
# Line 969 | Line 994 | general {
994           */
995          disable_auth = no;
996  
972        /* disable_remote_commands: disable users doing commands on remote servers */
973        disable_remote_commands = no;
974
997          /*
998           * tkline_expire_notices: enables or disables temporary kline/xline
999           * expire notices.
# Line 980 | Line 1002 | general {
1002  
1003          /*
1004           * default_floodcount: the default value of floodcount that is configurable
1005 <         * via /quote set floodcount.  This is the amount of lines a user
1005 >         * via /quote set floodcount. This is the amount of lines a user
1006           * may send to any other user/channel in one second.
1007           */
1008          default_floodcount = 10;
# Line 999 | Line 1021 | general {
1021  
1022          /*
1023           * min_nonwildcard: the minimum non wildcard characters in k/d/g lines
1024 <         * placed via the server.  klines hand placed are exempt from limits.
1025 <         * wildcard chars: '.' ':' '*' '?' '@' '!' '#'
1024 >         * placed via the server. K-lines hand placed are exempt from limits.
1025 >         * Wildcard chars: '.', ':', '*', '?', '@', '!'
1026           */
1027          min_nonwildcard = 4;
1028  
1029          /*
1030           * min_nonwildcard_simple: the minimum non wildcard characters in
1031 <         * gecos bans.  wildcard chars: '*' '?' '#'
1031 >         * gecos bans. Wildcard chars: '*', '?'
1032           */
1033          min_nonwildcard_simple = 3;
1034  
1035 <        /* max_accept: maximum allowed /accept's for +g usermode */
1035 >        /* max_accept: maximum allowed /accept's for +g usermode. */
1036          max_accept = 20;
1037  
1038 <        /* anti_nick_flood: enable the nickflood control code */
1038 >        /* anti_nick_flood: enable the nickflood control code. */
1039          anti_nick_flood = yes;
1040  
1041          /* nick flood: the nick changes allowed in the specified period */
# Line 1028 | Line 1050 | general {
1050  
1051          /*
1052           * ts delta: the time delta allowed between server clocks before
1053 <         * a warning is given, or before the link is dropped.  all servers
1053 >         * a warning is given, or before the link is dropped. All servers
1054           * should run ntpdate/rdate to keep clocks in sync
1055           */
1056          ts_warn_delta = 30 seconds;
# Line 1036 | Line 1058 | general {
1058  
1059          /*
1060           * warn_no_nline: warn opers about servers that try to connect but
1061 <         * we don't have a connect {} block for.  Twits with misconfigured
1061 >         * we don't have a connect {} block for. Twits with misconfigured
1062           * servers can get really annoying with this enabled.
1063           */
1064          warn_no_nline = yes;
1065  
1066          /*
1067           * stats_e_disabled: set this to 'yes' to disable "STATS e" for both
1068 <         * operators and administrators.  Doing so is a good idea in case
1068 >         * operators and administrators. Doing so is a good idea in case
1069           * there are any exempted (exempt{}) server IPs you don't want to
1070           * see leaked.
1071           */
# Line 1056 | Line 1078 | general {
1078          stats_P_oper_only = yes;
1079  
1080          /*
1081 <         * stats i oper only: make stats i (auth {}) oper only. set to:
1082 <         *     yes:    show users no auth blocks, made oper only.
1083 <         *     masked: show users first matching auth block
1084 <         *     no:     show users all auth blocks.
1081 >         * stats i oper only: make stats i (auth {}) oper only. Set to:
1082 >         *     yes    - show users no auth blocks, made oper only.
1083 >         *     masked - show users first matching auth block
1084 >         *     no     - show users all auth blocks.
1085           */
1086          stats_i_oper_only = yes;
1087  
1088          /*
1089 <         * stats_k_oper_only: make stats k/K (klines) oper only.  set to:
1090 <         *     yes:    show users no auth blocks, made oper only
1091 <         *     masked: show users first matching auth block
1092 <         *     no:     show users all auth blocks.
1089 >         * stats_k_oper_only: make stats k/K (klines) oper only. Set to:
1090 >         *     yes    - show users no auth blocks, made oper only
1091 >         *     masked - show users first matching auth block
1092 >         *     no     - show users all auth blocks.
1093           */
1094          stats_k_oper_only = yes;
1095  
# Line 1112 | Line 1134 | general {
1134  
1135          /*
1136           * true_no_oper_flood: completely eliminate flood limits for opers
1137 <         * and for clients with can_flood = yes in their auth {} blocks
1137 >         * and for clients with can_flood = yes in their auth {} blocks.
1138           */
1139          true_no_oper_flood = yes;
1140  
1141 <        /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1141 >        /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels. */
1142          oper_pass_resv = yes;
1143  
1144          /* REMOVE ME.  The following line checks you've been reading. */
# Line 1124 | Line 1146 | general {
1146  
1147          /*
1148           * max_targets: the maximum amount of targets in a single
1149 <         * PRIVMSG/NOTICE.  Set to 999 NOT 0 for unlimited.
1149 >         * PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited.
1150           */
1151          max_targets = 4;
1152  
1153          /*
1132         * message_locale: the default message locale
1133         * Use "standard" for the compiled in defaults.
1134         * To install the translated messages, go into messages/ in the
1135         * source directory and run `make install'.
1136         */
1137        message_locale = "standard";
1138
1139        /*
1154           * usermodes configurable: a list of usermodes for the options below
1155           *
1156           * +b - bots         - See bot and drone flooding notices
1157           * +c - cconn        - Client connection/quit notices
1144         * +C - cconn_full   - Client connection/quit notices full
1158           * +D - deaf         - Don't receive channel messages
1159           * +d - debug        - See debugging notices
1160 +         * +e - external     - See remote server connection and split notices
1161 +         * +F - farconnect   - Remote client connection/quit notices
1162           * +f - full         - See auth{} block full notices
1163           * +G - softcallerid - Server Side Ignore for users not on your channels
1164           * +g - callerid     - Server Side Ignore (for privmsgs etc)
# Line 1154 | Line 1169 | general {
1169           * +k - skill        - See server generated KILL messages
1170           * +l - locops       - See LOCOPS messages
1171           * +n - nchange      - See client nick changes
1172 +         * +R - nononreg     - Only receive private messages from registered clients
1173           * +s - servnotice   - See general server notices
1174           * +u - unauth       - See unauthorized client notices
1175           * +w - wallop       - See server generated WALLOPS
1160         * +x - external     - See remote server connection and split notices
1176           * +y - spy          - See LINKS, STATS, TRACE notices etc.
1177           * +z - operwall     - See oper generated WALLOPS
1178           */
1179  
1180          /* oper_only_umodes: usermodes only opers may set */
1181 <        oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1181 >        oper_only_umodes = bots, cconn, debug, full, hidden, skill,
1182                             nchange, rej, spy, external, operwall,
1183 <                           locops, unauth;
1183 >                           locops, unauth, farconnect;
1184  
1185          /* oper_umodes: default usermodes opers get when they /oper */
1186          oper_umodes = bots, locops, servnotice, operwall, wallop;
1187  
1188          /*
1189           * use_egd: if your system does not have *random devices yet you
1190 <         * want to use OpenSSL and encrypted links, enable this.  Beware -
1191 <         * EGD is *very* CPU intensive when gathering data for its pool
1190 >         * want to use OpenSSL and encrypted links, enable this. Beware -
1191 >         * EGD is *very* CPU intensive when gathering data for its pool.
1192           */
1193   #       use_egd = yes;
1194  
# Line 1185 | Line 1200 | general {
1200  
1201          /*
1202           * throttle_time: the minimum amount of time between connections from
1203 <         * the same ip.  exempt {} blocks are excluded from this throttling.
1204 <         * Offers protection against flooders who reconnect quickly.  
1203 >         * the same ip. exempt {} blocks are excluded from this throttling.
1204 >         * Offers protection against flooders who reconnect quickly.
1205           * Set to 0 to disable.
1206           */
1207          throttle_time = 10;
# Line 1200 | Line 1215 | modules {
1215          path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1216          path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
1217  
1218 <        /* module: the name of a module to load on startup/rehash */
1219 <        #module = "some_module.la";
1218 >        /* module: the name of a module to load on startup/rehash. */
1219 > #       module = "some_module.la";
1220   };
1221  
1222   /*
# Line 1213 | Line 1228 | log {
1228  
1229          file {
1230                  type = oper;
1231 <                name = "/home/ircd/var/log/oper.log";
1231 >                name = "/usr/local/ircd/var/log/oper.log";
1232                  size = unlimited;
1233          };
1234  
1235          file {
1236                  type = user;
1237 <                name = "/home/ircd/var/log/user.log";
1237 >                name = "/usr/local/ircd/var/log/user.log";
1238                  size = 50 megabytes;
1239          };
1240  
1241          file {
1242                  type = kill;
1243 <                name = "/home/ircd/var/log/kill.log";
1243 >                name = "/usr/local/ircd/var/log/kill.log";
1244                  size = 50 megabytes;
1245          };
1246  
1247          file {
1248                  type = kline;
1249 <                name = "/home/ircd/var/log/kline.log";
1249 >                name = "/usr/local/ircd/var/log/kline.log";
1250                  size = 50 megabytes;
1251          };
1252  
1253          file {
1254                  type = dline;
1255 <                name = "/home/ircd/var/log/dline.log";
1255 >                name = "/usr/local/ircd/var/log/dline.log";
1256                  size = 50 megabytes;
1257          };
1258  
1259          file {
1260                  type = gline;
1261 <                name = "/home/ircd/var/log/gline.log";
1261 >                name = "/usr/local/ircd/var/log/gline.log";
1262                  size = 50 megabytes;
1263          };
1264  
1265          file {
1266                  type = debug;
1267 <                name = "/home/ircd/var/log/debug.log";
1267 >                name = "/usr/local/ircd/var/log/debug.log";
1268                  size = 50 megabytes;
1269 <        };
1269 >        };
1270   };

Diff Legend

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