Guest User

Untitled

a guest
Jul 29th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.16 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 "j1d-servers.ddns.net"
  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. #EIGENER COMMAND ACTIVE ROOT USER
  34. RootLogin on
  35.  
  36. # Use this to jail all users in their homes
  37. DefaultRoot ~
  38.  
  39. # Users require a valid shell listed in /etc/shells to login.
  40. # Use this directive to release that constrain.
  41. RequireValidShell on
  42.  
  43. # Port 21 is the standard FTP port.
  44. Port 9999
  45.  
  46. # In some cases you have to specify passive ports range to by-pass
  47. # firewall limitations. Ephemeral ports can be used for that, but
  48. # feel free to use a more narrow range.
  49. # PassivePorts 49152 65534
  50.  
  51. # If your host was NATted, this option is useful in order to
  52. # allow passive tranfers to work. You have to use your public
  53. # address and opening the passive ports used on your firewall as well.
  54. # MasqueradeAddress 1.2.3.4
  55.  
  56. # This is useful for masquerading address with dynamic IPs:
  57. # refresh any configured MasqueradeAddress directives every 8 hours
  58. #<IfModule mod_dynmasq.c>
  59. # DynMasqRefresh 28800
  60. </IfModule>
  61.  
  62. # To prevent DoS attacks, set the maximum number of child processes
  63. # to 30. If you need to allow more than 30 concurrent connections
  64. # at once, simply increase this value. Note that this ONLY works
  65. # in standalone mode, in inetd mode you should use an inetd server
  66. # that allows you to limit maximum number of processes per service
  67. # (such as xinetd)
  68. MaxInstances 5
  69.  
  70. # Set the user and group that the server normally runs at.
  71. User proftpd
  72. Group nogroup
  73.  
  74. # Umask 022 is a good standard umask to prevent new files and dirs
  75. # (second parm) from being group and world writable.
  76. Umask 022 022
  77. # Normally, we want files to be overwriteable.
  78. AllowOverwrite on
  79.  
  80. # Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
  81. # PersistentPasswd off
  82.  
  83. # This is required to use both PAM-based authentication and local passwords
  84. #AuthOrder mod_auth_pam.c* mod_auth_unix.c
  85.  
  86. # Be warned: use of this directive impacts CPU average load!
  87. # Uncomment this if you like to see progress and transfer rate with ftpwho
  88. # in downloads. That is not needed for uploads rates.
  89. #
  90. # UseSendFile off
  91.  
  92. TransferLog /var/log/proftpd/xferlog
  93. SystemLog /var/log/proftpd/proftpd.log
  94.  
  95. # Logging onto /var/log/lastlog is enabled but set to off by default
  96. #UseLastlog on
  97.  
  98. # In order to keep log file dates consistent after chroot, use timezone info
  99. # from /etc/localtime. If this is not set, and proftpd is configured to
  100. # chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
  101. # savings timezone regardless of whether DST is in effect.
  102. #SetEnv TZ :/etc/localtime
  103.  
  104. <IfModule mod_quotatab.c>
  105. QuotaEngine off
  106. </IfModule>
  107.  
  108. <IfModule mod_ratio.c>
  109. Ratios off
  110. </IfModule>
  111.  
  112.  
  113. # Delay engine reduces impact of the so-called Timing Attack described in
  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. # <anonymouse ~ftp>
  151. # User anonymouse
  152. # Group ftpuser
  153. # # We want clients to be able to login with "anonymous" as well as "ftp"
  154. # UserAlias 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 1
  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. # <Directory *>
  171. # <Limit WRITE>
  172. # DenyAll
  173. # </Limit>
  174. # </Directory>
  175. #
  176. # # Uncomment this if you're brave.
  177. # # <Directory incoming>
  178. # # # Umask 022 is a good standard umask to prevent new files and dirs
  179. # # # (second parm) from being group and world writable.
  180. # # Umask 022 022
  181. # # <Limit READ WRITE>
  182. # # DenyAll
  183. # # </Limit>
  184. # # <Limit STOR>
  185. # # AllowAll
  186. # # </Limit>
  187. # # </Directory>
  188. #
  189. # </Anonymous>
  190.  
  191. # Include other custom configuration files
  192. Include /etc/proftpd/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment