RamonSouzaNZN

Como Montar seu Servidor [#2]

Jun 26th, 2013
12,909
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
  3. # To really apply changes reload proftpd after modifications.
  4. #
  5.  
  6. ServerName "FTP Server"
  7. Serverident on "FTP"
  8. ServerType standalone
  9. DeferWelcome off
  10. TimesGMT off
  11.  
  12.  
  13. MultilineRFC2228 on
  14. #DefaultServer on
  15. ShowSymlinks on
  16.  
  17. TimeoutNoTransfer 600
  18. TimeoutStalled 600
  19. TimeoutIdle 1200
  20.  
  21. DisplayLogin welcome.msg
  22. DisplayFirstChdir .message
  23. ListOptions "-l"
  24.  
  25. DenyFilter \*.*/
  26.  
  27. AllowForeignAddress on
  28. AllowRetrieveRestart on
  29.  
  30. # Uncomment this if you are using NIS or LDAP to retrieve passwords:
  31. #PersistentPasswd off
  32.  
  33. # Uncomment this if you would use TLS module:
  34. #TLSEngine on
  35.  
  36. # Uncomment this if you would use quota module:
  37. #Quotas on
  38.  
  39. # Uncomment this if you would use ratio module:
  40. #Ratios on
  41.  
  42. # Port 21 is the standard FTP port.
  43. Port 21
  44. SocketBindTight on
  45.  
  46. PassivePorts 11000 20000
  47.  
  48.  
  49. # To prevent DoS attacks, set the maximum number of child processes
  50. # to 30. If you need to allow more than 30 concurrent connections
  51. # at once, simply increase this value. Note that this ONLY works
  52. # in standalone mode, in inetd mode you should use an inetd server
  53. # that allows you to limit maximum number of processes per service
  54. # (such as xinetd)
  55. MaxInstances 30
  56.  
  57. # Set the user and group that the server normally runs at.
  58. User nobody
  59. Group nogroup
  60.  
  61. # Umask 022 is a good standard umask to prevent new files and dirs
  62. # (second parm) from being group and world writable.
  63. Umask 022 022
  64. # Normally, we want files to be overwriteable.
  65. AllowOverwrite on
  66.  
  67. AllowForeignAddress on
  68. AllowRetrieveRestart on
  69. AllowStoreRestart on
  70.  
  71. # Speed up the server, no DNS lookups, just plain ip's. Turn off when being hax0r3d.
  72. UseReverseDNS off
  73. IdentLookups off
  74.  
  75. DefaultRoot ~
  76. ExtendedLog /var/log/proftpd.all ALL
  77.  
  78.  
  79. # Delay engine reduces impact of the so-called Timing Attack described in
  80. # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
  81. # It is on by default.
  82. DelayEngine off
  83.  
  84. <Anonymous ~ftp>
  85. User ftp
  86. Group nogroup
  87. UserAlias anonymous ftp
  88. DirFakeUser on ftp
  89. DirFakeGroup on ftp
  90. RequireValidShell off
  91. MaxClients 10
  92. DisplayLogin welcome.msg
  93. DisplayFirstChdir .message
  94. AccessGrantMsg "Anonymous access granted for user %u connecting."
  95.  
  96. MaxClientsPerHost 1
  97.  
  98. <Directory>
  99. #DenyAll
  100. TransferRate RETR 50
  101. <Limit WRITE>
  102. DenyAll
  103. </Limit>
  104. </Directory>
RAW Paste Data