SBN - FTP Server Notes

From The TinkerNet Wiki
Jump to navigation Jump to search
  • 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...