Setting Up an FTP Site (Windows 2019)
Overview
The best practices for ECS guide you through the setup of an FTP site on a Windows ECS. The Windows Server 2019 OS is used as an example in this section.
The process is as follows:
Procedure
- Add IIS and FTP service roles.
- Log in to the ECS.
- Choose Start > Server Manager.
- Click Add roles and features.
- In the Before you begin dialog box, click Next.
- Select Role-based or feature-based installation and click Next.
- Select the ECS where FTP is to be deployed and click Next.
- Select Web Server (IIS). In the displayed dialog box, click Add Features and then Next.
- Click Next until the Role Services page is displayed.
- Select FTP Server and IIS Management Console. Then, click Next.
- Click Install to assign the service roles.
- After the installation is complete, click Close.
- Create a username and password.
The Windows username and password are used for FTP. If you allow anonymous users to access FTP, you do not need to create an FTP username and password.
- In Server Manager, choose Dashboard > Tools > Computer Management.
- Choose System Tools > Local Users and Groups > Users, right-click the blank area on the right, and choose New User from the shortcut menu.
- Set User name (ftpadmin is used as an example) and Password.
- Click Create.
- In Server Manager, choose Dashboard > Tools > Computer Management.
- Assign permissions to shared files.
Set access and edit permissions for the files shared to users on the FTP site.
- Create a folder for FTP on the ECS, right-click the folder, and choose Properties from the shortcut menu.
The work01 folder is used as an example and it contains the test.txt file to be shared.
- On the Security tab, select Everyone and click Edit.
If Everyone is unavailable, add it. For details, see FAQs.
- Select Everyone, assign permissions as needed, and click OK.
In this example, all permissions are allowed.
- Create a folder for FTP on the ECS, right-click the folder, and choose Properties from the shortcut menu.
- Add and set the FTP site.
- In Server Manager, choose Dashboard > Tools > Internet Information Services (IIS) Manager.
- Right-click Sites and choose Add FTP Site from the shortcut menu.
- In the displayed dialog box, set the FTP site name and the physical path in which the shared folder is stored. Then, click Next.
Site name FTPSERVER is used as an example.
- Enter the private IP address and port number of the ECS, set SSL, and click Next.
- Port 21 is used by default. You can set it as required.
- You can also set SSL as required.
- No SSL: SSL encryption is not required.
- Allow SSL: Non-SSL and SSL connections between the FTP server and the client are allowed.
- Require SSL: SSL encryption is required for the communication between the FTP server and the client.
When Allow SSL and Require SSL are selected, you can select an existing SSL certificate or create one. For details, see 3.
- Configure authentication and authorization and click Finish.
- Authentication
- Anonymous: allows any user with username anonymous or ftp to access.
- Basic: allows only users with authorized usernames and passwords to access. However, the passwords transmitted over the network are not encrypted. You are advised to use this authentication method after confirming that the network connection between the client and the FTP server is secure.
- Authorization
- Allow access to:
- All users: All users are allowed.
- Anonymous users: Anonymous users are allowed.
- Specified roles or user groups: Only specified roles or user group members are allowed. If you select this option, you are required to enter the specified roles or user groups in the text box.
- Specified users: Only specified users are allowed. If you select this option, you are required to enter the specified users in the text box.
- Permissions: specifies permissions for the authorized users.
- Allow access to:
- Authentication
- Add the private IP address of the ECS to the FTP site.
Choose Sites, select the FTP site, and click Bindings. In the Site Bindings dialog box, click Add. Then, add the private IP address of the ECS in the displayed dialog box and click OK.
- In Server Manager, choose Dashboard > Tools > Internet Information Services (IIS) Manager.
- (Optional) Configure the FTP firewall.
- To enable the passive mode on the FTP server, the FTP firewall must be configured.
- If Huawei Cloud servers use public IP addresses to access the FTP site that is set up on a Huawei Cloud ECS, the passive mode must be enabled on the FTP server.
- Double-click FTP Firewall Support.
- Set parameters and click Apply.
- Data Channel Port Range: specifies the range of ports used for passive connections. The port range is 1025-65535. Configure this parameter based on site requirements.
- External IP Address of Firewall: specifies the public IP address of the ECS.
- Restart the ECS for the firewall configuration to take effect.
- Set the security group and firewall.
After setting up the FTP site, add a rule in the inbound direction of the security group to allow packets to pass through the FTP port. For details, see Configuring Security Group Rules. For details about which ports are allowed, see Table 1.
If FTP Firewall Support is configured, enable the ports used by the FTP site and the data channel ports used by the FTP firewall in the security group.
By default, the firewall allows packets to pass through TCP port 21 for FTP. If another port is used, add an inbound rule that allows packets to pass through the port on the firewall.
- Verify the configuration on the client.
On the computer with the client installed, enter ftp://Public IP address of the FTP server:FTP port number in the Internet Explorer address bar. If you do not specify the port number, port 21 is used by default. If a dialog box is displayed for you to enter the username and password, the configuration is correct. After entering the username and password, you can perform operations on the FTP folder with assigned permissions.
If FTP Firewall Support is not configured, configure the Internet Explorer browser. Otherwise, the FTP folder cannot be accessed. To configure the Internet Explorer browser, choose Tools > Internet Options > Advanced, select Enable FTP folder view, and deselect Use Passive FTP.
FAQs
- For more information about setting up an FTP site on a Windows ECS, see Microsoft official documents.
- When configuring the properties of a folder, if Everyone is unavailable, perform the following operations to add it:
- On the Security tab, click Edit.
- In the displayed dialog box, click Add.
- In the displayed dialog box, click Advanced.
- In the displayed dialog box, click Find Now, select Everyone in search results, and click OK.
- Click OK to return to the permissions page.
- Click OK.
- On the Security tab, click Edit.
- Create a server certificate.
- In Server Manager, choose Dashboard > Tools > Internet Information Services (IIS) Manager.
- In the left list, click the server. Under IIS area, double-click Server Certificates. The Server Certificates page is displayed.
- Click Create Self-Signed Certificate.
- Specify a certificate name, select a certificate storage type, and click OK.
The created certificate is displayed on the Server Certificates page.
- In Server Manager, choose Dashboard > Tools > Internet Information Services (IIS) Manager.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot