Advertisement
doc_gonzo

proftpd

Jul 13th, 2017
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Don't do reverse DNS lookups (hangs on DNS problems)
  2. UseReverseDNS           off
  3.  
  4. # Set the user and group that the server runs as
  5. User                nobody
  6. Group               nobody
  7.  
  8. # To prevent DoS attacks, set the maximum number of child processes
  9. # to 20.  If you need to allow more than 20 concurrent connections
  10. # at once, simply increase this value.  Note that this ONLY works
  11. # in standalone mode; in inetd mode you should use an inetd server
  12. # that allows you to limit maximum number of processes per service
  13. # (such as xinetd)
  14. MaxInstances            20
  15.  
  16. # Disable sendfile by default since it breaks displaying the download speeds in
  17. # ftptop and ftpwho
  18. UseSendfile         off
  19.  
  20. # Define the log formats
  21. LogFormat           default "%h %l %u %t \"%r\" %s %b"
  22. LogFormat           auth    "%v [%P] %h %t \"%r\" %s"
  23.  
  24.  
  25.  
  26.  
  27. # Cosmetic option to make all files appear to be owned by user "ftp"
  28.     DirFakeUser         on ftp
  29.     DirFakeGroup        on ftp
  30.  
  31.     # Limit WRITE everywhere in the anonymous chroot
  32.     <Limit WRITE SITE_CHMOD>
  33.       DenyAll
  34.     </Limit>
  35.  
  36.     # An upload directory that allows storing files but not retrieving
  37.     # or creating directories.
  38.     <Directory uploads/*>
  39.       AllowOverwrite        no
  40.       <Limit READ>
  41.         DenyAll
  42.       </Limit>
  43.  
  44.       <Limit STOR>
  45.         AllowAll
  46.       </Limit>
  47.     </Directory>
  48.  
  49.     # Don't write anonymous accesses to the system wtmp file (good idea!)
  50.     WtmpLog         off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement