LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10: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, 11:24 AM   #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, 11:46 AM   #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, 11:34 AM   #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



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 08:38 AM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 01:52 PM
How limit bandwidth cuencano Linux - Networking 10 07-18-2005 04:57 AM
Limit Bandwidth andy7t Linux - Networking 6 11-30-2004 02:44 AM
bandwidth limit n_sergiu Linux - Networking 5 08-05-2003 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 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
Open Source Consulting | Domain Registration