-   Linux - Newbie (
-   -   how do I limit bandwidth to my PROFTPD clients (

overproof 04-09-2005 11:57 AM

how do I limit bandwidth to my PROFTPD clients
I need to change my proftp config to do a couple of things:
1. Limit the number of sessions from same IP address
2. Limit the upstream/downstream bandwidth per client ( ie 20 Kbytes/s down, 50 Kbytes up)

startail 04-09-2005 12:24 PM

For limiting speed you probebly need to use this module

To limit everyone to one session use this...
MaxClientsPerHost 1 "Only 1 simultaneous connection permitted from your host!"

some links that you can use to help yourself...

overproof 04-09-2005 12:46 PM

Thanks for your reply.
I have set the number of sessions per IP ok.
I'm sure I have seen in the past a simple line you enter in the confif file. Something like:
RETR 10: ???
STORE 35: ???
Perhaps someone out there will jog my memory.

overproof 04-17-2005 12:34 PM

For the benefit of others here is the solution which I worked out by experimenting.
Its very simple really.
I added the following 2 lines in the proftpd.config file:
TransferRate RETR 15.0
TransferRate STOR 55.0
This limits the download speed FROM my server to 15 Kbytes/sec
and the upload TO my server to 55 Kbytes/sec
Thats it. It works.:)

All times are GMT -5. The time now is 06:37 AM.