LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools Search this Thread
Old 07-31-2004, 10:30 AM   #1
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15
Thanked: 0
How can i Limit FTP speed for any particular USER ???


[Log in to get rid of this advertisement]
Hello,
Anbody have any idea how to limit the FTP speed for a particular user in Red Hat ent. I need to limit [increase/decrease] the FTP speed; though i have been gone through google and many other site but still could not get the +ve reply.

Waiting for your replies
saeed is offline     Reply With Quote
Old 07-31-2004, 10:45 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,173
Thanked: 0
your server is a gateway, or ftp server?
if it is a gateway, there are some how-tos.
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html
http://www.szabilinux.hu/bandwidth/
maxut is offline     Reply With Quote
Old 07-31-2004, 10:46 AM   #3
win32sux
Moderator
 
Registered: Jul 2003
Distribution: Ubuntu 8.10
Posts: 8,748
Thanked: 123
i'm guessing you're using vsftpd, right???

take alook at these options:

# The maximum data transfer rate permitted, in bytes per second, for
# local authenticated users. The default is 0 (unlimited).
#
#local_max_rate=7200

# The maximum data transfer rate permitted, in bytes per second, for anonymous
# authenticated users. The default is 0 (unlimited).
#
#anon_max_rate=7200
win32sux is offline     Reply With Quote
Old 08-01-2004, 01:51 AM   #4
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15
Thanked: 0

Original Poster
Quote:
Originally posted by maxut
your server is a gateway, or ftp server?
if it is a gateway, there are some how-tos.
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html
http://www.szabilinux.hu/bandwidth/
Its a normal server having around 50 domains configured by directadmin; lemme have a look above mentioned urls.

Last edited by saeed; 08-01-2004 at 01:58 AM..
saeed is offline     Reply With Quote
Old 08-01-2004, 01:54 AM   #5
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15
Thanked: 0

Original Poster
Quote:
Originally posted by win32sux
i'm guessing you're using vsftpd, right???

take alook at these options:

# The maximum data transfer rate permitted, in bytes per second, for
# local authenticated users. The default is 0 (unlimited).
#
#local_max_rate=7200

# The maximum data transfer rate permitted, in bytes per second, for anonymous
# authenticated users. The default is 0 (unlimited).
#
#anon_max_rate=7200

Nops I am using ProFTPD.

Please tell me where can i find these options [in which file]..?
saeed is offline     Reply With Quote
Old 08-02-2004, 01:38 AM   #6
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15
Thanked: 0

Original Poster
hello, anybody there... am waiting for replies
saeed is offline     Reply With Quote
Old 08-02-2004, 02:24 AM   #7
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,173
Thanked: 0
have u searched www.proftpd.org ?
i dont know if it is possible. there is something about bandwidth. check it.
http://proftpd.linux.co.uk/localsite...nked/x950.html
maxut is offline     Reply With Quote
Old 08-02-2004, 03:38 AM   #8
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15
Thanked: 0

Original Poster
yeah i already have search at www.proftpd.org; but so far this seems to be not possible
saeed is offline     Reply With Quote
Old 08-02-2004, 03:44 AM   #9
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Thanked: 0
Are you sure you've searched proftpd docs thoroughly?
http://www.proftpd.org/docs/directiv...nsferRate.html
Demonbane is offline     Reply With Quote
Old 08-02-2004, 04:54 AM   #10
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15
Thanked: 0

Original Poster
I think i have been answered correctly; but there is a little confusion.


Could you please tell me in which file i have to look/set for this directive ?

TransferRate [ cmds] [ kilobytes-per-sec[:free-bytes]] [ ["user"|"group"|"class" expression]]

Last edited by saeed; 08-02-2004 at 04:56 AM..
saeed is offline     Reply With Quote
Old 08-02-2004, 06:13 AM   #11
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Thanked: 0
says in the middle:
Quote:

Context
server config, <VirtualHost>, <Global>, <Anonymous>,
<Directory>, .ftpaccess

so that means you can put it in your proftpd config file, .ftpaccess and under also under <VirtualHost>, <Global>, <Anonymous>,
<Directory> directives.
For example if you want to limit the download rate of user "bob" to 20KB throughout the server you can put:
Code:
TransferRate RETR 20 user bob
Demonbane is offline     Reply With Quote

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
Upstream speed - How do I limit ? overproof Linux - Networking 1 04-23-2005 10:31 AM
Limit Apache2's Speed NightShade737 Linux - Software 1 02-08-2004 04:42 PM
How to limit upload speed for IP? wild_beast Linux - Networking 4 11-18-2003 02:14 AM
How can I limit my ftp user to just one directory mtn356 Linux - Software 1 10-28-2003 03:45 PM
any possible way to limit wget d/l speed? ziggie216 Linux - Software 3 10-13-2003 05:27 PM


All times are GMT -5. The time now is 05:34 PM.

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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration