BFS44

Untitled

Aug 29th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 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 "BFS Network"
  16. # Set to inetd only if you would run proftpd by inetd/xinetd.
  17. # Read README.Debian for more information on proper configuration.
  18. ServerType standalone
  19. DeferWelcome off
  20.  
  21. MultilineRFC2228 on
  22. DefaultServer on
  23. ShowSymlinks on
  24.  
  25. TimeoutNoTransfer 600
  26. TimeoutStalled 600
  27. TimeoutIdle 1200
  28.  
  29. DisplayLogin welcome.msg
  30. DisplayChdir .message true
  31. ListOptions "-l"
  32.  
  33. DenyFilter \*.*/
  34.  
  35. # Use this to jail all users in their homes
  36. # DefaultRoot ~
  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. # Port 21 is the standard FTP port.
  43. Port 21
  44.  
  45. # In some cases you have to specify passive ports range to by-pass
  46. # firewall limitations. Ephemeral ports can be used for that, but
  47. # feel free to use a more narrow range.
  48. # PassivePorts 49152 65534
  49.  
  50. # If your host was NATted, this option is useful in order to
  51. # allow passive tranfers to work. You have to use your public
  52. # address and opening the passive ports used on your firewall as well.
  53. # MasqueradeAddress 1.2.3.4
  54.  
  55. # This is useful for masquerading address with dynamic IPs:
  56. # refresh any configured MasqueradeAddress directives every 8 hours
  57. <IfModule mod_dynmasq.c>
  58. # DynMasqRefresh 28800
  59. </IfModule>
  60.  
  61. # To prevent DoS attacks, set the maximum number of child processes
  62. # to 30. If you need to allow more than 30 concurrent connections
  63. # at once, simply increase this value. Note that this ONLY works
  64. # in standalone mode, in inetd mode you should use an inetd server
  65. # that allows you to limit maximum number of processes per service
  66. # (such as xinetd)
  67. MaxInstances 30
  68.  
  69. # Set the user and group that the server normally runs at.
  70. User proftpd
  71. Group ftpuser
  72.  
  73. # Umask 022 is a good standard umask to prevent new files and dirs
  74. # (second parm) from being group and world writable.
  75. Umask 022 022
  76. # Normally, we want files to be overwriteable.
  77. AllowOverwrite on
  78.  
  79. # Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
  80. # PersistentPasswd off
  81.  
  82. # This is required to use both PAM-based authentication and local passwords
  83. # AuthOrder mod_auth_pam.c* mod_auth_unix.c
  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. # http://www.securityfocus.com/bid/11430/discuss
  114. # It is on by default.
  115. <IfModule mod_delay.c>
  116. DelayEngine on
  117. </IfModule>
  118.  
  119. <IfModule mod_ctrls.c>
  120. ControlsEngine off
  121. ControlsMaxClients 2
  122. ControlsLog /var/log/proftpd/controls.log
  123. ControlsInterval 5
  124. ControlsSocket /var/run/proftpd/proftpd.sock
  125. </IfModule>
  126.  
  127. <IfModule mod_ctrls_admin.c>
  128. AdminControlsEngine off
  129. </IfModule>
  130.  
  131. #
  132. # Alternative authentication frameworks
  133. #
  134. #Include /etc/proftpd/ldap.conf
  135. #Include /etc/proftpd/sql.conf
  136.  
  137. #
  138. # This is used for FTPS connections
  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.  
  193. <Global>
  194. # Nur den Zugriff mit Shells zulassen, die in /etc/shells definiert sind
  195. RequireValidShell off
  196. # Root-Log-in verweigern
  197. RootLogin off
  198. # Pfad zum Home-Verzeichnis
  199. # DefaultRoot Verzeichnis
  200. # Nutzer in seinem Home-Verzeichnis einsperren
  201. DefaultRoot ~
  202. </Global>
  203.  
  204. # Autorisierte Nutzer/Nutzergruppen für den FTP-Log-in definieren
  205. <Limit LOGIN>
  206. # Nur den Login gestatten, wenn der Nutzer in der ftpuser-Gruppe ist. Mit dem (!) wird alles andere negiert.
  207. DenyGroup !ftpuser
  208. </Limit>
Add Comment
Please, Sign In to add comment