2005年7月10日 星期日

Proftpd (FTP Server)

1.Install proftpd
# apt-get install proftpd

2.Setting
# vi /etc/proftpd.conf
ServerName ""Math FTP Server""
AllowRetrieveRestart on
AllowForeignAddress on
DefaultRoot ~
# for chroot

3.Anonymous FTP

User ftp
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
MaxClients 100
DisplayLogin welcome.msg
DisplayFirstChdir .message
RequireValidShell off
AllowRetrieveRestart on
AllowForeignAddress on
MaxClientsPerHost 2
TransferRate RETR 1000
TransferRate RETR 1000 user ftp


Order allow,deny
Allow 140.115.0.0/16
Deny from all



DenyAll



AllowRetrieveRestart on
AllowOverwrite on
AllowStoreRestart on

AllowAll



沒有留言: