Advertisement
617a

Untitled

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