forums.meulie.net

VSFTPD denying remote access

Not sure exactly how or why it happened, but VSFTPD was working fine for quite some time. Recently, though, I noticed an issue with it disconnecting users when connecting remotely, kind of making it useless. I’ve been tearing my hair out because I have no idea what is wrong with it.

My conf file:

listen=YES
anonymous_enable=NO
local_enable=YES
virtual_use_local_privs=YES
write_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
guest_enable=YES
user_sub_token=$USER
local_root=/home/ftpmaster/$USER
chroot_local_user=YES
hide_ids=YES
user_config_dir=/etc/vsftpd/
anon_upload_enable=YES

Connecting from localhost:

 ftp 127.0.0.1
Connected to 127.0.0.1.
220 (vsFTPd 2.2.2)
Name (127.0.0.1:root): phoenix
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

As you can see in that scenario, it logs in fine. Here’s the point where it gets weird though… the moment I try to log in from another computer, I get disconnected as soon as I put the user name in:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>ftp
ftp> open *.*.*.*
Connected to *.*.*.*.
220 (vsFTPd 2.2.2)
User (*.*.*.*:(none)): phoenix
Connection closed by remote host.
ftp>

The log file doesn’t provide any kind of error message… and I don’t think I have any issues with blocked IP addresses… then again, if that was the problem, I wouldn’t have been able to connect at all. Any ideas that might help me figure out what the problem is and possibly solve it are welcome.