n0th1ng_here

proftpd.conf

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