?
Solved

FtP cannot get a directry listing on different port

Posted on 2007-10-08
6
Medium Priority
?
863 Views
Last Modified: 2013-11-29
I have setup multiple ftp sitess on my server (windows 2003 enterprise server). I am behind a cisco router. my normal ftp site on port 21 works fine. I set up the other port to use 200. On my router I have the lines for ftp and ftpdata setup. I also opened port 200. I can log into the ftp site fine, but cannot get a diretory listing. It is doing a command PORT 192,168,2,101,15,175 and the response is invalid port command and then I get error cannot retrieve directory. I am using filezilla, but the command line ftp also hangs when I try a dir. I also tried passive with filezilla, but that did not help either. Do I need to open some other port on my cisco? Also, if I connect up through a vpn uning a local ip, everything works fine.
0
Comment
Question by:troyd1
  • 4
  • 2
6 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 20034486
Are you connecting from your local lan to the ftp server on the internet or is it the other way round?

Are you using a cisco router or the PIX firewall as you mention one but have posted in the PIX area?

I assume it is your client issuing the PORT command or is that the server reply?
0
 
LVL 36

Accepted Solution

by:
grblades earned 2000 total points
ID: 20034517
The problem is caused by the data connection being refused. There are two modes of ftp (passive and active) and  they differ as to whether it is the client or the server which establishes the data connection. What is happening is that the server or client is telling the other end which IP address it is connecting to but it is saying 192.168.2.101 which is not a valid IP address on the internet.
Now often firewalls will inspect the ftp commands and recognise ftp traffic and automatically 'correct' the PORT command so that it works. Since you are running ftp on a non standard port this functionality is broken.
0
 
LVL 36

Expert Comment

by:grblades
ID: 20034529
You could alter your firewall configuration or the ftp server configuration to get it working for you however other clients will still have problems if they try to use active mode ftp. Really the solution is to always run ftp on port 21.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:troyd1
ID: 20034680
My main problem is that I need to have 3 ftp sites that are in 3 different directories. My alternatives were to use different port or use isolation mode. I cannot figure out how to configure virtual dorectories for isolation mode. When using isolation mode, it says that you need to create a directory with the userame under localusers. I cannot figure out how to create a virtual directory under that. When I try to create a virtual directory, it just creates it at the same level as localusers. Any comments would be appreciated.
0
 
LVL 36

Expert Comment

by:grblades
ID: 20035241
Sorry I am not familiar with the IIS ftp server.

Perhaps you could use an additional IP adDress instead?
0
 

Author Comment

by:troyd1
ID: 20035805
I figured it out. It is goofy how you add a virtual directory and is not in the regular help. here is a link in case someone finds this:
http://www.microsoft.com/technet/community/columns/insider/iisi0606.mspx

I will award points based on my orogonal question.
0

Featured Post

The IT Degree for Career Advancement

Earn your B.S. in Network Operations and Security and become a network and IT security expert. This WGU degree program curriculum was designed with tech-savvy, self-motivated students in mind – allowing you to use your technical expertise, to address real-world business problems.

Question has a verified solution.

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

Powerful tools can do wonders, but only in the right hands.  Nowhere is this more obvious than with the cloud.
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
Suggested Courses
Course of the Month17 days, 2 hours left to enroll

864 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