免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: tyyx
打印 上一主题 下一主题

[FTP] 我的proftpd-1.28配置文件 [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
11 [报告]
发表于 2003-03-23 00:39 |只看该作者

我的proftpd-1.28配置文件

原帖由 "henkon" 发表:
问一下这三句是什么意思??
AuthPAM on
AuthPAMAuthoritative on
AuthPAMConfig ftp


PAM验证

论坛徽章:
0
12 [报告]
发表于 2003-03-23 15:54 |只看该作者

我的proftpd-1.28配置文件

原帖由 "henkon" 发表:
问一下这三句是什么意思??
AuthPAM on
AuthPAMAuthoritative on
AuthPAMConfig ftp

http://www.chinaunix.net/forum/viewtopic.php?t=10854
关于编译proftp+mysql出现问题编译不过去的话,试试:
将mysql安装目录/include下"mysql"目录拷贝到/usr/local/include下
将mysql安装目录/lib下"mysql"目录拷贝到/usr/local/lib下
再编译试试......

论坛徽章:
0
13 [报告]
发表于 2003-03-23 15:54 |只看该作者

我的proftpd-1.28配置文件

论坛太慢....点了两下...变成2个一样的回复了

论坛徽章:
0
14 [报告]
发表于 2003-03-23 20:10 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
15 [报告]
发表于 2003-03-24 09:48 |只看该作者

我的proftpd-1.28配置文件

mysql验证没仔细用.......好像不能够单独限制带宽....所以不知道能否限制登陆人数....
假如人少的话就象我那样指定了......建立用户,指定根目录,不给登录系统就行...

论坛徽章:
0
16 [报告]
发表于 2003-04-28 12:25 |只看该作者

我的proftpd-1.28配置文件

请问楼主 ,我觉得你的文章很好,很适用,就按你的方法配置了我的proftpd服务器,可是出现了几个的问题 在此请教!
ServerIdent         on "XXX.XXX.XXX"
#登录FTP提示"....."不会显示有关的ftp系统信息
UseReverseDNS          off
IdentLookups          off
请解释一下“ServerIdent         on "XXX.XXX.XXX" ”的意思?“xxx.xxx.xxx”代表什么呀?
“#登录FTP提示"....."不会显示有关的ftp系统信息 ”其中的"....."代表的又是什么 ?
UseReverseDNS          off
IdentLookups          off
这两句我也不是很明白 请楼主明释!在此先谢谢了。
下面是我的配置文件:(我用的是proftpd-1.2.8.tar.gz 包,我安装在/usr/local里,我的系统用的是RH8.0版本)
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                        "roFTPD Default Installation"
ServerType                        standalone
DefaultServer                        on

ServerIdent                                             off
# Port 21 is the standard FTP port.
Port                                21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                                022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances                        30
MaxClients                             30

AllowRetrieveRestart          on
AllowOverwrite                      on
AllowStoreRestart             on
TimeoutIdle                   60
ExtendedLog               /var/log/vsftpd.log ALL

# Set the user and group under which the server will run.
User                                nobody
Group                                ftp

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
# Normally, we want files to be overwriteable.
DefaultRoot ~
<Anonymous ~jht123>;
  User                          jht123
  Group                         ftp
  UserAlias                     ftp jht123
MaxClients                      10
MaxClientsPerHost               1
MaxClientsPerUser               10
AnonRequirePassword             on
RateReadBPS                     200000
RateReadFreeBytes               5000
RateReadHardBPS                 on
   <Limit WRITE STOR>;
     DenyAll
   </Limit>;

<Anonymous>;
<Anonymous ~jch123>;
  User                          jch123
  Group                         ftp
  UserAlias                     ftp jch123
MaxClients                      5
MaxClientsPerHost               1
MaxClientsPerUser               5
AnonRequirePassword             on
RateWriteBPS                    400000
RateWriteFreeBytes              5000
RateWriteHardBPS                on
   <Limit STOR CWD MKD XMKD>;
     AllowAll
   </Limit>;
   <Limit READ RETR RMD RNTO XRMD DELE>;
     DenyAll
   </Limit>;
</Anonumous>;
<Anonymous ~nihao>;
  User                          nihao
  Group                                ftp
  UserAlias                     ftp nihao
MaxClients                      5
MaxClientsPerHost               1
MaxClientsPerUser                5
AnonRequirePassword             on
RateReadBPS                     200000
RateReadFreeBytes               5000
RateWriteBPS                        200000
RateWriteFreebytes              5000
RateWriteHardBPS                on
</Anonymous>;
<Anonymous ~wohao>;
  User                                wohao
  Group                                ftp
  UserAlias                        ftp wohao
MaxClientsPerHost                1
MaxClientsPerUser                5
AnonRequirePassword             on
RateReadBPS                     20000
RateReadFreeBytes                5000
RateReadHardBPS                        on
<limit LOGIN>;
  Order allow,deny
  Allow from 192.168.0.
  Deny from all
</Limit>;
<Limit WRITE STOR>;
  DenyAll
</Limit>;
</Anonymous>;            


# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous>; section.
<Anonymous /home/ftp>;
  User                                ftp
  Group                                ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                        anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                        10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                        welcome.msg
  DisplayFirstChdir                .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>;
    DenyAll
  </Limit>;
</Anonymous>;
配置好后无法启动:
[root@AAAAA]#/usr/local/sbin/proftpd &
- Fatal: unknown configuration directive 'Serverldent' on line 12 of
'/usr/local/etc/proftpd.conf'.
我认为是ServerIdent     off的毛病,所以换到了其他行,可是换到那一行就提示那一行错误。唉!郁闷~!请指教一下到底是那里错了?怎么改?
后来我干脆就不加这行了,可启动的时候依然有错误:
[root@AAAAA]#/usr/local/sbin/proftpd &
- Fatal: RateReadBPS: deprecated.  Use  TransferRate instead
这又是怎么会事呢???我用[root@AAAAA]#/usr/local/sbin/proftpd start
命令来启动效果也是一样的,启动不起来。
对于以上问题,小弟希望您能做详细的解释,麻烦您了!

论坛徽章:
0
17 [报告]
发表于 2003-04-29 10:51 |只看该作者

我的proftpd-1.28配置文件

我这是1.27的配置文件.......你装的是1.28
限速变了.....你可查看proftpd自带的DOC......这个板块也有自己找找...
太懒了....今天下午升级一下.....呵呵
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP