Welcome to the most active Linux Forum on the web.
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 06-25-2004, 06:42 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 8

Rep: Reputation: 0
vsftpd dynamic bandwidth throttle?

I've got vsftpd all set up and it works great, though I've got one minor issue:
I'm on the net via ADSL, and with no bandwidth throttle set in vsftpd.conf anyone downloading from my site completely hogs my outgoing bandwidth, affecting my ability to surf web sites, etc.

I've tried setting anon_max_rate in vsftpd.conf and can indeed limit the outgoing bandwidth used, but then my users complain of slow downloads speeds...

So what I'm trying to achieve is a way to dynamically throttle the bandwidth - ie. I'd like to be able to vary the anon_max_rate value depending on certain conditions.

I'm thinking of a script run from cron every minute which will vary the throttle depending on whether it can ping any of my other local machines; ie. if nothing else is powered on, then turn up the bandwidth allowed for vsftpd, when the other machines are ping'able then lower the throttle.

The script itself is almost trivial, except for the part where I change the throttle... obviously I could have 2 different vsftpd.conf files, one with hi and one with low anon_max_rate, and swap them over when I need to change the throttle, but I assume I'd need to restart xinetd each time - and that'd probably cause too much disruption to other network services...

Does anyone have an ideas?
Thanks in advance!


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
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 02:52 PM
how do you throttle bandwidth? wincen Linux - Networking 1 05-15-2005 01:58 PM
Simple Bandwidth Throttle for Apache ming0 Linux - Networking 1 03-17-2005 10:28 AM
FTP bandwidth throttle lapthorn Linux - Networking 0 05-18-2004 07:40 AM
does the red hat network throttle bandwidth by user? BrianK Linux - General 2 10-02-2002 07:07 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:15 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration