📄 00000045.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: kxn (好好学习!), 信区: Linux <BR>标 题: a simple proftpd conf <BR>发信站: BBS 水木清华站 (Sat Nov 27 13:15:48 1999) <BR> <BR># This is a basic ProFTPD configuration file (rename it to <BR># 'proftpd.conf' for actual use. It establishes a single server <BR># and a single anonymous login. It assumes that you have a user/group <BR># "nobody" and "ftp" for normal operation and anon. <BR> <BR>ServerType standalone <BR>DefaultServer on <BR>ServerAdmin "<A HREF="mailto:root@proftpd.org"">root@proftpd.org"</A> <BR>ServerIdent off <BR> <BR> <BR># Port 21 is the standard FTP port. <BR>Port 21 <BR># Umask 022 is a good standard umask to prevent new dirs and files <BR># from being group and world writable. <BR>Umask 002 <BR> <BR># To prevent DoS attacks, set the maximum number of child processes <BR># to 30. If you need to allow more than 30 concurrent connections <BR># at once, simply increase this value. Note that this ONLY works <BR># in standalone mode, in inetd mode you should use an inetd server <BR># that allows you to limit maximum number of processes per service <BR># (such as xinetd) <BR>MaxInstances 230 <BR> <BR>MaxLoginAttempts 2 <BR> <BR>UseReverseDNS off <BR> <BR>TimeoutIdle 300 <BR> <BR>TimeoutLogin 200 <BR> <BR>IdentLookups off <BR> <BR> <BR># Set the user and group that the server normally runs at. <BR>User ftp <BR>Group ftp <BR> <BR># Normally, we want files to be overwriteable. <BR><Directory /*> <BR> AllowOverwrite on <BR></Directory> <BR># A basic anonymous configuration, no upload directories. <BR><Anonymous ~ftp> <BR> User ftp <BR> Group ftp <BR> # We want clients to be able to login with "anonymous" as well as "ftp" <BR> AuthAliasOnly on <BR> UserAlias anonymous ftp <BR> AuthUsingAlias on <BR> # Limit the maximum number of anonymous logins <BR> MaxClients 200 "Sorry, %m users -- try again later" <BR> MaxClientsPerHost 5 <BR> RequireValidShell off <BR> # We want 'welcome.msg' displayed at login, and '.message' displayed <BR> # in each newly chdired directory. <BR> DisplayLogin welcome.msg <BR> DisplayFirstChdir .message <BR> PathDenyFilter "(\.ftpaccess)|(\.htaccess)|(\.forward)|(\core)$" <BR> # Limit WRITE everywhere in the anonymous chroot <BR> <Limit LOGIN> <BR> Order allow,deny <BR> Deny from badguy.net <BR> Allow from all <BR> </Limit> <BR> <BR> <Limit WRITE> <BR> DenyAll <BR> </Limit> <BR> <BR> <Directory incoming/*> <BR> <Limit STOR MKD> <BR> AllowAll <BR> </Limit> <BR> </Directory> <BR> <BR></Anonymous> <BR> <BR> <BR>-- <BR>※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.163.178] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -