Ignore:
Timestamp:
06/04/07 21:17:16 (5 years ago)
Author:
wd
Message:

The config-files here got nuked somehow (??). Undo the damage, update them
a little, and also update dependencies for the 1459 protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/modules/ircd/etc/acl.conf

    r745 r807  
     1// $Id$ 
     2 
     3/* 
     4** acl section 
     5** this section defines access control rules for the server.  access is 
     6** controlled by host masks.  Hostmasks may have several forms:  they may be 
     7** in CIDR form (ip/bits), standard pattern form, or 'host' pattern form 
     8** (see doc/hostmatch.txt).  ACLs are handled in a first matched fashion, 
     9** and should be added in the order of most specific to least specific in 
     10** the conf file.  Alternatively, you may give your ACLs rule numbers and 
     11** order them that way.  Some examples are provided below. 
     12** 
     13** ACLs come in three stages: 
     14** stage one (where former Z:lines and throttles were placed) is evaluated 
     15** as soon as a socket connection is made.  stage one checks are only valid 
     16** against IP address, and no username is available.  stage one checks occur 
     17** before any resources are really allocated to the connection. 
     18** 
     19** stage two (not available in previous daemons) is evaluated directly after 
     20** dns and ident checks have been performed on the connection, but before it 
     21** is known whether the connection wishes to register as a client or server. 
     22** these can be useful to block abusive connections from users in a variable 
     23** IP range trying to register as servers.  it can also be used as a 
     24** draconian means of forcing EVERY connection to have ident. 
     25** 
     26** stage three (I:lines, K:lines, etc) is evaluated when a client attempts 
     27** to register on the server.  it only effects *clients* (unlike the other 
     28** two stages), and has several more options.  some examples are listed 
     29** below. 
     30*/ 
     31 
     32/* 
     33** These two specify the default rule numbers for ACLs.  The first is the 
     34** default for 'runtime' ACLs (that is, ACLs added from commands the server 
     35** handles).  The second is the default for 'configured' ACLs (the ACLs in 
     36** this file).  They are commented out, but have their default values below. 
     37** Also, when ACLs are added rule numbers *do not* automatically increment. 
     38** Valid rules are 0-65535. 
     39*/ 
     40//default-acl-rule 1000; 
     41//default-acl-conf-rule 2000; 
     42 
     43// deny all connections from localhost 
     44acl { 
     45    stage 1;                // be sure to check right away 
     46    host "127.0.0.0/8"; 
     47    access deny; 
     48    reason "please do not connect from localhost"; 
     49}; 
     50 
     51// deny connections from the '0::/16' IPv6 prefix (this tends to cause a lot 
     52// of protocol problems on IRC 
     53acl { 
     54    stage 1; 
     55    host "0::/16"; 
     56    access deny; 
     57    reason "please do not connect from the 0:: prefix"; 
     58}; 
     59 
     60// and of course, all other stage one connections are allowed. 
     61 
     62// allow users of an internal network to always connect.  do this by placing 
     63// this ACL at a high rule position (rule 100 here). 
     64acl 100 { 
     65    // if no stage is specified, stage 3 is assumed 
     66    host "*@192.168.42.*"; 
     67    access allow;                // this overrides all other types 
     68    class ereet;                // the class specification is optional, but 
     69                                // recommended.  put them in a special class 
     70}; 
     71 
     72// deny connections from users who aren't running identd 
     73acl { 
     74    host "~*@*"; 
     75    access deny; 
     76    reason "please enable the auth/ident (rfc1413) service on your computer"; 
     77}; 
     78 
     79// now make sure to allow all other connections through.  remember to keep 
     80// broad ACLs such as this at the bottom of the file! 
     81acl { 
     82    host "*"; 
     83    access allow; 
     84    class clients; 
     85}; 
     86 
Note: See TracChangeset for help on using the changeset viewer.