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

Advertising

Someone
Monday, May 7th, 2012 at 5:20:16am MDT 

  1. #
  2. # /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
  3. # To really apply changes reload proftpd after modifications.
  4. #
  5.  
  6. # Includes DSO modules
  7. Include /etc/proftpd/modules.conf
  8.  
  9. # Set off to disable IPv6 support which is annoying on IPv4 only boxes.
  10. UseIPv6    on
  11. # If set on you can experience a longer connection delay in many cases.
  12. IdentLookups            off
  13.  
  14. ServerName                  "Debian"
  15. ServerType                  inetd
  16. DeferWelcome            off
  17.  
  18. MultilineRFC2228                on
  19. DefaultServer         on
  20. ShowSymlinks            on
  21.  
  22. TimeoutNoTransfer              600
  23. TimeoutStalled      600
  24. TimeoutIdle               1200
  25.  
  26. DisplayLogin                    welcome.msg
  27. DisplayChdir                    .message true
  28. ListOptions                     "-l"
  29.  
  30. DenyFilter                  \*.*/
  31.  
  32. # Use this to jail all users in their homes
  33. # DefaultRoot         ~
  34.  
  35. # Users require a valid shell listed in /etc/shells to login.
  36. # Use this directive to release that constrain.
  37. # RequireValidShell          off
  38.  
  39. # Port 21 is the standard FTP port.
  40. Port                21
  41.  
  42. # In some cases you have to specify passive ports range to by-pass
  43. # firewall limitations. Ephemeral ports can be used for that, but
  44. # feel free to use a more narrow range.
  45. # PassivePorts                  49152 65534
  46.  
  47. # If your host was NATted, this option is useful in order to
  48. # allow passive tranfers to work. You have to use your public
  49. # address and opening the passive ports used on your firewall as well.
  50. # MasqueradeAddress          1.2.3.4
  51.  
  52. # This is useful for masquerading address with dynamic IPs:
  53. # refresh any configured MasqueradeAddress directives every 8 hours
  54. <IfModule mod_dynmasq.c>
  55. # DynMasqRefresh 28800
  56. </IfModule>
  57.  
  58. # To prevent DoS attacks, set the maximum number of child processes
  59. # to 30.  If you need to allow more than 30 concurrent connections
  60. # at once, simply increase this value.  Note that this ONLY works
  61. # in standalone mode, in inetd mode you should use an inetd server
  62. # that allows you to limit maximum number of processes per service
  63. # (such as xinetd)
  64. MaxInstances            30
  65.  
  66. # Set the user and group that the server normally runs at.
  67. User                proftpd
  68. Group            nogroup
  69.  
  70. # Umask 022 is a good standard umask to prevent new files and dirs
  71. # (second parm) from being group and world writable.
  72. Umask            022  022
  73. # Normally, we want files to be overwriteable.
  74. AllowOverwrite      on
  75.  
  76. # Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
  77. # PersistentPasswd            off
  78.  
  79. # This is required to use both PAM-based authentication and local passwords
  80. # AuthOrder               mod_auth_pam.c* mod_auth_unix.c
  81.  
  82. # Be warned: use of this directive impacts CPU average load!
  83. # Uncomment this if you like to see progress and transfer rate with ftpwho
  84. # in downloads. That is not needed for uploads rates.
  85. #
  86. # UseSendFile         off
  87.  
  88. TransferLog /var/log/proftpd/xferlog
  89. SystemLog   /var/log/proftpd/proftpd.log
  90.  
  91. <IfModule mod_quotatab.c>
  92. QuotaEngine off
  93. </IfModule>
  94.  
  95. <IfModule mod_ratio.c>
  96. Ratios off
  97. </IfModule>
  98.  
  99.  
  100. # Delay engine reduces impact of the so-called Timing Attack described in
  101. # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
  102. # It is on by default.
  103. <IfModule mod_delay.c>
  104. DelayEngine on
  105. </IfModule>
  106.  
  107. <IfModule mod_ctrls.c>
  108. ControlsEngine        off
  109. ControlsMaxClients    2
  110. ControlsLog           /var/log/proftpd/controls.log
  111. ControlsInterval      5
  112. ControlsSocket        /var/run/proftpd/proftpd.sock
  113. </IfModule>
  114.  
  115. <IfModule mod_ctrls_admin.c>
  116. AdminControlsEngine off
  117. </IfModule>
  118.  
  119. #
  120. # Alternative authentication frameworks
  121. #
  122. #Include /etc/proftpd/ldap.conf
  123. #Include /etc/proftpd/sql.conf
  124.  
  125. #
  126. # This is used for FTPS connections
  127. #
  128. #Include /etc/proftpd/tls.conf
  129.  
  130. # A basic anonymous configuration, no upload directories.
  131.  
  132. # <Anonymous ~ftp>
  133. #   User                                ftp
  134. #   Group                            nogroup
  135. #   # We want clients to be able to login with "anonymous" as well as "ftp"
  136. #   UserAlias         anonymous ftp
  137. #   # Cosmetic changes, all files belongs to ftp user
  138. #   DirFakeUser on ftp
  139. #   DirFakeGroup on ftp
  140. #
  141. #   RequireValidShell      off
  142. #
  143. #   # Limit the maximum number of anonymous logins
  144. #   MaxClients      10
  145. #
  146. #   # We want 'welcome.msg' displayed at login, and '.message' displayed
  147. #   # in each newly chdired directory.
  148. #   DisplayLogin                        welcome.msg
  149. #   DisplayChdir                .message
  150. #
  151. #   # Limit WRITE everywhere in the anonymous chroot
  152. #   <Directory *>
  153. #     <Limit WRITE>
  154. #       DenyAll
  155. #     </Limit>
  156. #   </Directory>
  157. #
  158. #   # Uncomment this if you're brave.
  159. #   # <Directory incoming>
  160. #   #   # Umask 022 is a good standard umask to prevent new files and dirs
  161. #   #   # (second parm) from being group and world writable.
  162. #   #   Umask            022  022
  163. #   #            <Limit READ WRITE>
  164. #   #            DenyAll
  165. #   #            </Limit>
  166. #   #            <Limit STOR>
  167. #   #            AllowAll
  168. #   #            </Limit>
  169. #   # </Directory>
  170. #
  171. # </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 expire by default in one month. 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.

fantasy-obligation
fantasy-obligation