Guest User

fichier conf proftpd

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