Guest User

Untitled

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