#
# This is a default ProFTPD configuration file.
#
# Run proftpd has a standalone server (not via inetd or xinetd)
ServerType standalone
DefaultServer on
# chroot Home user directory
DefaultRoot ~
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Name of the server
ServerName "HOSTNAME FTP Server"
# Don't Show proftpd version
ServerIdent off
DeferWelcome on
DisplayConnect /etc/banner-proftpd
# Administrator email address
ServerAdmin ADMIN
# Deny root Login
RootLogin off
# Deny MSG
AccessDenyMsg " !-!! ACCESS DENY !!-! SEEMS YOU HAVE NO RIGHT THERE !!"
# Accept Message
AccessGrantMsg " -- Guest access granted for %u --"
# Perform identity lookup
IdentLookups off
# preform reverse lookup
UseReverseDNS off
# Port 21 is the standard FTP port.
Port 21
# use GMT (off=localtime)
TimesGMT off
# 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
# Max login attempt before disconnected
MaxLoginAttempts 3
# max client simultaneous
MaxClients 10 "Sorry, the maximum number of allowed users are already connected (%m)"
# Login time out (seconds)
TimeoutLogin 300
# idle timeout (seconds)
TimeoutNoTransfer 400
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
DirFakeUser off nobody
DirFakeGroup off nobody
# Default transfer mode (bin|ascii)
DefaultTransferMode binary
# FXP transfert
AllowForeignAddress on
# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart on
AllowRetrieveRestart on
# Automatically delete aborted uploads
DeleteAbortedStores off
# Download Bandwitdh KB/sec
#TransferRate RETR 100
# Upload Bandwitdh KB/sec
#TransferRate STOR,APPE 100
# Some logging formats
SystemLog /var/log/proftpd/proftpd.log
TransferLog /var/log/proftpd/xferlog
Extendedlog /var/log/proftpd/ftp.log
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"
AllowOverwrite on
# Needed for NIS.
PersistentPasswd off