FTP stops at MLSD

Just has an issue with the client that whenever he connects his domain via FTP through Filezilla , it connects but it stops at MLSD.


Status:   Resolving address of ftp.hi2.ro
Status:   Connecting to…
Status:   Connection established, waiting for welcome message…
Response:   220 ProFTPD 1.3.2 Server (fast FTP) []
Command:   USER andreeib
Response:   331 Password required for andreeib
Command:   PASS ***************
Response:   230 User andreeib logged in
Command:   SYST
Response:   215 UNIX Type: L8
Command:   FEAT
Response:   211-Features:
Response:    MDTM
Response:    MFMT
Response:    MFF modify;UNIX.group;UNIX.mode;
Response:    MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response:    REST STREAM
Response:    SIZE
Response:   211 End
Status:   Connected
Status:   Retrieving directory listing…
Command:   PWD
Response:   257 “/” is the current directory
Command:   TYPE I
Response:   200 Type set to I
Command:   PASV
Response:   227 Entering Passive Mode (89,42,38,160,234,169).
Command:   MLSD


So This is how it was fixed :-

==> Login to the server using SSH as root user

==> Open the file /etc/csf/csf.conf

==>Search for TCP_IN and TCP_OUT and see if port 30000:35000 is added, If not Do add the port as 30000:35000

TCP_IN = “20,21,22,25,26,53,443,30000:35000”
TCP_OUT = “20,21,22,25,26,53,443,30000:35000”

==> Exit and save

Now Edit the pure-ftpd.conf file

==> Open the file /etc/pure-ftpd.conf

==> Scroll down and look for the line that says “PassivePortRange 30000 35000″

==> Make sure it is not commented out (with a # at the front)
Save the file

==>Restart the FTP server

Thats It.. The FTP then worked for me.


One thought on “FTP stops at MLSD

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s