You are not logged in.

#1 2018-09-21 13:59:26

NevermindArchLinux
Member
From: Belarus
Registered: 2017-08-17
Posts: 3

vsftpd: FTP is not working but SFTP is working

I've installed vsftpd version 3.0.3 and configure out /etc/vsftpd.conf like this:

anonymous_enable=YES
anon_root=/srv/ftp/
no_anon_password=YES

local_enable=YES
write_enable=YES

listen=YES
listen_port=21

port_enable=YES
pasv_enable=YES
pasv_min_port=4990
pasv_max_port=5000

# LOG properties
dual_log_enable=YES
xferlog_enable=YES
log_ftp_protocol=YES

When i am connecting to my FTP server using local users, any comand gives me error:

220 Welcome to NeverVet FTP smile
Name (nevervet:nevermind): nevermind
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> passive
Passive mode on.
ftp> nlist
227 Entering Passive Mode (192,168,0,64,19,132).
150 Here comes the directory listing.
421 Service not available, remote server has closed connection
ftp>

ACTIVE method also gives me nothing:

ftp> open nevervet
Connected to nevervet.Dlink.
220 Welcome to NeverVet FTP smile
Name (nevervet:nevermind): nevermind
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> passive
Passive mode off.
ftp> nlist
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
ftp>

the same thing in WinSCP and android device

vsftpd log tells:

Fri Sep 21 16:44:14 2018 [pid 2] FTP response: Client "192.168.0.34", "220 Welcome to NeverVet FTP smile"
Fri Sep 21 16:44:20 2018 [pid 2] FTP command: Client "192.168.0.34", "USER nevermind"
Fri Sep 21 16:44:20 2018 [pid 2] [nevermind] FTP response: Client "192.168.0.34", "331 Please specify the password."
Fri Sep 21 16:44:23 2018 [pid 2] [nevermind] FTP command: Client "192.168.0.34", "PASS <password>"
Fri Sep 21 16:44:23 2018 [pid 1] [nevermind] OK LOGIN: Client "192.168.0.34"
Fri Sep 21 16:44:23 2018 [pid 3] [nevermind] FTP response: Client "192.168.0.34", "230 Login successful."
Fri Sep 21 16:44:23 2018 [pid 3] [nevermind] FTP command: Client "192.168.0.34", "SYST"
Fri Sep 21 16:44:23 2018 [pid 3] [nevermind] FTP response: Client "192.168.0.34", "215 UNIX Type: L8"
Fri Sep 21 16:44:28 2018 [pid 3] [nevermind] FTP command: Client "192.168.0.34", "PASV"
Fri Sep 21 16:44:28 2018 [pid 3] [nevermind] FTP response: Client "192.168.0.34", "227 Entering Passive Mode (192,168,0,64,19,132)."
Fri Sep 21 16:44:28 2018 [pid 3] [nevermind] FTP command: Client "192.168.0.34", "NLST"
Fri Sep 21 16:44:28 2018 [pid 3] [nevermind] FTP response: Client "192.168.0.34", "150 Here comes the directory listing."

I have Dlink router behind but all ports are opened , ssh works perfectly. When i am opening link in browser also nothing happens, it shows me empty folder instead files that i have in, permission of that public folder is 444.
But when i've tried to use SFTP protocol everything works but anonymous can't connect to the server and i can't not connect using browser.

Question is how can i get work FTP protocol on vsftpd?

Offline

Board footer

Powered by FluxBB