Advertisement
Guest User

Untitled

a guest
Sep 7th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 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 on
  12. # If set on you can experience a longer connection delay in many cases.
  13. IdentLookups off
  14.  
  15. ServerName "my ip here"
  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. # Use this to jail all users in their homes
  34. DefaultRoot /usr/share/nginx/html/
  35.  
  36. # Users require a valid shell listed in /etc/shells to login.
  37. # Use this directive to release that constrain.
  38. RequireValidShell off
  39.  
  40. # Port 21 is the standard FTP port.
  41. Port 21
  42.  
  43. # In some cases you have to specify passive ports range to by-pass
  44. # firewall limitations. Ephemeral ports can be used for that, but
  45. # feel free to use a more narrow range.
  46. # PassivePorts 49152 65534
  47.  
  48. # If your host was NATted, this option is useful in order to
  49. # allow passive tranfers to work. You have to use your public
  50. # address and opening the passive ports used on your firewall as well.
  51. # MasqueradeAddress 1.2.3.4
  52.  
  53. # This is useful for masquerading address with dynamic IPs:
  54. # refresh any configured MasqueradeAddress directives every 8 hours
  55. <IfModule mod_dynmasq.c>
  56. # DynMasqRefresh 28800
  57. </IfModule>
  58.  
  59. # To prevent DoS attacks, set the maximum number of child processes
  60. # to 30. If you need to allow more than 30 concurrent connections
  61. # at once, simply increase this value. Note that this ONLY works
  62. # in standalone mode, in inetd mode you should use an inetd server
  63. # that allows you to limit maximum number of processes per service
  64. # (such as xinetd)
  65. MaxInstances 10
  66.  
  67. # Set the user and group that the server normally runs at.
  68. User proftpd
  69. Group nogroup
  70.  
  71. # Umask 022 is a good standard umask to prevent new files and dirs
  72. # (second parm) from being group and world writable.
  73. Umask 022 022
  74. SFTPOptions IgnoreSFTPUploadPerms IgnoreSCPUploadPerms
  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. #Include /etc/proftpd/tls.conf
  140.  
  141. #
  142. # Useful to keep VirtualHost/VirtualRoot directives separated
  143. #
  144. #Include /etc/proftpd/virtuals.conf
  145.  
  146. # A basic anonymous configuration, no upload directories.
  147.  
  148. # <Anonymous ~ftp>
  149. # User ftp
  150. # Group nogroup
  151. # # We want clients to be able to login with "anonymous" as well as "ftp"
  152. # UserAlias anonymous ftp
  153. # # Cosmetic changes, all files belongs to ftp user
  154. # DirFakeUser on ftp
  155. # DirFakeGroup on ftp
  156. #
  157. # RequireValidShell off
  158. #
  159. # # Limit the maximum number of anonymous logins
  160. # MaxClients 10
  161. #
  162. # # We want 'welcome.msg' displayed at login, and '.message' displayed
  163. # # in each newly chdired directory.
  164. # DisplayLogin welcome.msg
  165. # DisplayChdir .message
  166. #
  167. # # Limit WRITE everywhere in the anonymous chroot
  168. # <Directory *>
  169. # <Limit WRITE>
  170. # DenyAll
  171. # </Limit>
  172. # </Directory>
  173. #
  174. # # Uncomment this if you're brave.
  175. # # <Directory incoming>
  176. # # # Umask 022 is a good standard umask to prevent new files and dirs
  177. # # # (second parm) from being group and world writable.
  178. # # Umask 022 022
  179. # # <Limit READ WRITE>
  180. # # DenyAll
  181. # # </Limit>
  182. # # <Limit STOR>
  183. # # AllowAll
  184. # # </Limit>
  185. # # </Directory>
  186. #
  187. # </Anonymous>
  188.  
  189. # Include other custom configuration files
  190. Include /etc/proftpd/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement