View Single Post
Old 03-25-2008, 06:20 PM  
Yil
Too much time...
 
Join Date: May 2005
Posts: 1,194
Default

The current default etc/Hosts.Rules file looks like:

Code:
###
### This is the Hosts.Rules file for ioFTPD.  It is used to control which
### ip addresses and hostnames have access to the server.
###
### This file is read from top to bottom, with the last matching rule
### being the one that applies to the connection.  This means that more
### general rules will tend to be at the top of the file, with more
### specific rules matching later (lower).
###

## policy
##
## format:
##   POLICY ACCEPT CONNECTIONS_PER_IP
##   POLICY DENY
##
## The connections_per_ip argument here appears to only be necessary when
## the server is setup to allow anonymous users or you have multiple users
## sharing accounts.  This is because you would normally limit a specific
## user to just 1 or 2 simultaneous connections in the individual user's
## account settings.  However when you wish to do something like support
## 10 anon users but you don't want any one person hogging all of slots
## you can use connections_per_ip to prevent this.
##
## By default, we accept all incomming connections.
##
POLICY  ACCEPT  4


## classes
##
## format:
##   CLASS        CLASS_NAME        TOTAL_CONNECTIONS_PER_CLASS
##
## -1 for TOTAL_CONNECTIONS_PER_CLASS means unlimited.
##
##
CLASS USERS	25
CLASS ADMIN	-1


## rules
##
## rules determine which ip addresses can connect to your server.
##
## rules can be specified by ip address ('I') or hostname ('H').
## both the ip address and hostname can be partial addresses, for
## instance the class C block of '192.168.1.' or any '.com' address.
##
## format:
##   ACCEPT  I|H     IP|HOSTNAME     CLASS_NAME      CONNECTIONS_PER_IP
##   DENY    I|H     IP|HOSTNAME     LOG_STRING
##
ACCEPT  I 127.0.0.      ADMIN   -1
ACCEPT  I 192.168.      ADMIN	-1
use: POLICY ACCEPT 10 or something to get 10 per IP. The file you posted is quite old and likely from 5.8.5 or something so perhaps you might want to upgrade too
Yil is offline   Reply With Quote