How to enable ftp active mode (PASV mode) in IIS)

Source: Internet
Author: User
Tags ftp connection ftp protocol microsoft iis
The IIS-based FTP service supports two active and passive modes of connection, depending on the method specified by the client. IIS does not support disabled or active or passive connection mode.

With the Internet, the use of HTTP and other protocols FTP protocol uses the minimum two connection sessions: for control, half duplex connections and full duplex connections for data transmission for control, half-duplex connection and full-duplex connection for data transmission :. By default, TCP port 21 on the server is used to control the connection, but the data connection method is used to connect the client to the server.

Because the Connection Client is sent to the server through control,PortCommand-FTP connection in Active ModeIt is sometimes called "Client Management ". Command to request the server to establish to the customer, use the TCP port fromPortCommand to specify the data connection from TCP port 20.

Passive mode FTP connectionIs sometimes referred to as "Server Management", because the server end port used as a data connection with one of the transient ports server responds to the clientPASVCommand ,. After the data connection command is issued, the server connects to the client and uses the port to control the client port.

The response is randomly selected from the default passive-iis ftp mode in the port range of 1024-65535. To further limit the range of these huge ports, the system administrator can configure the namePassiveportrangeMetadatabase attribute keyword. This attribute keyword only exists in IIS 6.0, and for IIS 5.0 is in Windows 2000. The system administrator needs to install Service Pack 4 in the system registry.Passiveportrange.

ChangePassiveportrangeFor IIS, the execution process is described in the following section.

For Windows Server 2003

To enable direct edit of metadatabase)
1. Open the Microsoft IIS Console (MMC ).
2. Right-click the Local Computer node.
3. SelectAttribute.
4. Make sure thatEnable direct edit metadatabaseCheck box.

Configure passiveportrange B using the adsutil script)
1. ClickStart,Run, Type cmd, and thenOK.
2. Type CD Inetpub \ adminscripts and press Enter.
3. type the following command from the command prompt.

Cscript.exe c: \ Inetpub \ adminscripts \ adsutil. vbs set/msftpsvc/passiveportrange "5500-5515"

4. Restart the FTP service.

You can see the following output When configuring through the adsutil script:

Microsoft (r) Windows Script Host version 5.6

Copyright (c) Microsoft Corporation 1996-2001. All rights reserved ..

Passiveportrange(String )"5500-5515":

Note: If the built-in firewall is enabled, you must add the above ports in the exception.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.