Page 1 of 1

(Solved) Can't FTP log in

Posted: Wed Sep 19, 2018 4:16 am
by grafityx
Dear everyone, I have two servers on Debian 8 and both I can't FTP login anymore. It seem to be since I've updated the servers but not sure ...

I found similar issues on google but don't find a solution that's suit to me !

- I've tried both PASSIVE and ACTIVE transfer mode,
- I've added "seccomp_sandbox=NO" into /etc/vsftpd.conf
- I've tried to change the pasv_max_port and pasv_min_port into /etc/vsftpd.conf
- I've tried to change the pasv_address with my IP address into /etc/vsftpd.conf
- Banlist file checked is empty.

None of above solution work ...

Hope someone can help, thanks

Code: Select all

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_umask=022
anon_upload_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
dual_log_enable=YES
chroot_local_user=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=NO
tcp_wrappers=YES
force_dot_files=YES
ascii_upload_enable=YES
ascii_download_enable=YES
#allow_writable_chroot=YES
allow_writeable_chroot=YES
seccomp_sandbox=NO
pasv_enable=YES
pasv_max_port=12100
pasv_min_port=12000
use_localtime=YES
pasv_address='SERVER MAIN IPv4'
Active mode:

Code: Select all

Status:       	Connection established, waiting for welcome message...
Status:       	Insecure server, it does not support FTP over TLS.
Status:       	Server does not support non-ASCII characters.
Status:       	Logged in
Status:       	Retrieving directory listing...
Command: 	PWD
Response: 	257 "/"
Command: 	TYPE I
Response: 	200 Switching to Binary mode.
Command: 	PORT 192,168,1,8,201,176
Response: 	500 Illegal PORT command.
Command: 	PASV
Response: 	500 OOPS: invalid pasv_address
Error:         	Failed to retrieve directory listing
Status:       	Connection closed by server
Passive mode:

Code: Select all

Status:       	Connection established, waiting for welcome message...
Status:       	Insecure server, it does not support FTP over TLS.
Status:       	Server does not support non-ASCII characters.
Status:       	Logged in
Status:       	Retrieving directory listing...
Command: 	PWD
Response: 	257 "/"
Command: 	TYPE I
Response: 	200 Switching to Binary mode.
Command: 	PASV
Response: 	500 OOPS: invalid pasv_address
Command: 	PORT 192,168,1,8,201,195
Error:         	Connection closed by server
Error:         	Failed to retrieve directory listing

Re: Can't FTP login

Posted: Wed Sep 19, 2018 10:50 am
by grafityx
Geo-location seems to be one of the issue, let me explain when I ask a friend to connect from his home country it's work pretty fine with ACTIVE mode. But If myself, I use a VPN with the same country than friend, is not connecting ...
Not really understand why my current location or VPN can affect to log in into FTP, especially before I could connect =(

By the way my friend and servers are located in Europe and me in Asia

Re: Can't FTP login

Posted: Fri Sep 21, 2018 3:15 am
by grafityx
Issue fixed by removing "pasv_address=" line from /etc/vsftpd.conf file.
Now I can log in both active and passive mode !

Re: (Solved) Can't FTP log in

Posted: Mon Sep 24, 2018 12:42 pm
by firstenquiryseo1
Nicely done!