Advertisement
Guest User

Untitled

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