Guest User

Untitled

a guest
Mar 30th, 2012
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.29 KB | None | 0 0
  1. #
  2. # For more informations about Proftpd configuration
  3. # look at : http://www.proftpd.org/
  4. #
  5. # This is a basic ProFTPD configuration file (rename it to
  6. # 'proftpd.conf' for actual use.  It establishes a single server
  7. # and a single anonymous login.  It assumes that you have a user/group
  8. # "nobody" and "ftp" for normal operation and anon.
  9.  
  10. ServerName      "developer FTP server"
  11. ServerType      standalone
  12. DefaultServer       on
  13. ScoreboardFile      /var/run/proftpd.scoreboard
  14.  
  15. # Port 21 is the standard FTP port.
  16. Port                21
  17.  
  18. # Umask 022 is a good standard umask to prevent new dirs and files
  19. # from being group and world writable.
  20. Umask               022
  21.  
  22. MaxClients          20  "Too many connections, try later"
  23. MaxClientsPerHost       10  "Too many connections from %m, try later"
  24. MaxLoginAttempts        10  "Too many attempts to login, try later"
  25.  
  26. # ×òîáû íå òîðìîçèë âõîä
  27. UseReverseDNS off
  28. IdentLookups off
  29.  
  30. # Óñòàíîâèì îãðàíè÷åíèÿ ïî âðåìåíè
  31. TimeoutIdle     180
  32. TimeoutLogin        120
  33. TimeoutNoTransfer   360
  34. TimeoutStalled      640
  35.        
  36. # To prevent DoS attacks, set the maximum number of child processes
  37. # to 30.  If you need to allow more than 30 concurrent connections
  38. # at once, simply increase this value.  Note that this ONLY works
  39. # in standalone mode, in inetd mode you should use an inetd server
  40. # that allows you to limit maximum number of processes per service
  41. # (such as xinetd).
  42. MaxInstances            30
  43.  
  44. CommandBufferSize   512
  45.  
  46. # Set the user and group under which the server will run.
  47. User                nobody
  48. Group               nogroup
  49.  
  50. LogFormat in "%t %u %a in %b %f"
  51. LogFormat out "%t %u %a out %b %f"
  52. ExtendedLog /var/log/ftpaccess.log read out
  53. ExtendedLog /var/log/ftpaccess.log write in
  54.  
  55. # To cause every FTP user to be "jailed" (chrooted) into their home
  56. # directory, uncomment this line.
  57. DefaultRoot ~
  58.  
  59. # Normally, we want files to be overwriteable.
  60. AllowOverwrite      on
  61.  
  62. # Äàòü âîçìîæíîñòü ïåðåçàïèñè è äîçàïèñè ôàéëîâ
  63. <Directory />
  64.     AllowOverwrite on
  65.     AllowStoreRestart on
  66. </Directory>
  67.      
  68. # Bar use of SITE CHMOD by default
  69. <Limit SITE_CHMOD>
  70.   DenyAll
  71. </Limit>
  72.  
  73. # A basic anonymous configuration, no upload directories.  If you do not
  74. # want anonymous users, simply delete this entire <Anonymous> section.
  75.  
  76. #########################################################################
  77. #                                                                       #
  78. # Uncomment lines with only one # to allow basic anonymous access       #
  79. #                                                                       #
  80. #########################################################################
  81.  
  82. <Anonymous /home/ftp>
  83.     User    ftp
  84.     Group   ftp
  85.  
  86.     ### We want clients to be able to login with "anonymous" as well as "ftp"
  87.     UserAlias   anonymous ftp
  88.  
  89.     ### Limit the maximum number of anonymous logins
  90.     MaxClients  10
  91.  
  92.     ### We want 'welcome.msg' displayed at login, and '.message' displayed
  93.     ### in each newly chdired directory.
  94.     # DisplayLogin  welcome.msg
  95.     # DisplayFirstChdir .message
  96.  
  97.     ### Limit WRITE everywhere in the anonymous chroot
  98.     <Limit WRITE>
  99.     DenyAll
  100.     </Limit>
  101.  
  102.     ## Çàïðåò íà ïîëó÷åíèå ñïèñêà ôàéëîâ
  103.     #<Limit LIST NLST>
  104.     #   DenyAll
  105.     #</Limit>
  106. </Anonymous>
Advertisement
Add Comment
Please, Sign In to add comment