Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. FileZilla
  2. 12:23:04 Command: PWD
  3. 12:23:05 Response: 257 "/"
  4. 12:23:05 Command: TYPE I
  5. 12:23:05 Response: 200 Switching to Binary mode.
  6. 12:23:05 Command: PASV
  7. 12:23:06 Response: 227 Entering Passive Mode (10,202,206,157,47,59).
  8. 12:23:06 Status: Server sent passive reply with unroutable address. Using server address instead.
  9. 12:23:06 Command: LIST
  10. 12:24:06 Response: 425 Failed to establish connection.
  11. 12:24:06 Error: Failed to retrieve directory listing
  12.  
  13.  
  14. commandline FTP:
  15.  
  16. 230 Login successful.
  17. Remote system type is UNIX.
  18. Using binary mode to transfer files.
  19. ftp> ls /
  20. 200 PORT command successful. Consider using PASV.
  21. 150 Here comes the directory listing.
  22.  
  23.  
  24. Config:
  25. # Example config file /etc/vsftpd.conf
  26. #
  27. # The default compiled in settings are fairly paranoid. This sample file
  28. # loosens things up a bit, to make the ftp daemon more usable.
  29. # Please see vsftpd.conf.5 for all compiled in defaults.
  30. #
  31. # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
  32. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
  33. # capabilities.
  34. #
  35. #
  36. # Run standalone? vsftpd can run either from an inetd or as a standalone
  37. # daemon started from an initscript.
  38. listen=YES
  39. #
  40. # Run standalone with IPv6?
  41. # Like the listen parameter, except vsftpd will listen on an IPv6 socket
  42. # instead of an IPv4 one. This parameter and the listen parameter are mutually
  43. # exclusive.
  44. #listen_ipv6=YES
  45. #
  46. # Allow anonymous FTP? (Disabled by default)
  47. anonymous_enable=NO
  48. #
  49. # Uncomment this to allow local users to log in.
  50. local_enable=YES
  51. #
  52. # Uncomment this to enable any form of FTP write command.
  53. write_enable=YES
  54. #
  55. # Default umask for local users is 077. You may wish to change this to 022,
  56. # if your users expect that (022 is used by most other ftpd's)
  57. #local_umask=022
  58. #
  59. # Uncomment this to allow the anonymous FTP user to upload files. This only
  60. # has an effect if the above global write enable is activated. Also, you will
  61. # obviously need to create a directory writable by the FTP user.
  62. #anon_upload_enable=YES
  63. #
  64. # Uncomment this if you want the anonymous FTP user to be able to create
  65. # new directories.
  66. #anon_mkdir_write_enable=YES
  67. #
  68. # Activate directory messages - messages given to remote users when they
  69. # go into a certain directory.
  70. dirmessage_enable=YES
  71. #
  72. # If enabled, vsftpd will display directory listings with the time
  73. # in your local time zone. The default is to display GMT. The
  74. # times returned by the MDTM FTP command are also affected by this
  75. # option.
  76. use_localtime=YES
  77. #
  78. # Activate logging of uploads/downloads.
  79. xferlog_enable=YES
  80. #
  81. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  82. connect_from_port_20=YES
  83. #
  84. # If you want, you can arrange for uploaded anonymous files to be owned by
  85. # a different user. Note! Using "root" for uploaded files is not
  86. # recommended!
  87. #chown_uploads=YES
  88. #chown_username=whoever
  89. #
  90. # You may override where the log file goes if you like. The default is shown
  91. # below.
  92. xferlog_file=/var/log/vsftpd.log
  93. #
  94. # If you want, you can have your log file in standard ftpd xferlog format.
  95. # Note that the default log file location is /var/log/xferlog in this case.
  96. #xferlog_std_format=YES
  97. #
  98. # You may change the default value for timing out an idle session.
  99. idle_session_timeout=600
  100. #
  101. # You may change the default value for timing out a data connection.
  102. data_connection_timeout=120
  103. #
  104. # It is recommended that you define on your system a unique user which the
  105. # ftp server can use as a totally isolated and unprivileged user.
  106. #nopriv_user=ftpsecure
  107. #
  108. # Enable this and the server will recognise asynchronous ABOR requests. Not
  109. # recommended for security (the code is non-trivial). Not enabling it,
  110. # however, may confuse older FTP clients.
  111. #async_abor_enable=YES
  112. #
  113. # By default the server will pretend to allow ASCII mode but in fact ignore
  114. # the request. Turn on the below options to have the server actually do ASCII
  115. # mangling on files when in ASCII mode.
  116. # Beware that on some FTP servers, ASCII support allows a denial of service
  117. # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
  118. # predicted this attack and has always been safe, reporting the size of the
  119. # raw file.
  120. # ASCII mangling is a horrible feature of the protocol.
  121. #ascii_upload_enable=YES
  122. #ascii_download_enable=YES
  123. #
  124. # You may fully customise the login banner string:
  125. #ftpd_banner=Welcome to blah FTP service.
  126. #
  127. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  128. # useful for combatting certain DoS attacks.
  129. #deny_email_enable=YES
  130. # (default follows)
  131. #banned_email_file=/etc/vsftpd.banned_emails
  132. #
  133. # You may restrict local users to their home directories. See the FAQ for
  134. # the possible risks in this before using chroot_local_user or
  135. # chroot_list_enable below.
  136. chroot_local_user=YES
  137. #
  138. # You may specify an explicit list of local users to chroot() to their home
  139. # directory. If chroot_local_user is YES, then this list becomes a list of
  140. # users to NOT chroot().
  141. #chroot_local_user=YES
  142. chroot_list_enable=NO
  143. # (default follows)
  144. #chroot_list_file=/etc/vsftpd.chroot_list
  145. #
  146. # You may activate the "-R" option to the builtin ls. This is disabled by
  147. # default to avoid remote users being able to cause excessive I/O on large
  148. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  149. # the presence of the "-R" option, so there is a strong case for enabling it.
  150. #ls_recurse_enable=YES
  151. #
  152. # Debian customization
  153. #
  154. # Some of vsftpd's settings don't fit the Debian filesystem layout by
  155. # default. These settings are more Debian-friendly.
  156. #
  157. # This option should be the name of a directory which is empty. Also, the
  158. # directory should not be writable by the ftp user. This directory is used
  159. # as a secure chroot() jail at times vsftpd does not require filesystem
  160. # access.
  161. secure_chroot_dir=/var/run/vsftpd/empty
  162. #
  163. # This string is the name of the PAM service vsftpd will use.
  164. pam_service_name=vsftpd
  165. #
  166. # This option specifies the location of the RSA certificate to use for SSL
  167. # encrypted connections.
  168. #rsa_cert_file=/etc/ssl/private/vsftpd.pem
  169.  
  170. userlist_deny=NO
  171. userlist_enable=YES
  172. userlist_file=/etc/vsftpd.allowed_users
  173.  
  174.  
  175. # Show hidden files and the "." and ".." folders.
  176. # Useful to not write over hidden files:
  177. force_dot_files=YES
  178.  
  179. # Hide the info about the owner (user and group) of the files.
  180. hide_ids=YES
  181.  
  182. # Connection limit for each IP:
  183. #max_per_ip=2
  184.  
  185. # Maximum number of clients:
  186. #max_clients=20
  187.  
  188. # PASV configurations
  189. pasv_promiscuous=YES
  190. pasv_enable=YES
  191. pasv_min_port=12000
  192. pasv_max_port=12100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement