Rudimentary FTP limits. Helps prevent denial of service
attacks. It works by limiting the number of simultaneous
connections by userid. There are three limits, one for anonymous
connections, and one for authenticated logins. The total number
of simultaneous anonymous logins my be less than or equal to the
anonymous limit. Each authenticated user can have up to the user
limit number of simultaneous connections. The total limit is the
maximum number of simultaneous connections of any sort. Do not
set the total limit lower than or equal to the anonymous limit.
Methods
|
|
__init__
check_limit
|
|
__init__
|
__init__ (
self,
anon_limit=10,
user_limit=4,
total_limit=25,
)
|
|
check_limit
|
check_limit ( self, channel )
Check to see if the user has exhausted their limit or not.
Check for existing channels with the same userid and the same
ftp server.
|
|