Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Don't do reverse DNS lookups (hangs on DNS problems)
- UseReverseDNS off
- # Set the user and group that the server runs as
- User nobody
- Group nobody
- # To prevent DoS attacks, set the maximum number of child processes
- # to 20. If you need to allow more than 20 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 20
- # Disable sendfile by default since it breaks displaying the download speeds in
- # ftptop and ftpwho
- UseSendfile off
- # Define the log formats
- LogFormat default "%h %l %u %t \"%r\" %s %b"
- LogFormat auth "%v [%P] %h %t \"%r\" %s"
- # Cosmetic option to make all files appear to be owned by user "ftp"
- DirFakeUser on ftp
- DirFakeGroup on ftp
- # Limit WRITE everywhere in the anonymous chroot
- <Limit WRITE SITE_CHMOD>
- DenyAll
- </Limit>
- # An upload directory that allows storing files but not retrieving
- # or creating directories.
- <Directory uploads/*>
- AllowOverwrite no
- <Limit READ>
- DenyAll
- </Limit>
- <Limit STOR>
- AllowAll
- </Limit>
- </Directory>
- # Don't write anonymous accesses to the system wtmp file (good idea!)
- WtmpLog off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement