LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1016|回复: 3

wu-ftp限速问题

[复制链接]
发表于 2002-9-22 13:36:50 | 显示全部楼层 |阅读模式
以下是我的ftpaccess文件

# This file controls the behavior of the wu-ftpd
# ftp server.
#
# If you're looking for a graphical frontend to
# editing it, try kwuftpd from the kdeadmin
# package.

# Don't allow system accounts to log in over ftp
deny-uid %-99 %65534-
deny-gid %-99 %65534-
allow-uid ftp
allow-gid ftp

# The ftpchroot group doesn't exist by default, this
# entry is just supplied as an example.
# To chroot a user, modify the line below or create
# the ftpchroot group and add the user to it.
#
# You will need to setup the required applications
# and libraries in the root directory (set using
# guest-root).
guest-root /var/ftp
#
# Look at the anonftp package for the files you'll need.
guestgroup ftpchroot

# User classes...
class   local  anonymous,guest     222.14.156.*
class   all   real,guest,anonymous  *

# Set this to your email address
email root@localhost

# Allow 5 mistyped passwords
loginfails 5

# Notify the users of README files at login and when
# changing to a different directory
readme  README*    login
readme  README*    cwd=*

# Messages displayed to the user
message /welcome.msg            login
message .message                cwd=*

# Allow on-the-fly compression and tarring
compress        yes             all
tar             yes             all

# Prevent anonymous users (and partially guest users)
# from executing dangerous commands
chmod                no                guest,anonymous
delete                no                anonymous
overwrite        no                anonymous
rename                no                anonymous

# Turn on logging to /var/log/xferlog
log transfers anonymous,guest,real inbound,outbound

# If /etc/shutmsg exists, don't allow logins
# see ftpshut man page
shutdown /etc/shutmsg

# Ask users to use their email address as anonymous
# password
passwd-check rfc822 warn
upload /var/ftp * no
upload /var/ftp /upload yes root ftpadm 0660 nodirs
timeout idle  600
data-limit out 20480
data-limit out 1024000 local



最后两句是限速的,但是加上这两句后,就不能上传和下载了
注释掉这两句后一切正常
请问怎样才能限速?
发表于 2002-9-22 21:28:15 | 显示全部楼层
天下文章一大抄

在/etc/ftpaccess里面加上:
throughput /home/ftp * * 64000 0.5 *

意思是下载带宽对所有IP(最后那个*)限制在64K,每下一个文件速度减半(那个0
.5).
发表于 2006-2-9 11:35:33 | 显示全部楼层
这个语句根本就不起左右啊
真是天下文章一大抄啊。
就连wu-ftpd.org的FAQ也没有对限速有个很好的阐述,真是失望啊。
回复 支持 反对

使用道具 举报

发表于 2006-2-10 12:05:27 | 显示全部楼层
不太清楚啊~~

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表