software:linux:vsftpd
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:linux:vsftpd [2016/11/13 18:57] – superwizard | software:linux:vsftpd [2024/02/10 04:48] (current) – [Find passive mode port from log] superwizard | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== explorer only supports plain FTP, not encrypted ====== | ||
| + | |||
| + | |||
| + | <WRAP center round box > | ||
| + | 2024-02-08 | ||
| + | |||
| + | vsftpd | ||
| + | |||
| + | Sadly explorer only supports plain FTP, not encrypted | ||
| + | |||
| + | From < | ||
| + | |||
| + | You must use other applications such as Filezilla or WinSCP for this type of connections and make the transfers, edits and deletions that you want. | ||
| + | For this you have to change two parameters of vsftpd.conf | ||
| + | force_local_data_ssl=NO | ||
| + | force_local_logins_ssl=NO | ||
| + | |||
| + | From < | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ====== Find passive mode port from log ====== | ||
| + | |||
| + | |||
| + | <WRAP center round box > | ||
| + | |||
| + | from what I understand the port is aquired by multiplying the 5th octet next to ---> PORT with 256 then adding the 6th octet to that. So the LAN client is connecting on port (196*256)+33 = 50179 While the WAN client is connecting on port (235*256)+162 = 60322 | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ====== setup of second vsftpd with different port ====== | ||
| + | |||
| + | From: http:// | ||
| + | |||
| + | Also: http:// | ||
| + | |||
| + | How Do I Convert A SysV Init Script Into A systemd Service File? | ||
| + | |||
| + | < | ||
| + | From the information extracted above we can now write our systemd service file: | ||
| + | |||
| + | [Unit] | ||
| + | Description=Daemon to detect crashing apps | ||
| + | After=syslog.target | ||
| + | |||
| + | [Service] | ||
| + | ExecStart=/ | ||
| + | Type=forking | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | |||
| + | Second vsftpd_2.conf | ||
| + | listen=YES | ||
| + | anonymous_enable=NO | ||
| + | local_enable=YES | ||
| + | write_enable=YES | ||
| + | dirmessage_enable=YES | ||
| + | use_localtime=YES | ||
| + | xferlog_enable=YES | ||
| + | connect_from_port_20=YES | ||
| + | listen_port=21 | ||
| + | user_sub_token=$USER | ||
| + | pasv_enable=YES | ||
| + | pasv_min_port=40101 | ||
| + | pasv_max_port=40200 | ||
| + | # | ||
| + | userlist_enable=YES | ||
| + | userlist_file=/ | ||
| + | userlist_deny=NO | ||
| + | |||
| + | # This option should be the name of a directory which is empty. | ||
| + | # directory should not be writable by the ftp user. This directory is used | ||
| + | # as a secure chroot() jail at times vsftpd does not require filesystem | ||
| + | # access. | ||
| + | secure_chroot_dir=/ | ||
| + | # | ||
| + | # This string is the name of the PAM service vsftpd will use. | ||
| + | pam_service_name=vsftpd | ||
| + | # | ||
| + | # This option specifies the location of the RSA certificate to use for SSL | ||
| + | # encrypted connections. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | # | ||
| + | # Uncomment this to indicate that vsftpd use a utf8 filesystem. | ||
| + | # | ||
| + | |||
| + | |||
| + | Ubuntu | ||
| + | load the systemd service file to: | ||
| + | |||
| + | / | ||
| + | |||
| + | [Unit] | ||
| + | Description=vsftpd FTP server | ||
| + | After=network.target | ||
| + | |||
| + | [Service] | ||
| + | Type=simple | ||
| + | ExecStart=/ | ||
| + | ExecReload=/ | ||
| + | ExecStartPre=-/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | |||
| + | </ | ||
| + | |||
| + | ====== vsftpd and pasv_address ====== | ||
| + | |||
| + | From : https:// | ||
| + | |||
| + | < | ||
| + | pasv_addr_resolve=YES | ||
| + | Then you should be able to put a hostname instead of an IP address as the pasv_address. pasv_addr_resolv defaults to NO. | ||
| + | </ | ||
| + | |||
| ====== Good Overview ====== | ====== Good Overview ====== | ||
software/linux/vsftpd.1479063458.txt.gz · Last modified: by superwizard
