LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2005, 11:57 AM   #1
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Rep: Reputation: 15
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
 
Old 04-09-2005, 12:24 PM   #2
startail
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 52

Rep: Reputation: 15
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
 
Old 04-09-2005, 12:46 PM   #3
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Original Poster
Rep: Reputation: 15
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.
 
Old 04-17-2005, 12:34 PM   #4
overproof
Member
 
Registered: Apr 2005
Distribution: mandrake 10.2, ubuntu 7.10
Posts: 51

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clients BandWidth Calculation ahmad82pkn Linux - Networking 0 10-22-2005 09:38 AM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 02:52 PM
How limit bandwidth cuencano Linux - Networking 10 07-18-2005 05:57 AM
Limit Bandwidth andy7t Linux - Networking 6 11-30-2004 03:44 AM
bandwidth limit n_sergiu Linux - Networking 5 08-05-2003 06:02 AM


All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration