CentOS Can't connect to FTP
- by Steven
I'm having troubles connecting to my ftp server.
Here's what it says,
Status: Connected Status:
Retrieving directory listing...
Command: PWD
Response: 257 "/home/sxxxn"
Command: TYPE I Response:
200 Switching to Binary mode.
Command: PASV
Error: Connection timed out
Error: Failed to retrieve directory listing
My vsftpd.conf file:
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome to xxxx.com
xferlog_std_format=NO
chroot_local_user=NO
chroot_list_enable=NO
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
pasv_enable=YES
pasv_min_port=3000
pasv_max_port=3050
pasv_address=64.xx.xx.xxx
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.userlist
And I've got these 2 in my iptables
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3000:3050 -j ACCEPT
I've also disabled selinux.