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

Comparing:
ircd-hybrid-8/etc/example.conf (file contents), Revision 1157 by michael, Tue Aug 9 22:03:59 2011 UTC vs.
ircd-hybrid/trunk/doc/reference.conf (file contents), Revision 1825 by michael, Sun Apr 14 19:54:48 2013 UTC

# Line 1 | Line 1
1 < /* doc/example.conf - ircd-hybrid-7 Example configuration file
2 < * Copyright (C) 2000-2011 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          /*
# 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 125 | 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.
131         * 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 143 | Line 189 | admin {
189   };
190  
191   /*
192 < * log {}:  contains information about logfiles.
147 < */
148 < log {
149 <        /* Do you want to enable logging to ircd.log? */
150 <        use_logging = yes;
151 <
152 <        /*
153 <         * logfiles: the logfiles to use for user connects, /oper uses,
154 <         * and failed /oper.  These files must exist for logging to be used.
155 <         */
156 <        fname_userlog = "logs/userlog";
157 <        fname_operlog = "logs/operlog";
158 <        fname_killlog = "logs/kill";
159 <        fname_klinelog = "logs/kline";
160 <        fname_glinelog = "logs/gline";
161 <
162 <        /*
163 <         * log_level: the amount of detail to log in ircd.log.  The
164 <         * higher, the more information is logged.  May be changed
165 <         * once the server is running via /quote SET LOG.  Either:
166 <         * L_CRIT, L_ERROR, L_WARN, L_NOTICE, L_TRACE, L_INFO or L_DEBUG
167 <         */
168 <        log_level = L_INFO;
169 < };
170 <
171 < /*
172 < * 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 212 | 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 223 | 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 231 | Line 277 | class {
277          ping_time = 90 seconds;
278  
279          /*
234         * ping_warning: how fast a server must reply to a PING before
235         * a warning to opers is generated.
236         */
237        ping_warning = 15 seconds;
238
239        /*
280           * connectfreq: only used in server classes.  Specifies the delay
281           * between autoconnecting to servers.
282           */
# Line 250 | 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 271 | 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 291 | 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 320 | 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 359 | 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 */
370 <        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
# Line 412 | 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
423         * +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
427         * +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 432 | 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 <         *
457 <         * A flag can be negated with ~ i.e.
458 <         * flags = ~remote;
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 + * 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;
511 >        name = "stats.someserver";
512   };
513  
514   /*
515 < * connect {}:  controls servers we connect to (OLD C:, N:, H:, L:)
515 > * connect {}:  controls servers we connect to
516   */
517   connect {
518          /* name: the name of the server */
# Line 518 | Line 563 | connect {
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
531 <         *              only if the server we are connecting to is capable
532 <         *              of TBURST/TB.
533 <         */
534 < #       flags = autoconn, compressed, cryptlink, burst_away, topicburst;
535 < };
536 <
537 < connect {
538 <        name = "encrypted.auth.example";
539 <        host = "some.host.somewhere";
540 <        port = 6667;
541 <
542 <        flags = cryptlink;
543 <
544 <        /*
545 <         * rsa_public_key_file: the path to the public keyfile of the server.
546 <         * 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:
554 <         *      BF/168 BF/128 CAST/128 IDEA/128 RC5.16/128
555 <         *      RC5.12/128 RC5.8/128 3DES/168 DES/56
556 <         *
557 <         * NOTE:  Some ciphers may not be supported by your OpenSSL.
558 <         *        Check the output from 'configure' for available ciphers.
559 <         *
560 <         * NOTE2: To help you decide what cipher to use, tools/encspeed
561 <         *        will show you approximately how fast each cipher is.
562 <         *        However, blowfish is fast and secure, and is probably
563 <         *        a good default for most situations.
564 <         *
565 <         * NOTE3: Default if none is set is BF/128
566 <         *
567 <         * The cipher *MUST* be the same in both directions.  If you
568 <         * set a cipher preference, your uplink must set the same cipher,
569 <         * else it will not link.
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
576 < * the connect "name"{} feature
577 < */
578 < 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 591 | 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 609 | 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
622 <         *      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 648 | 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
659 <         *      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 692 | 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 = "Reserved for services";
715 <
716 <        /* resv: the nicks and channels users may not join/use */
717 <        nick = "NickServ";
718 <        nick = "ChanServ";
719 <        nick = "MemoServ";
720 <        nick = "OperServ";
713 <        channel = "#services";
714 <
715 <        /* resv: wildcard masks are also supported in nicks only */
716 <        reason = "Clone bots";
717 <        nick = "clone*";
718 < };
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 732 | Line 734 | gecos {
734   };
735  
736   gecos {
735        name = "*http*";
736        reason = "Spambot";
737 };
738
739 gecos {
737          name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$";
738  
739          /*
# Line 759 | 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 771 | Line 769 | channel {
769          restrict_channels = no;
770  
771          /*
774         * disable_local_channels: prevent users from joining &channels.
775         */
776        disable_local_channels = no;
777
778        /*
779         * use_invex: Enable/disable channel mode +I, a n!u@h list of masks
780         * that can join a +i channel without an invite.
781         */
782        use_invex = yes;
783
784        /*
785         * use_except: Enable/disable channel mode +e, a n!u@h list of masks
786         * that can join a channel through a ban (+b).
787         */
788        use_except = yes;
789
790        /*
791         * use_knock: Allows users to request an invite to a channel that
792         * is locked somehow (+ikl).  If the channel is +p or you are banned
793         * the knock will not be sent.
794         */
795        use_knock = yes;
796
797        /*
772           * knock_delay: The amount of time a user must wait between issuing
773           * the knock command.
774           */
# Line 807 | 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 883 | Line 857 | serverhide {
857          hidden = no;
858  
859          /*
886         * disable_hidden: prevent servers hiding themselves from a
887         * /links output.
888         */
889        disable_hidden = no;
890
891        /*
860           * hide_servers: hide remote servernames everywhere and instead use
861           * hidden_name and network_desc.
862           */
# Line 909 | Line 877 | serverhide {
877           * logfiles.
878           *
879           * We recommend you leave this disabled, and just take care with who you
880 <         * give admin=yes; to.
880 >         * give administrator privileges to.
881           */
882          hide_server_ips = no;
883   };
884  
885   /*
886   * general {}:  The general block contains many of the options that were once
887 < * compiled in options in config.h.  The general block is read at start time.
887 > * compiled in options in config.h
888   */
889   general {
890          /* services_name: servername of nick/channel services */
# Line 925 | Line 893 | general {
893          /* max_watch: maximum WATCH entries a client can have. */
894          max_watch = 60;
895  
896 +        /* gline_enable: enable glines, network wide temp klines */
897 +        gline_enable = yes;
898 +
899 +        /*
900 +         * gline_duration: the amount of time a gline will remain on your
901 +         * server before expiring
902 +         */
903 +        gline_duration = 1 day;
904 +
905 +        /*
906 +         * gline_request_duration:  how long a pending G-line can be around.
907 +         * 10 minutes should be plenty
908 +         */
909 +        gline_request_duration = 10 minutes;
910 +
911          /*
912           * gline_min_cidr: the minimum required length of a CIDR bitmask
913           * for IPv4 based glines
# Line 943 | Line 926 | general {
926          invisible_on_connect = yes;
927  
928          /*
946         * If you don't explicitly specify burst_away in your connect blocks, then
947         * they will default to the burst_away value below.
948         */
949        burst_away = no;
950
951        /*
952         * Show "actually using host <ip>" on /whois when possible.
953         */
954        use_whois_actually = yes;
955
956        /*
929           * Max time from the nickname change that still causes KILL
930           * automatically to switch for the current nick of that user.
931           */
932          kill_chase_time_limit = 90 seconds;
933  
934          /*
935 <         * If hide_spoof_ips is disabled, opers will be allowed to see the real IP of spoofed
936 <         * users in /trace etc.  If this is defined they will be shown a masked IP.
935 >         * If hide_spoof_ips is disabled, opers will be allowed to see the real
936 >         * IP of spoofed users in /trace etc. If this is defined they will be
937 >         * shown a masked IP.
938           */
939          hide_spoof_ips = yes;
940  
# Line 1045 | Line 1018 | general {
1018          ts_max_delta = 5 minutes;
1019  
1020          /*
1048         * kline_with_reason: show the user the reason why they are k/d/glined
1049         * on exit.  May give away who set k/dline when set via tcm.
1050         */
1051        kline_with_reason = yes;
1052
1053        /*
1054         * kline_reason: show this message to users on channel
1055         * instead of the oper reason.
1056         */
1057        kline_reason = "Connection closed";
1058
1059        /*
1060         * reject_hold_time: wait this amount of time before disconnecting
1061         * a rejected client. Use 0 to disable.
1062         */
1063        reject_hold_time = 0;
1064
1065        /*
1021           * warn_no_nline: warn opers about servers that try to connect but
1022           * we don't have a connect {} block for.  Twits with misconfigured
1023           * servers can get really annoying with this enabled.
# Line 1119 | Line 1074 | general {
1074  
1075          /*
1076           * pace_wait: time between more intensive commands
1077 <         * (INFO, LINKS, LIST, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1077 >         * (AWAY, INFO, LINKS, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS)
1078           */
1079          pace_wait = 10 seconds;
1080  
# Line 1147 | Line 1102 | general {
1102          /* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */
1103          oper_pass_resv = yes;
1104  
1150        /*
1151         * idletime: the maximum amount of time a user may idle before
1152         * they are disconnected
1153         */
1154        idletime = 0;
1155
1105          /* REMOVE ME.  The following line checks you've been reading. */
1106          havent_read_conf = 1;
1107  
# Line 1163 | Line 1112 | general {
1112          max_targets = 4;
1113  
1114          /*
1166         * client_flood: maximum amount of data in a clients queue before
1167         * they are dropped for flooding.
1168         */
1169        client_flood = 2560 bytes;
1170
1171        /*
1115           * message_locale: the default message locale
1116           * Use "standard" for the compiled in defaults.
1117           * To install the translated messages, go into messages/ in the
# Line 1184 | Line 1127 | general {
1127           * +C - cconn_full   - Client connection/quit notices full
1128           * +D - deaf         - Don't receive channel messages
1129           * +d - debug        - See debugging notices
1130 <         * +f - full         - See I: line full notices
1130 >         * +e - external     - See remote server connection and split notices
1131 >         * +f - full         - See auth{} block full notices
1132           * +G - softcallerid - Server Side Ignore for users not on your channels
1133           * +g - callerid     - Server Side Ignore (for privmsgs etc)
1134 +         * +H - hidden       - Hides operator status to other users
1135           * +i - invisible    - Not shown in NAMES or WHO unless you share a
1136           *                     a channel
1137 +         * +j - rej          - See rejected client notices
1138           * +k - skill        - See server generated KILL messages
1139           * +l - locops       - See LOCOPS messages
1140           * +n - nchange      - See client nick changes
1195         * +r - rej          - See rejected client notices
1141           * +s - servnotice   - See general server notices
1142           * +u - unauth       - See unauthorized client notices
1143           * +w - wallop       - See server generated WALLOPS
1199         * +x - external     - See remote server connection and split notices
1144           * +y - spy          - See LINKS, STATS, TRACE notices etc.
1145           * +z - operwall     - See oper generated WALLOPS
1146           */
1147  
1148          /* oper_only_umodes: usermodes only opers may set */
1149 <        oper_only_umodes = bots, cconn, cconn_full, debug, full, skill,
1149 >        oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill,
1150                             nchange, rej, spy, external, operwall,
1151                             locops, unauth;
1152  
# Line 1210 | Line 1154 | general {
1154          oper_umodes = bots, locops, servnotice, operwall, wallop;
1155  
1156          /*
1213         * servlink_path: path to 'servlink' program used by ircd to handle
1214         * encrypted/compressed server <-> server links.
1215         *
1216         * only define if servlink is not in same directory as ircd itself.
1217         */
1218        #servlink_path = "/usr/local/ircd/bin/servlink";
1219
1220        /*
1221         * default_cipher_preference: default cipher to use for cryptlink when none is
1222         * specified in connect block.
1223         */
1224        #default_cipher_preference = "BF/168";
1225
1226        /*
1157           * use_egd: if your system does not have *random devices yet you
1158           * want to use OpenSSL and encrypted links, enable this.  Beware -
1159           * EGD is *very* CPU intensive when gathering data for its pool
# Line 1236 | Line 1166 | general {
1166           */
1167   #       egdpool_path = "/var/run/egd-pool";
1168  
1239
1240        /*
1241         * compression_level: level of compression for compressed links between
1242         * servers.  
1243         *
1244         * values are between: 1 (least compression, fastest)
1245         *                and: 9 (most compression, slowest).
1246         */
1247 #       compression_level = 6;
1248
1169          /*
1170           * throttle_time: the minimum amount of time between connections from
1171           * the same ip.  exempt {} blocks are excluded from this throttling.
# Line 1255 | Line 1175 | general {
1175          throttle_time = 10;
1176   };
1177  
1258 glines {
1259        /* enable: enable glines, network wide temp klines */
1260        enable = yes;
1261
1262        /*
1263         * duration: the amount of time a gline will remain on your
1264         * server before expiring
1265         */
1266        duration = 1 day;
1267
1268        /*
1269         * logging: which types of rules you want to log when triggered
1270         * (choose reject or block)
1271         */
1272        logging = reject, block;
1273
1274        /*
1275         * NOTE: gline ACLs can cause a desync of glines throughout the
1276         * network, meaning some servers may have a gline triggered, and
1277         * others may not. Also, you only need insert rules for glines
1278         * that you want to block and/or reject. If you want to accept and
1279         * propagate the gline, do NOT put a rule for it.
1280         */
1281
1282        /* user@host for rule to apply to */
1283        user = "god@I.still.hate.packets";
1284        /* server for rule to apply to */
1285        name = "hades.arpa";
1286
1287        /*
1288         * action: action to take when a matching gline is found. options are:
1289         *  reject      - do not apply the gline locally
1290         *  block       - do not propagate the gline
1291         */
1292        action = reject, block;
1293
1294        user = "god@*";
1295        name = "*";
1296        action = block;
1297 };
1298
1178   modules {
1179          /*
1180           * path: other paths to search for modules specified below
1181 <         * and in /modload.
1181 >         * and in "/module load".
1182           */
1183          path = "/usr/local/ircd/lib/ircd-hybrid/modules";
1184          path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload";
# Line 1307 | Line 1186 | modules {
1186          /* module: the name of a module to load on startup/rehash */
1187          #module = "some_module.la";
1188   };
1189 +
1190 + /*
1191 + * log {}:  contains information about logfiles.
1192 + */
1193 + log {
1194 +        /* Do you want to enable logging to ircd.log? */
1195 +        use_logging = yes;
1196 +
1197 +        file {
1198 +                type = oper;
1199 +                name = "/home/ircd/var/log/oper.log";
1200 +                size = unlimited;
1201 +        };
1202 +
1203 +        file {
1204 +                type = user;
1205 +                name = "/home/ircd/var/log/user.log";
1206 +                size = 50 megabytes;
1207 +        };
1208 +
1209 +        file {
1210 +                type = kill;
1211 +                name = "/home/ircd/var/log/kill.log";
1212 +                size = 50 megabytes;
1213 +        };
1214 +
1215 +        file {
1216 +                type = kline;
1217 +                name = "/home/ircd/var/log/kline.log";
1218 +                size = 50 megabytes;
1219 +        };
1220 +
1221 +        file {
1222 +                type = dline;
1223 +                name = "/home/ircd/var/log/dline.log";
1224 +                size = 50 megabytes;
1225 +        };
1226 +
1227 +        file {
1228 +                type = gline;
1229 +                name = "/home/ircd/var/log/gline.log";
1230 +                size = 50 megabytes;
1231 +        };
1232 +
1233 +        file {
1234 +                type = debug;
1235 +                name = "/home/ircd/var/log/debug.log";
1236 +                size = 50 megabytes;
1237 +        };
1238 + };

Diff Legend

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