Subject: Re: ftpd per host connection limit
To: Luke Mewburn <lukem@NetBSD.org>
From: dieter <dieter.NetBSD@pandora.be>
Date: 12/20/2003 12:19:56
On Sat, 20 Dec 2003, Luke Mewburn wrote:
> It's a good start, but I think the functionality needs to be more flexible.
> At a minimum, we should be able to specify an optional "prefixlen",
> which for IPv4 defaults to 32 (single host):
> limitpernet <class> <number> [<prefix>]
> For example,
> limitpernet guest 41 24
> would mean that a maximum of 41 simultaneous connections could occur
> for any given /24 (i.e, 256 IP addresses). Your code would need to be
> reworked to store a 4 byte IPv4 address and 1 byte prefix or 4 byte
> mask, instead of the existing hostname. The code should support IPv6
> too, so we'd need 16 bytes for address and 1 byte for the prefix length.
I see what you mean. I'll look into it.
> Have you researched how other ftp servers allow this sort of
> functionality to be configured?
No, not yet. But I will now.
Thanks for the feedback. :)
There is virtue in doing the right thing just for
the sake of doing it right. -- Nicholas Petreley