Difference between revisions of "SBN - FTP Server Notes"

From The TinkerNet Wiki
Jump to navigation Jump to search
(Replaced content with "See the article on NerdMage")
Tag: Replaced
Line 1: Line 1:
−
*Install vsftpd
+
See the article on NerdMage
−
**Just do it from the Package Manager
 
−
**or
 
−
***<code>sudo apt-get update</code>
 
−
***<code>sudo apt-get install vsftpd</code>
 
−
*Configure vsftpd
 
−
**<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.
 
−
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]
 

Revision as of 13:57, 30 January 2025

See the article on NerdMage