LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 07-31-2004, 09:30 AM   #1
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Rep: Reputation: 0
How can i Limit FTP speed for any particular USER ???


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
 
Old 07-31-2004, 09:45 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
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/
 
Old 07-31-2004, 09:46 AM   #3
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
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
 
Old 08-01-2004, 12:51 AM   #4
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Original Poster
Rep: Reputation: 0
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 12:58 AM.
 
Old 08-01-2004, 12:54 AM   #5
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Original Poster
Rep: Reputation: 0
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]..?
 
Old 08-02-2004, 12:38 AM   #6
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Original Poster
Rep: Reputation: 0
hello, anybody there... am waiting for replies
 
Old 08-02-2004, 01:24 AM   #7
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
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
 
Old 08-02-2004, 02:38 AM   #8
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Original Poster
Rep: Reputation: 0
yeah i already have search at www.proftpd.org; but so far this seems to be not possible
 
Old 08-02-2004, 02:44 AM   #9
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Are you sure you've searched proftpd docs thoroughly?
http://www.proftpd.org/docs/directiv...nsferRate.html
 
Old 08-02-2004, 03:54 AM   #10
saeed
LQ Newbie
 
Registered: Jun 2003
Location: KSA
Distribution: Red Hat
Posts: 15

Original Poster
Rep: Reputation: 0
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 03:56 AM.
 
Old 08-02-2004, 05:13 AM   #11
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upstream speed - How do I limit ? overproof Linux - Networking 1 04-23-2005 09:31 AM
Limit Apache2's Speed NightShade737 Linux - Software 1 02-08-2004 03:42 PM
How to limit upload speed for IP? wild_beast Linux - Networking 4 11-18-2003 01:14 AM
How can I limit my ftp user to just one directory mtn356 Linux - Software 1 10-28-2003 02:45 PM
any possible way to limit wget d/l speed? ziggie216 Linux - Software 3 10-13-2003 04:27 PM


All times are GMT -5. The time now is 06:17 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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration