Author Topic: Ограничение скорости в proftpd  (Read 6552 times)

0 Members and 1 Guest are viewing this topic.

Offline boombastic

  • Hero Member
  • *****
  • Posts: 582
  • Karma: +9/-0
Ограничение скорости в proftpd
« on: November 26, 2004, 09:38:43 »
Задачка следующего вида:
- ограничить всем пользователям скорость скачивания файлов с фтп, кроме пользователя pupkin
Буду благодарен как за полный солюшен, так и за справку в каком месте какую опцию подчитать.

Offline Xray_Linux_Root

  • Sr. Member
  • ****
  • Posts: 296
  • Karma: +2/-0
Ограничение скорости в proftpd
« Reply #1 on: November 26, 2004, 11:17:30 »
Quote
Задачка следующего вида:
- ограничить всем пользователям скорость скачивания файлов с фтп, кроме пользователя pupkin
Буду благодарен как за полный солюшен, так и за справку в каком месте какую опцию подчитать.
[snapback]86[/snapback]

http://www.proftpd.org/docs/directives/con...ml#TRANSFERRATE

TransferRate
Name
TransferRate -- Configure upload, download transfer rates
Synopsis

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

Default

    None

Context

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

Module

    mod_xfer

Compatibility

    1.2.8rc1 and later

Description

The TransferRate directive is used to set transfer rates limits on the transfer of data. This directive allows for transfer rates to be set in a wide variety of contexts, on a per-command basis, and for certain subsets of users.

The cmds parameter may be an comma-separated list of any of the following commands: APPE, RETR, STOR, and STOU.

The kilobytes-per-sec parameter is the actual transfer rate to be applied.

The free-bytes parameter, if configured, allows that many bytes to be transferred before the rate controls are applied. This allows for clients transferring small files to be unthrottled, but for larger files, such as MP3s and ISO images, to be throttled.

The optional parameters are used to restrict the application of the rate controls only to specific users. If the "user" restriction is given, then expression is a user-expression specifying to which users the rate applies. Similarly for the "group" restriction. For the "class" restriction, the expression is simply the name of connection class for whom the rate will apply.
Examples

# Limit downloads for everyone except the special group of users TransferRate RETR 1.5 group !special-users

# Limit uploads (and appends!) to the prolific users in the # lotsofuploadfiles.net domain. This presumes that a Class has been defined # for that domain, and that that Class has been named "uploaders". Let them # upload small files without throttling, though. TransferRate APPE,STOR 8.0:1024 class uploaders
Mandrake, ASPLinux, Slackware, RedHat, Fedora, Debian
Зачем M$ Exchange? Есть eGroupware!
-j MASQUERADE + друзья в других сетях помогут построить мир независимо от желания вашего провайдера ;)