|
vsftpd 421 service not available
Hi,
Trying to install vsftpd on Centos5 so anonymous user can log in. I can access ftp locally, but not remotely. Seems like something simple, but I can not find it. I believe I have the vsftpd.conf file setup correctly and I can connect locally.
ftp localhost
Connected to localhost (127.0.0.1).
220 Welcome to FTP service.
Name (localhost:mef):anonymous
331 Please specify the password.
Password: <default email>
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
When I try to connect from another system, I get the 421 message
remote:~$ ftp <ftpserver>
Connected to <ftpserver (xxx.xxx.xxx.xxx).
421 Service not available.
ftp>
My firewall allows ports 20/21. I have tested without the firewall, same results.
My /etc/pam.d/vsftpd file looks correct.
#%PAM-1.0
session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
session include system-auth
session required pam_loginuid.so
Here is my vsftd.conf entries:
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
dirmessage_enable=YES
anon_root=/data/incoming
xferlog_enable=YES
listen_port=21
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
hosts.allow: vsftpd:ALL
/data: ls -l
drwxr-xr-x 2 root root 4096 Jul 10 16:20 incoming
Any help would be appreciated.
mef
|