LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-25-2004, 05:42 AM   #1
BobM
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Rep: Reputation: 0
vsftpd dynamic bandwidth throttle?


Hi
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!
 
  


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


All times are GMT -5. The time now is 06:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration