QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 603|回复: 0

wu-ftpd中 host-limit关键字的问题

[复制链接]
发表于 2004-6-30 20:20:01 | 显示全部楼层 |阅读模式
host-limit 可以限制某类的单一IP地址同时连接数量。我的FTPACCESS是这样设的,但似乎host-limit不起作用,我从主机IP同时连接FTP服务器(在VMWARE上)仍然无限制!

还有就是noretrieve那一句,加了CLASS=XX 就不起作用了!是怎么回事?

class   all   real,guest,anonymous  *
class   MyGuests   guest,anonymous  192.168.0.*
class   YI    anonymous  192.168.0.41

# Set this to your email address
email [email protected]

# Allow 5 mistyped passwords
loginfails 3

# 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 /home/ftpd/welcome.msg            login
message .message                cwd=*

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

# Prevent anonymous users (and partially guest users)
# from executing dangerous commands
chmod                no                guest,anonymous
delete                no                guest,anonymous
overwrite                        no                guest,anonymous
rename                no                guest,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

timeout idle 120

limit all 20 /home/ftpd/toomanypeople.msg

host-limit YI 1 Any /home/ftpd/host-limit.msg

noretrieve /var/ftp/incoming/6.xls *.xls class=MyGuests  

banner /home/ftpd/banner.msg

log commands real,guest

log transfers real,guest inbound

upload /var/ftp * no
upload /var/ftp /incoming yes root root 0744 dirs
upload /var/ftp/pub * no
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-8 06:29 , Processed in 0.073238 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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