Advertisement
gayanov

Untitled

Apr 21st, 2018
2,549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PyCon 6.22 KB | None | 0 0
  1. # Example config file /etc/vsftpd.conf
  2. # turbocraft conf
  3. #
  4. # The default compiled in settings are fairly paranoid. This sample file
  5. # loosens things up a bit, to make the ftp daemon more usable.
  6. # Please see vsftpd.conf.5 for all compiled in defaults.
  7. #
  8. # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
  9. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
  10. # capabilities.
  11. #
  12. #
  13. # Run standalone?  vsftpd can run either from an inetd or as a standalone
  14. # daemon started from an initscript.
  15. listen=NO
  16. #
  17. # This directive enables listening on IPv6 sockets. By default, listening
  18. # on the IPv6 "any" address (::) will accept connections from both IPv6
  19. # and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
  20. # sockets. If you want that (perhaps because you want to listen on specific
  21. # addresses) then you must run two copies of vsftpd with two configuration
  22. # files.
  23. listen_ipv6=YES
  24. #
  25. # Allow anonymous FTP? (Disabled by default).
  26. anonymous_enable=NO
  27. #
  28. # Uncomment this to allow local users to log in.
  29. local_enable=YES
  30. #
  31. # Uncomment this to enable any form of FTP write command.
  32. write_enable=YES
  33. #
  34. # Default umask for local users is 077. You may wish to change this to 022,
  35. # if your users expect that (022 is used by most other ftpd's)
  36. local_umask=002
  37.  
  38. file_open_mode=0775
  39.  
  40. #
  41. # Uncomment this to allow the anonymous FTP user to upload files. This only
  42. # has an effect if the above global write enable is activated. Also, you will
  43. # obviously need to create a directory writable by the FTP user.
  44. #anon_upload_enable=YES
  45. #
  46. # Uncomment this if you want the anonymous FTP user to be able to create
  47. # new directories.
  48. #anon_mkdir_write_enable=YES
  49. #
  50. # Activate directory messages - messages given to remote users when they
  51. # go into a certain directory.
  52. dirmessage_enable=YES
  53. #
  54. # If enabled, vsftpd will display directory listings with the time
  55. # in  your  local  time  zone.  The default is to display GMT. The
  56. # times returned by the MDTM FTP command are also affected by this
  57. # option.
  58. use_localtime=YES
  59. #
  60. # Activate logging of uploads/downloads.
  61. xferlog_enable=YES
  62. dual_log_enable=YES
  63. log_ftp_protocol=YES
  64. syslog_enable=YES
  65. #
  66. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  67. connect_from_port_20=YES
  68. #
  69. # If you want, you can arrange for uploaded anonymous files to be owned by
  70. # a different user. Note! Using "root" for uploaded files is not
  71. # recommended!
  72. #chown_uploads=YES
  73. #chown_username=whoever
  74. #
  75. # You may override where the log file goes if you like. The default is shown
  76. # below.
  77. xferlog_file=/home/popov/logs/vsftpd.log
  78. #
  79. # If you want, you can have your log file in standard ftpd xferlog format.
  80. # Note that the default log file location is /var/log/xferlog in this case.
  81. #xferlog_std_format=YES
  82. #
  83. # You may change the default value for timing out an idle session.
  84. #idle_session_timeout=600
  85. #
  86. # You may change the default value for timing out a data connection.
  87. #data_connection_timeout=120
  88. #
  89. # It is recommended that you define on your system a unique user which the
  90. # ftp server can use as a totally isolated and unprivileged user.
  91. #nopriv_user=ftpsecure
  92. #
  93. # Enable this and the server will recognise asynchronous ABOR requests. Not
  94. # recommended for security (the code is non-trivial). Not enabling it,
  95. # however, may confuse older FTP clients.
  96. #async_abor_enable=YES
  97. #
  98. # By default the server will pretend to allow ASCII mode but in fact ignore
  99. # the request. Turn on the below options to have the server actually do ASCII
  100. # mangling on files when in ASCII mode.
  101. # Beware that on some FTP servers, ASCII support allows a denial of service
  102. # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
  103. # predicted this attack and has always been safe, reporting the size of the
  104. # raw file.
  105. # ASCII mangling is a horrible feature of the protocol.
  106. #ascii_upload_enable=YES
  107. #ascii_download_enable=YES
  108. #
  109. # You may fully customise the login banner string:
  110. ftpd_banner=Welcome to FTP.
  111. #
  112. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  113. # useful for combatting certain DoS attacks.
  114. deny_email_enable=YES
  115. # (default follows)
  116. banned_email_file=/etc/vsftpd.banned_emails
  117. #
  118. # You may restrict local users to their home directories.  See the FAQ for
  119. # the possible risks in this before using chroot_local_user or
  120. # chroot_list_enable below.
  121. #chroot_local_user=YES
  122. #
  123. # You may specify an explicit list of local users to chroot() to their home
  124. # directory. If chroot_local_user is YES, then this list becomes a list of
  125. # users to NOT chroot().
  126. # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
  127. # the user does not have write access to the top level directory within the
  128. # chroot)
  129. #local_root=/home/$USER
  130. #user_sub_token=$USER
  131. chroot_local_user=NO
  132. chroot_list_enable=YES
  133. # (default follows)
  134. chroot_list_file=/etc/vsftpd.chroot_list
  135. #
  136. # You may activate the "-R" option to the builtin ls. This is disabled by
  137. # default to avoid remote users being able to cause excessive I/O on large
  138. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  139. # the presence of the "-R" option, so there is a strong case for enabling it.
  140. #ls_recurse_enable=YES
  141. pasv_enable=YES
  142. pasv_min_port=60000
  143. pasv_max_port=60235
  144. #
  145. # Customization
  146. #
  147. # Some of vsftpd's settings don't fit the filesystem layout by
  148. # default.
  149. #
  150. # This option should be the name of a directory which is empty.  Also, the
  151. # directory should not be writable by the ftp user. This directory is used
  152. # as a secure chroot() jail at times vsftpd does not require filesystem
  153. # access.
  154. secure_chroot_dir=/var/run/vsftpd/empty
  155. #
  156. # This string is the name of the PAM service vsftpd will use.
  157. pam_service_name=vsftpd
  158. #
  159. #anon_other_write_enable=YES
  160. # This option specifies the location of the RSA certificate to use for SSL
  161. # encrypted connections.
  162. rsa_cert_file=/etc/ssl/private/vsftpd.crt
  163. rsa_private_key_file=/etc/ssl/private/vsftpd.key
  164. ssl_enable=YES
  165. allow_anon_ssl=NO
  166. force_local_data_ssl=YES
  167. force_local_logins_ssl=YES
  168. ssl_tlsv1=YES
  169. ssl_sslv2=NO
  170. ssl_sslv3=NO
  171. require_ssl_reuse=NO
  172. ssl_ciphers=HIGH
  173.  
  174. #
  175. # Uncomment this to indicate that vsftpd use a utf8 filesystem.
  176. utf8_filesystem=YES
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement