Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-27-2004, 11:21 AM   #1
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Rep: Reputation: 30
Restricting Bandwidth to FTP server

How can I restrict the download speeds of people accessing my FTP server. I am using proFTPD with a webmin interface.

Old 08-27-2004, 02:56 PM   #2
LQ Newbie
Registered: Aug 2004
Location: seatle, wa
Posts: 5

Rep: Reputation: 0
Boffy -
The bandwidth control mechanisms inside Proftpd have changed dramatically during the 1.2.0 development and release cycle. The original 'Bandwidth' directive has been removed and replaced with a nubmer of 'Rate*' directives. These only work on a per session basis with no scope for limiting on a VirtualHost basis or a netblock basis. This functionality is planned for the 1.3.x development branch.

Example 14-2. Simple throttling config

Bandwidth 81920

is replaced with something like

RateReadBPS 81920
RateReadFreeBytes 5120
RateReadHardBPS on
To achieve a total limit on a per virtual basis a mix of RateReadBPS and MaxClients is needed. ie RateReadBPS x MaxClients = Total Bandwidth allocation. There is no way (at the moment) to specify that virtual server xyz has a maximum total bandwidth of 200K/s that it can use between all connections.

Per-virtual, per-user and global limits are currently in the "to be coded" pile and are being penciled in for the 1.3.x development series. There is some work in providing for a shared communication system between servers before this can happen.
you could also do this via iptables and the limit directive... however if you are unfamiliar with iptables I wouldn't recommend this



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
Restricting bandwidth using proxy mercunium Linux - Networking 0 03-03-2004 04:11 PM
restricting accounts in wu-ftp dkc_ace Linux - Software 18 01-12-2003 12:14 AM
bandwidth control under proftpd ftp server adrianmak Linux - Networking 1 01-02-2003 04:54 PM
Restricting FTP Users mtellin Linux - Networking 1 02-28-2002 09:54 PM
Wu-FTP / Restricting users to one directory DJFauß Linux - Networking 0 12-22-2001 12:42 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:31 AM.

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