• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1578
  • Last Modified:

How to enable active FTP on Windows Server 2003 R2?

Does anyone know how to enable active FTP on Windows Server 2003 R2?  Currently passive FTP, through IIS, is enabled, which won't work with our firewall rules.
0
KP0596
Asked:
KP0596
1 Solution
 
DominoGCommented:
0
 
KP0596Author Commented:
I already googled for the above article, the problem is is that it doesn't tell you how to disable passive FTP and only run Active FTP.
0
 
moon_blue69Commented:
That is to set up passive ftp. If its Just normal FTP go to windows components in add or remove programs. select iis and click on details select ftp and install it. Go to administrative tools click on IIS under local computer select ftp sites right click default ftp site and properties -> under security you can leave it at anonymous if you do not want to supply username and password. or add the users who can access it. On messages you can configure messages and on home directory you can set the directory you want to use
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
KP0596Author Commented:
Thanks for the info Moon, however what you call "normal FTP" is passive FTP.  Passive FTP is what you get when you install FTP through IIS.  If you do a packet sniff, you'll see that It uses a random port between 1024-5000.  I need to figure out how to disable passive FTP and enable active FTP.
0
 
KP0596Author Commented:
A workaround might be to hard-code passive FTP to use a single port.  But I haven't tested that yet. Any other solutions would be greatly appreciated.

cd c:\inetpub\adminscripts
adsutil.vbs set /MSFTPSVC/PassivePortRange "5001-5001"

Open in new window

0
 
KP0596Author Commented:
Microsoft KB is the Microsoft KB with my exact problem:

Passive Connections May Fail Through a NAT-Based Firewall to IIS 6.0 and older FTP Server.

Microsoft Support is the KB on how to configure PassivePortRange in IIS
0
 
Davis McCarnOwnerCommented:
Follow these directions to setup the FTP service using port 21 and pay attention to the "virtual directories" section: http://www.brighthub.com/computing/windows-platform/articles/23839.aspx  ( I also set a secondary ip address on the server's nic (i.e. 192.168.0.102), bound the FTP service to that ip, and setup the port forwarding in the router to it so I could monitor and/or disable the FTP without affecting other functions )
0
 
KP0596Author Commented:
It turns out FTP needs access to two or more simultaneous ports.  After setting the ports, I restarted IIS FTP.  FTP services would not start.  This was caused by a port usage conflict.  So I changed the port ranges and IIS FTP is now working.

 
C:\Inetpub\AdminScripts>adsutil.vbs set /MSFTPSVC/PassivePortRange "5501-5510"
PassivePortRange                : (STRING) "5601-5610"

C:\Inetpub\AdminScripts>adsutil.vbs get /MSFTPSVC/PassivePortRange
PassivePortRange                : (STRING) "5601-5610"

Open in new window

FTP.PNG
0
 
KP0596Author Commented:
*Correction, the code snippet above should read:
C:\Inetpub\AdminScripts>adsutil.vbs set /MSFTPSVC/PassivePortRange "5601-5610"
PassivePortRange                : (STRING) "5601-5610"

C:\Inetpub\AdminScripts>adsutil.vbs get /MSFTPSVC/PassivePortRange
PassivePortRange                : (STRING) "5601-5610"

Open in new window

0
 
KP0596Author Commented:
FYI: Passive FTP and Active FTP are controlled/set on the client side, not the server side.  Clients default to passive FTP, so enabling Active FTP must be done by the client.  
0
 
KP0596Author Commented:
Information was provided by MS Enterprise Support.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now