|
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 |
|