Microsoft KB Archive/838243

= How to publish a File Transfer Protocol server that is running on an ISA Server computer =

Article ID: 838243

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Internet Security and Acceleration Server 2004 Standard Edition
 * Microsoft Internet Security and Acceleration Server 2004 Enterprise Edition
 * Microsoft Internet Security and Acceleration Server 2006 Enterprise Edition
 * Microsoft Internet Security and Acceleration Server 2006 Standard Edition

-





For a Microsoft Internet Security and Acceleration Server 2000 version of this article, see 294679.

Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

Important This article contains information about editing the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the &quot;Configuration Backup/Restore&quot; Help topic in Microsoft Management Console (MMC).



INTRODUCTION
This article describes how to publish an FTP server that is running on the local Microsoft Internet Security and Acceleration (ISA) Server 2004 computer.



MORE INFORMATION
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.Warning If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk.

Note Always back up the metabase before you edit it. To publish a service on the ISA Server computer, the port on the external interface must be available. By default, Microsoft Internet Information Services (IIS) version 5.0 and later uses the Socket Pooling feature and listens on all computer interfaces. Therefore, the FTP server is already listening on port 21 (0.0.0.0:21). Because of this, FTP server publishing may be unsuccessful.

To make sure that IIS only listens on a particular interface, disable the Socket Pooling feature and configure the FTP server to listen on a specific Internet Protocol (IP) address. To do this, follow these steps: Disable the Socket Pooling feature for the FTP service. To do so: At a command prompt, change to the \Inetpub\Adminscripts\ folder.  For a Windows 2000-based computer, type the following command, and then press ENTER:

cscript adsutil.vbs set msftpsvc/disablesocketpooling true

 For a Windows Server 2003-based computer, type the following command, and then press ENTER:

cscript adsutil.vbs set /msftpsvc/1/disablesocketpooling 1



Restart the IIS Admin Service for the change to take effect. To do so:  Click Start, click Run, type services.msc in the Open box, and then click OK. Right-click IIS Admin Service, and then click Restart. Click Yes if you are prompted to restart other dependent services.</li></ol>

Configure the FTP server to listen on the internal interface of the ISA Server computer. To do so: <ol style="list-style-type: lower-alpha;"> Start Internet Information Services (IIS) Manager.</li> Expand  (local computer), expand FTP Sites, right-click your FTP site, and then click Properties.</li> In the IP address list, click the IP address that corresponds to the internal interface of the ISA Server computer, and then click OK.</li> Quit the Internet Information Services (IIS) Manager tool.</li></ol>

Because ISA Server is publishing to itself, you must disable the FTP port attack mechanism. To do so: <ol style="list-style-type: lower-alpha;"> Start Registry Editor. To do this, click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate, and then click the following registry subkey:

</li> Change the EnablePortAttack DWORD value to 1.

Note In an installation of IIS version 6, the registry DWORD value is named EnableDataConnTo3rdIP. Assign this registry value a value of 1. For more information, see the “Server-to-Server FTP Transfer” topic in IIS version 6 Help.</li> Quit Registry Editor, and then restart the FTP Publishing Service.</li></ol>

Configure the server publishing rule. In ISA Server 2004, follow these steps: <ol style="list-style-type: lower-alpha;"> Start the ISA Server Management tool.</li> Expand  , where  is the name of your ISA Server computer.</li> Click Firewall Policy, click the Tasks tab, and then click Create a New Server Publishing Rule.</li> Type a descriptive name for the new rule, and then click Next.</li> In the Server IP address box, type the IP address of the ISA Server computer's internal interface, and then click Next.</li> In the Selected protocol list, click FTP Server, and then click Next.</li> In the Listen for requests from these networks list, click to select the External check box, click Next, and then click Finish.</li> Click Apply to update the firewall policy, and then click OK.</li></ol>

In ISA Server 2006, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Start the ISA Server Management tool.</li> <li>Expand  , where  is the name of your ISA Server computer.</li> <li>Right-click Firewall Policy, point to New, and then click Non-Web Server Protocol Publishing Rule.</li> <li>Type a descriptive name for the new rule, and then click Next.</li> <li>In the Server IP address box, type the IP address of the ISA Server computer's internal interface, and then click Next.</li> <li>In the Selected protocol list, click FTP Server, and then click Next.</li> <li>In the Listen for requests from these networks list, click to select the External check box, click Next, and then click Finish.</li> <li>Click Apply to update the firewall policy, and then click OK.</li></ol>

Configure FTP filtering. To do so: <ol style="list-style-type: lower-alpha;"> <li>In the ISA Server Management tool, right-click the FTP Server rule that you created, and then click Properties.</li> <li>Click the Traffic tab, click Filtering, and then click Configure FTP.</li> <li>If you want to allow uploads to your FTP site, click to clear the Read Only check box, and then click OK two times.</li> <li>Click Apply to update the firewall policy, and then click OK.</li></ol>

Keywords: kbhowtomaster kbinfo kbfirewall kbisa2006swept KB838243

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.