LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-09-2005, 04:55 PM   #1
mpls mikeg
LQ Newbie
 
Registered: Sep 2004
Location: Mpls, MN
Distribution: Gentoo
Posts: 4

Rep: Reputation: 0
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth?


Vsftpd - how to limit download bandwidth but unlimited upload bandwidth?

here's my vsftpd.conf

anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
nopriv_user=nobody
chroot_list_enable=YES
background=YES
listen=YES
text_userdb_names=YES
local_root=/home/data
write_enable=YES
pam_service_name=vsftpd
tcp_wrappers=YES
ftpd_banner=Welcome to my FTP server
local_max_rate=10000
max_clients=2
max_per_ip=1

I discovered that the local_max_rate clamped down the upload speeds. Undesirable. Any ideas?
 
Old 08-13-2005, 01:40 PM   #2
yvesg
Member
 
Registered: May 2004
Distribution: SuSe v9.3 Professional
Posts: 33

Rep: Reputation: 15
Hmz, I don't think this is possible via the config file. (could be wrong)
Morelikely you should be looking for something to limit bandwith via iptables or something .....
 
Old 08-13-2005, 01:45 PM   #3
mpls mikeg
LQ Newbie
 
Registered: Sep 2004
Location: Mpls, MN
Distribution: Gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
But would configuring ip tables affect other services running on the same machine ie.. web server?
 
Old 08-13-2005, 01:52 PM   #4
yvesg
Member
 
Registered: May 2004
Distribution: SuSe v9.3 Professional
Posts: 33

Rep: Reputation: 15
Normally u can set this on port level with IPTABLES, so only limit bandwith to the ftp data port. And in specific from internal to external interface.

I once did something similar to this for an internal pc in my network. (limit upload bandwith)
It had something to do with IPTABLES marking the packages, and another service holding down the bandwith for the marked packages.

I'm not sure how I accieved this but here is the "marking rule" for IPTABLES. Perhaps google knows a way out.

IPTABLES -t mangle -A FORWARD -p tcp -m multiport --destination-port 4662 -j MARK --set-mark 3
 
  


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
Upload bandwidth shaping (SuSE 9.1) whiteunicorn Linux - Networking 8 12-08-2004 05:28 AM
Limit Bandwidth andy7t Linux - Networking 6 11-30-2004 02:44 AM
hosting: unlimited everything w/limited bandwidth/space.. miguetoo General 0 06-17-2004 09:49 PM
bandwidth limit n_sergiu Linux - Networking 5 08-05-2003 05:02 AM
Bandwidth Download limit XCaLiBrE Linux - Networking 1 12-01-2002 11:37 AM


All times are GMT -5. The time now is 06:53 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