Solved

FTP Directory Listing Issue

Posted on 2011-02-24
9
384 Views
Last Modified: 2012-05-11
Hi,

I have tried connecting to one of our client's FTP and I can't see any of the folder structure.
But the client insisting that the folder structure is there,
I want someone to help me to troubleshoot this issue?


thisi is the filzilla log info while I was tried to connect to their FTP site.

Status:      Connecting to 1xx.2xx.3xx.1xx:21...
Status:      Connection established, waiting for welcome message...
Response:      220 NX-PXX1 FTP Server - Welcome
Command:      USER testftp
Response:      331 Please specify the password.
Command:      PASS ********
Response:      230 Login successful.
Command:      SYST
Response:      215 UNIX Type: L8
Command:      FEAT
Response:      211-Features:
Response:       EPRT
Response:       EPSV
Response:       MDTM
Response:       PASV
Response:       REST STREAM
Response:       SIZE
Response:       TVFS
Response:       UTF8
Response:      211 End
Command:      OPTS UTF8 ON
Response:      200 Always in UTF8 mode.
Status:      Connected
Status:      Retrieving directory listing...
Command:      PWD
Response:      257 "/"
Command:      TYPE I
Response:      200 Switching to Binary mode.
Command:      PASV
Response:      227 Entering Passive Mode (1XX,2XX,3xx,1xx,253,41)
Command:      LIST

Thanks
la
0
Comment
Question by:la-tempestad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 10

Expert Comment

by:abhijitmdp
ID: 34969452
0
 
LVL 1

Author Comment

by:la-tempestad
ID: 34969563
This is not our FTP server?
it's one of the clients(3rd party).

So you reckon it is badly configured FTP server causing it?
any other tips which I can ask the client to do make it visible(directory tree)?

thanks
la
0
 
LVL 1

Author Comment

by:la-tempestad
ID: 34969609
Another thin which I noticed just now,I can see all the folders if I use CMD prompt for FTP.

that shows these folders are genuine and I can connect using the CMD but not by Filezilla.Hmm..
I am not getting it?

thanks again
la
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 16

Accepted Solution

by:
AlexPace earned 500 total points
ID: 34969746
When you can connect but not get a directory listing or transfer files that means that the FTP control channel is working fine but the FTP data channel is blocked.

The log shows that your FTP client sent PASV to inform the server that the client wanted to do a passive mode transfer.  The last two numbers in the server's response are the port number on which the client should connect to do the transfer: 253,41

To decode this, first convert the two numbers to hex
253  = FD
41 = 29

Then combine them to get a hex value of FD29

Now convert back to decimal:  FD29 = 64809

So the FTP server responded to your request for passive mode by inviting you to connect to it on port 64809.  You didn't connect.  If other people do transfers to this server in passive mode then ask your network administrator to check for a rule on your firewall that prevents your outgoing connection on this port.  You may also be able to contact the administrator of the remote server and ask them if they use a certain range for passive mode... this way you can tell your network admin guy a range of ports to open instead of just opening them all.

An easy thing to check before doing any of that is just see if it can work in active mode.
0
 
LVL 1

Author Comment

by:la-tempestad
ID: 34969884
I was reading another forum,I just found out it is something to do with the client's firewall blocking the connections coming from filezilla.exe.

this is what the forum recommending----------------
Basically the server needs to have a passive ftp port range opened in its own firewall and then FTP Server also needs to be configured to use this passive port range.

I am not quite sure how you wanted to do that on the firewall.
any helps would be appreciated.

regards
la
0
 
LVL 16

Expert Comment

by:AlexPace
ID: 34970025
Chances are good that you are not the first person to connect to this particular server so although it is possible that the problem is the firewall configuration on the remote side, it is more likely to be either a firewall on your side or that the remote server doesn't want to use passive mode at all.  

If active mode doesnt work for you then ask your local administrator if any firewall rules prevent you from making outgoing FTP data connections to the remote server on port 64809 because thats what your FileZilla tried to do and failed.

0
 
LVL 1

Author Comment

by:la-tempestad
ID: 34971115

Changed the Transfer mode from passive(recommneded) to Active solve the issue.

0
 
LVL 1

Author Comment

by:la-tempestad
ID: 34971174
Why it worked when I changed to Active mode.
I have a feeling now the client's firewall is not bothered about checking the traffic as it is controlled by the client pc/port itself for Active mode.
Am I right?

also I have selected Ask for OS for the external IP address.

Thanks
la
0
 
LVL 16

Assisted Solution

by:AlexPace
AlexPace earned 500 total points
ID: 34971321
Yes in active mode the client tells the server which port to use and then the server initiates a connection back to your client.  Look in the client's log for the PORT command... those last two numbers can be converted as I showed above to learn which port your client requested that the server connect to on your computer.

Also be aware that some firewalls are "protocol aware" about FTP connections.  This means that they are able to inspect the contents of the FTP control channel, notice that your client sent the PORT command, and then are able to unblock the requested port on the fly to allow the data channel connection.  
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Questions about DHCP migration 5 118
SharePoint 2013 to SharePoint Online migration:  (links) 2 87
MS Endpoint Protection 2 96
Moving a windows 7 install to new hardware 9 171
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

742 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question