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 |
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 |
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. |
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 05:41 AM. |