

ServerName "Server FTP Server"
ServerType standalone
DefaultServer on
DefaultAddress localhost
UseIPv6 on
Port 21
User nobody
Group nogroup
Umask 077 022
SyslogFacility ftp
DisplayLogin /var/run/proftpd/proftpd.motd
DeferWelcome off
TimeoutIdle 600
TimeoutLogin 300
TimeoutNoTransfer 300
TimeoutStalled 3600
MaxInstances none
    MaxClients 5
    MaxConnectionsPerHost 2
    MaxLoginAttempts 1
DefaultTransferMode ascii
AllowForeignAddress off
LoadModule mod_ident.c
IdentLookups off
UseReverseDNS off

AuthOrder mod_auth_unix.c
    <Limit LOGIN>
        AllowGroup ftp
        DenyAll
    </Limit>

<Global>
    RequireValidShell off
        DefaultRoot ~ !root
    AllowOverwrite on
    DeleteAbortedStores off
    TimesGMT off
</Global>


<IfModule mod_ban.c>
    BanEngine off
    BanControlsACLs all allow group root
    BanLog /var/log/proftpd/ban.log
    BanMessage Host %a has been banned
    # -m "mod_ban/rule"
    # -v "concat('  BanOnEvent ',event,' ',occurrence,'/',timeinterval,' ',expire)" -n
    # -b
    BanTable /var/run/proftpd/ban.tab
</IfModule>



<IfModule mod_delay.c>
    DelayEngine on
    DelayTable /var/run/proftpd/proftpd.delay
</IfModule>

<IfModule mod_wrap.c>
    TCPAccessFiles "/etc/hosts.allow" "/etc/hosts.deny"
    TCPAccessSyslogLevels info warn
    TCPServiceName ftpd
</ifModule>
