Kood: |
ServerName "ProFTPD kodukataloogi server"
ServerType standalone
DefaultServer on
AllowStoreRestart off
Bind 192.168.1.1
Port 21
Umask 022
<Global>
ShowSymlinks on
DirFakeGroup on ftp
DirFakeUser on ftp
TimeoutLogin 30
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 600
User ftp
Group ftp
</Global>
MaxInstances 30
MaxLoginAttempts 3
PersistentPasswd off
#Kasutajad koduaresti
DefaultRoot ~
AllowRetrieveRestart on
LoginPasswordPrompt on
RequireValidShell off
<VirtualHost 192.168.1.1>
ServerName "ProFTPD failivahetuse server"
Port 4000
Umask 022
DirFakeMode 0400
#Kasutajad ftp kataloogi kinni
Defaultroot /ftp
<Limit SITE_CHMOD>
DenyAll
</Limit>
#Kataloog "Arhiiv"
<Directory /ftp/arhiiv>
<Limit WRITE>
DenyAll
</Limit>
#Downloadi kiirus
TransferRate RETR 30
</Directory>
#Kataloog Upload
<Directory /ftp/upload>
<Limit DELE RNFR RNTO RMD>
AllowUser ftpadm
DenyAll
</Limit>
<Limit STOR STOU CWD>
AllowAll
</Limit>
AllowOverwrite off
DeleteAbortedStores on
HiddenStor on
AllowRetrieveRestart on
AllowStoreRestart off
#Downloadi kiirus
TransferRate RETR 30
#uploadi kiirus
TransferRate APPE,STOR,STOU 50
</Directory>
</VirtualHost>
|