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...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
* Install vsftpd
+
See the [https://wiki.nerdmage.ca/index.php/FTP_Serving article on NerdMage]
** Just do it from the Package Manager</span>
 
** or
 
*** <code>sudo apt-get update</code>
 
*** <code>sudo apt-get install vsftpd</code>
 
* Configure vsftpd</span>
 
** <code>sudo vim /etc/vsftpd.conf</code>
 
 
 
# 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
 
 
 
* <code>sudo service vsftpd restart</code>
 
 
 
* 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>
 
 
 
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>
 
Even just accessing your FTP server with a web browser '''(<nowiki>ftp://server.address</nowiki>)''' works better...
 
 
 
= 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]
 
* [http://slacksite.com/other/ftp.html Active FTP vs. Passive FTP, a Definitive Explanation]
 

Latest revision as of 14:57, 30 January 2025