#-------------------------------------
# Подключение сторонних модулей
#-------------------------------------
Include /etc/proftpd/modules.conf
#-------------------------------------
# Глобальные настройки FTP сервера
#-------------------------------------
ServerName "FTP Server"
ServerType standalone
DefaultServer on
UseIPv6 off
IdentLookups off
UseReverseDNS off
DisplayLogin welcome.msg
DisplayChdir .message true
ShowSymlinks off
TimeoutLogin 1200
TimeoutNoTransfer 1200
TimeoutStalled 1200
TimeoutIdle 2400
DenyFilter \*.*/
RequireValidShell off
#-------------------------------------
# Используемые порты
#-------------------------------------
Port 21
PassivePorts 60000 65000
#-------------------------------------
# Маска для создания удаления файлов
#-------------------------------------
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
# Set the user and group under which the server will run.
User ftp
Group nogroup
UseFtpUsers off
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
AllowOverride off
#-------------------------------------
# Логирование
#-------------------------------------
ExtendedLog /var/log/proftpd/extend.log
# TransferLog /var/log/proftpd/xfer.log
SystemLog /var/log/proftpd/proftpd.log
# SQLLogFile /var/log/proftpd/sql.log
DebugLevel 9
#-------------------------------------
# Подключаем файл конфигураций модулей
#-------------------------------------
Include /etc/proftpd/modconf.conf
#-------------------------------------
# Подключаем файл конфигураций глобальных модулей
#-------------------------------------
#Include /etc/proftpd/ldap.conf
Include /etc/proftpd/sql.conf
#Include /etc/proftpd/tls.conf
#Include /etc/proftpd/virtuals.con
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# 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 nogroup
SQLEngine off
# 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 50
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>