SHARE
TWEET

profited

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