Difference between revisions of "SBN - FTP Server Notes"

From The TinkerNet Wiki
Jump to navigation Jump to search
(Created page with "* Install vsftpd ** Just do it from the Package Manager</span> ** or *** <code>sudo apt-get update</code> *** <code>sudo apt-get install vsftpd</code> * Configure vsftpd</sp...")
 
 
Line 1: Line 1:
* Install vsftpd
+
*Install vsftpd
** Just do it from the Package Manager</span>
+
**Just do it from the Package Manager
** or  
+
**or  
*** <code>sudo apt-get update</code>
+
***<code>sudo apt-get update</code>
*** <code>sudo apt-get install vsftpd</code>
+
***<code>sudo apt-get install vsftpd</code>
* Configure vsftpd</span>
+
*Configure vsftpd  
** <code>sudo vim /etc/vsftpd.conf</code>
+
**<code>sudo vim /etc/vsftpd.conf</code>
  
 
  # Uncomment this to enable any form of FTP write command.
 
  # Uncomment this to enable any form of FTP write command.
  #write_enable=YES
+
  write_enable=YES
 
   
 
   
 
  #
 
  #
Line 18: Line 18:
 
  pasv_max_port=7100
 
  pasv_max_port=7100
  
* <code>sudo service vsftpd restart</code>
+
*<code>sudo service vsftpd restart</code>
  
* Open ports 21 & 7000-7100 to this server in your firewall.
+
*Open ports 21 & 7000-7100 to this server in your firewall.
  
 
<big>'''Interesting dilemma... passive mode doesn't work for SHIT if the client is behind a firewall.'''</big>
 
<big>'''Interesting dilemma... passive mode doesn't work for SHIT if the client is behind a firewall.'''</big>
  
Also: The Windows FTP command-line client (<code>ftp.exe</code>) does not support the passive mode, on any version of Windows. It makes it pretty useless nowadays due to ubiquitous firewalls and NATs.</br>
+
Also: The Windows FTP command-line client (<code>ftp.exe</code>) does not support the passive mode, on any version of Windows. It makes it pretty useless nowadays due to ubiquitous firewalls and NATs.<br>
Use any thirdparty Windows FTP command-line client instead. Most other support the passive mode.</b>
+
Use any thirdparty Windows FTP command-line client instead. Most other support the passive mode.
 
Even just accessing your FTP server with a web browser '''(<nowiki>ftp://server.address</nowiki>)''' works better...
 
Even just accessing your FTP server with a web browser '''(<nowiki>ftp://server.address</nowiki>)''' works better...
  
= Further Reading... =
+
=Further Reading...=
  
* [https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-16-04 How To Set Up vsftpd for a User's Directory]  
+
*[https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-16-04 How To Set Up vsftpd for a User's Directory]
* [http://slacksite.com/other/ftp.html Active FTP vs. Passive FTP, a Definitive Explanation]
+
*[http://slacksite.com/other/ftp.html Active FTP vs. Passive FTP, a Definitive Explanation]

Latest revision as of 13:02, 19 June 2020

  • Install vsftpd
    • Just do it from the Package Manager
    • or
      • sudo apt-get update
      • sudo apt-get install vsftpd
  • Configure vsftpd
    • sudo vim /etc/vsftpd.conf
# Uncomment this to enable any form of FTP write command.
write_enable=YES

#
# Enable PASV
#
pasv_enable=YES
pasv_promiscuous=YES
pasv_min_port=7000
pasv_max_port=7100
  • sudo service vsftpd restart
  • Open ports 21 & 7000-7100 to this server in your firewall.

Interesting dilemma... passive mode doesn't work for SHIT if the client is behind a firewall.

Also: The Windows FTP command-line client (ftp.exe) does not support the passive mode, on any version of Windows. It makes it pretty useless nowadays due to ubiquitous firewalls and NATs.
Use any thirdparty Windows FTP command-line client instead. Most other support the passive mode. Even just accessing your FTP server with a web browser (ftp://server.address) works better...

Further Reading...