Tuesday, December 7, 2010

Proftpd limit bandwidth to my PROFTPD clients

SkyHi @ Tuesday, December 07, 2010
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

Stopping and Starting ProFTPD(compiled)

Start
/usr/local/sbin/proftpd

stop
kill -TERM `cat /usr/local/var/proftpd.pid`

To avoid this,
perform a syntax check of the file before sending the signal:

proftpd -t -d5

REFERENCES
http://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-limit-bandwidth-to-my-proftpd-clients-311417/
http://www.proftpd.org/docs/howto/Stopping.html