Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Anonymous
Tuesday, June 12th, 2007 at 8:07:55am UTC 

  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                  "Debian"
  7. ServerType                  standalone
  8. DeferWelcome            off
  9.  
  10. MultilineRFC2228                on
  11. DefaultServer         on
  12. ShowSymlinks            on
  13.  
  14. TimeoutNoTransfer              600
  15. TimeoutStalled      600
  16. TimeoutIdle               1200
  17.  
  18. DisplayLogin                    welcome.msg
  19. DisplayFirstChdir               .message
  20. ListOptions                     "-l"
  21.  
  22. DenyFilter                  \*.*/
  23.  
  24. # Uncomment this if you are using NIS or LDAP to retrieve passwords:
  25. #PersistentPasswd              off
  26.  
  27. # Uncomment this if you would use TLS module:
  28. #TLSEngine                on
  29.  
  30. # Uncomment this if you would use quota module:
  31. #Quotas    on
  32.  
  33. # Uncomment this if you would use ratio module:
  34. #Ratios    on
  35.  
  36. # Port 21 is the standard FTP port.
  37. Port                21
  38.  
  39. # To prevent DoS attacks, set the maximum number of child processes
  40. # to 30.  If you need to allow more than 30 concurrent connections
  41. # at once, simply increase this value.  Note that this ONLY works
  42. # in standalone mode, in inetd mode you should use an inetd server
  43. # that allows you to limit maximum number of processes per service
  44. # (such as xinetd)
  45. MaxInstances            30
  46.  
  47. # Set the user and group that the server normally runs at.
  48. User                nobody
  49. Group            nogroup
  50.  
  51. # Umask 022 is a good standard umask to prevent new files and dirs
  52. # (second parm) from being group and world writable.
  53. Umask            022  022
  54. # Normally, we want files to be overwriteable.
  55. AllowOverwrite      on
  56.  
  57. DefaultRoot ~ ftpuser
  58.  
  59. #grant login only for members of the group
  60. <Limit LOGIN>
  61. DenyGroup !ftpuser
  62. </Limit>
  63.  
  64. # increase
  65. UseReverseDNS off
  66. IdentLookups off
  67.  
  68. # Logging formats
  69.  
  70. LogFormat default %h %l %u %t \%r\" $s $b"
  71. LogFormat default auth "%v [%p] %h %t \"%r\" %s"
  72. LogFormat default write %h %l %u %t \%r\" $s $b"
  73.  
  74. #activate logging
  75.  
  76. # every login
  77. ExtendedLog /var/log/ftp_auth.log AUTH auth
  78.  
  79. # file/dir access
  80. ExtendedLog /var/log/ftp_access.log WRITE,READ write
  81.  
  82. #for paranoid
  83. #ExtendedLog /var/log/ftp_paranoid.log ALL default
  84.  
  85. # Delay engine reduces impact of the so-called Timing Attack described in
  86. # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
  87. # It is on by default.
  88. #DelayEngine          off
  89.  
  90. # A basic anonymous configuration, no upload directories.
  91.  
  92. # <Anonymous ~ftp>
  93. #   User                                ftp
  94. #   Group                            nogroup
  95.  
  96. #   # We want clients to be able to login with "anonymous" as well as "ftp"
  97. #   UserAlias         anonymous ftp
  98. #   # Cosmetic changes, all files belongs to ftp user
  99. #   DirFakeUser on ftp
  100. #   DirFakeGroup on ftp
  101. #
  102. #   RequireValidShell      off
  103. #
  104. #   # Limit the maximum number of anonymous logins
  105. #   MaxClients      10
  106. #
  107. #   # We want 'welcome.msg' displayed at login, and '.message' displayed
  108. #   # in each newly chdired directory.
  109. #   DisplayLogin                        welcome.msg
  110. #   DisplayFirstChdir      .message
  111. #
  112. #   # Limit WRITE everywhere in the anonymous chroot
  113. #   <Directory *>
  114. #     <Limit WRITE>
  115. #       DenyAll
  116. #     </Limit>
  117. #   </Directory>
  118. #
  119. #   # Uncomment this if you're brave.
  120. #   # <Directory incoming>
  121. #   #   # Umask 022 is a good standard umask to prevent new files and dirs
  122. #   #   # (second parm) from being group and world writable.
  123. #   #   Umask            022  022
  124. #   #            <Limit READ WRITE>
  125. #   #            DenyAll
  126. #   #            </Limit>
  127. #   #            <Limit STOR>
  128. #   #            AllowAll
  129. #   #            </Limit>
  130. #   # </Directory>
  131. #
  132. # </Anonymous>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right