LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do I limit bandwidth to my PROFTPD clients (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-limit-bandwidth-to-my-proftpd-clients-311417/)

overproof 04-09-2005 10:57 AM

how do I limit bandwidth to my PROFTPD clients
 
Hi,
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)
Thanks

startail 04-09-2005 11:24 AM

For limiting speed you probebly need to use this module
http://www.castaglia.org/proftpd/mod...od_shaper.html

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...
http://www.ls-l.net/ftp/
http://www.proftpd.org/docs/directiv...d/by-name.html

overproof 04-09-2005 11:46 AM

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 11:34 AM

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 02:25 PM.