关于proftpd的一些设置问题

由 nfool 在 08-29-2004 21:42 发表:

关于proftpd的一些设置问题

下面是配置文件

设的是匿名的ftp

能不能设置不同端口对不同目录的权限呢?怎么做?

谢谢了

ServerName "happy"

ServerType standalone

DeferWelcome off

ServerIdent off

MultilineRFC2228 on

DefaultServer on

ShowSymlinks on

AllowOverwrite on

AllowForeignAddress on

TimeoutLogin 30

TimeoutNoTransfer 60

TimeoutStalled 60

TimeoutIdle 120

#DisplayLogin welcome.msg

DisplayConnect /var/ftp/welcome.msg

DisplayFirstChdir .message

ListOptions "-l"

DenyFilter \./

Uncomment this if you are using NIS or LDAP to retrieve passwords:

#PersistentPasswd off

Uncomment this if you would use TLS module:

#TLSEngine on

Uncomment this if you would use quota module:

#Quotas on

Uncomment this if you would use ratio module:

#Ratios on

Port 21 is the standard FTP port.

Port 1991

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 300

MaxLoginAttempts 3

UseReverseDNS off

Set the user and group that the server normally runs at.

User nobody

Group nogroup

SystemLog NONE

 1<directory *="">   
 2  
 3# Umask 022 is a good standard umask to prevent new files and dirs   
 4  
 5# (second parm) from being group and world writable.   
 6  
 7Umask 022 022   
 8  
 9# Normally, we want files to be overwriteable.   
10  
11AllowOverwrite on   
12  
13</directory>
 1<global>   
 2  
 3WtmpLog off   
 4  
 5IdentLookups off   
 6  
 7DenyFilter \\*.*/   
 8  
 9TimesGMT off   
10  
11DefaultTransferMode binary   
12  
13</global>
 1<virtualhost 127.0.0.1="">   
 2  
 3Port 2120   
 4  
 5DisplayConnect /var/ftp/welcome.msg   
 6  
 7<anonymous ftp="" var="">   
 8  
 9User ftp   
10  
11Group nogroup   
12  
13UserAlias anonymous ftp   
14  
15  
16  
17RequireValidShell off   
18  
19  
20  
21MaxClients 70   
22  
23MaxClientsPerHost 1   
24  
25TransferRate RETR 500   
26  
27TimeoutSession 7200   
28  
29  
30  
31DisplayFirstChdir .message   
32  
33<directory *="">
34<limit write="">   
35  
36DenyAll   
37  
38</limit>
39</directory>
40</anonymous>
41</virtualhost>
 1<virtualhost 127.0.0.1="">   
 2  
 3Port 1891   
 4  
 5DisplayConnect /var/ftp/welcome.msg   
 6  
 7<anonymous ftp="" var="">   
 8  
 9User ftp   
10  
11Group nogroup   
12  
13UserAlias anonymous ftp   
14  
15  
16  
17RequireValidShell off   
18  
19  
20  
21MaxClients 40   
22  
23MaxClientsPerHost 1   
24  
25TransferRate RETR 200   
26  
27TimeoutSession 7200   
28  
29  
30  
31DisplayFirstChdir .message   
32  
33<directory *="">
34<limit write="">   
35  
36DenyAll   
37  
38</limit>
39</directory>
40</anonymous>
41</virtualhost>

#VIP

 1<virtualhost 127.0.0.1="">   
 2  
 3Port 1219   
 4  
 5DisplayConnect /var/ftp/welcome.msg   
 6  
 7<anonymous ftp="" var="">   
 8  
 9User toei   
10  
11Group users   
12  
13UserAlias anonymous toei   
14  
15  
16  
17RequireValidShell off</anonymous></virtualhost>
Published At
Categories with 服务器类
comments powered by Disqus