We supply zone-files to our customers. Some zone files are big about 300MB and some are quite small, maybe like 1MB. We had this issue that someone setup a script to continually download the file. Imagine downloading 300MB file a few hundred times a day. Since, we don't have packet-shaper to throttle the traffic, we need to upgrade ftp server and use add-on modules to limit the download somehow. We currently use proftpd server. Also note that there are different users for different domains - say, if you want to download zone file for .INFO domain, then you use a particular user. That user can't download any other zone's file. This is what we are looking for:
Have maximum of 400MB download per user per day. Or even have different download limit for different users per day.
Have one connection per user at any time.
Max # of connection (non-simultaneous) per user per day is 5. Anyone trying to exceed that gets banned for 24 hours.
Has anyone used FTP server with similar restrictions above? Does anyone have any ideas where I can start? Any help would be appreciated. Thanks.
-N
Not directly FTP-related, but I'd go and solve the cause (customers doing repeated downloads of the whole zone file) rather than slowing things around (with a possibly more complex setup). Have you considered:
Zone files are big chunks of data with little parts changing, they scream for an incremental kind of transfer instead of full downloads every time.
You may want to check out FileZilla. I believe it should have all the functionality that you are looking for.
We have used CrushFTP running on Windows 2003. It works on other platforms as well and no clinet needed CrushFTP Overview
Many features for secure access with HTTPS and others. It can limit connections, set max file size and do other limits on access. Many other great features, low cost and great support. Have not tried V5 but last version has been great. Worth a look
The Bitvise WinSSHD will probably do what you need via the wcfg config utility.