首页 > 系统相关 >Setting Up an FTP Site on Windows IIS_Cloud Server

Setting Up an FTP Site on Windows IIS_Cloud Server

时间:2024-07-08 18:43:13浏览次数:16  
标签:FTP IIS Windows site Server SSL ECS click

Overview

The best practices for ECS guide you through the setup of an FTP site on a Windows ECS. The Windows Server 2012 R2 OS is used as an example in this section.

The process is as follows:

  1. Add IIS and FTP service roles.
  2. Create a username and password.
  3. Assign permissions to shared files.
  4. Add and set the FTP site.
  5. (Optional) Configure the FTP firewall.
  6. Set the security group and firewall.
  7. Verify the configuration on the client.
Procedure
  1. Add IIS and FTP service roles.
    1. Log in to the ECS.
    2. Choose Start > Server Manager.
    3. Click Add roles and features.

    4. In the Before you begin dialog box, click Next.
    5. Select Role-based or feature-based installation and click Next.

    6. Select the ECS where FTP is to be deployed and click Next.

    7. Select Web Server (IIS). In the dialog box that is displayed, click Add Features and then Next.

       

    8. Click Next until the Role Service page is displayed.
    9. Select FTP Server and IIS Management Console. Then, click Next.

    10. Click Install to assign the service roles.
    11. After the installation is complete, click Close.
  2. 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.

    1. In Server Manager, choose Dashboard > Tools > Computer Manager.

    2. Choose System Tools > Local Users and Groups > Users, right-click the blank area on the right, and choose New User from the shortcut menu.

    3. Set User name (ftpadmin is used as an example) and Password.

     

  3. Assign permissions to shared files.

    Set access and edit permissions for the files shared to users on the FTP site.

    1. 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.

    2. On the Security tab, select Everyone and click Edit.

      If Everyone is unavailable, add it. For details, see FAQs.

       

    3. Select Everyone, assign permissions as needed, and click OK.

      In this example, all permissions are allowed.

     

  4. Add and set the FTP site.
    1. In Server Manager, choose Dashboard > Tools > Internet Information Services (IIS) Manager.

    2. Right-click Sites and choose Add FTP Site from the shortcut menu.

    3. In the dialog box that is displayed, 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.

       

    4. Enter the private IP address and port number of the ECS, set SSL, and click Next.
      • The default port number is 21. You can set the port number as required.
      • Set SSL as required.
        • No SSL: SSL encryption is not required.
        • Allow SSL: allows non-SSL and SSL connections between the FTP server and the client.
        • Required SSL: SSL encryption is required for the communication between the FTP server and the client.

          NOTE:

          When Allow SSL and Require SSL are selected, select an existing SSL certificate or create one. For details, see 3.

    5. 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. Therefore, 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 group 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.

    6. 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 add click OK.

  5. (Optional) Configure the FTP firewall.
    • To enable the passive mode on the FTP server, configure the FTP firewall.
    • 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.云服务器一般都有公网IP,如果需要通过公网IP来访问FTP服务,则需要配置防火墙启用Passive Connection. (即便服务器上防火墙关闭也需要配置并重启服务器生效)
    1. Double-click FTP Firewall Support.

    2. 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: Enter the public IP address of the ECS.

    3. Restart the ECS for the firewall configuration to take effect.
  6. Set the security group and firewall.

    云服务器安全组策略,添加一条入站规则,允许上述Passive端口。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 the ports on which to allow packets, 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.

    Table 1 Security group rules

    FTP Mode

    Direction

    Protocol

    Port

    Source

    Active

    Inbound

    TCP

    Ports 20 and 21

    0.0.0.0/0

    Passive

    Inbound

    TCP

    Port 21, and port range from 1024 to 65535 (such as 5000-6000)

    0.0.0.0/0

     

  7. Verify the configuration on the client.

    On the computer with the client installed, enter fttp://IP address of the FTP server:FTP port number in the Internet Explorer address bar. If you do not specify the port number, default port number 21 is used. 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.

    NOTE:

    If FTP Firewall Support is not configured, configure the Internet Explorer browser. Otherwise, the FTP folder will be inaccessible. To configure the Internet Explorer browser, choose Tools > Internet Options > Advanced, select Enable FTP folder view, and deselect Use Passive FTP.

FAQs
  1. For more information about setting up an FTP site on a Windows ECS, see Microsoft official documents.
  2. When configuring the properties of a folder, if Everyone is unavailable, perform the following operations to add it:
    1. On the Security tab, click Edit.

    2. In the dialog box that is displayed, click Add.

    3. In the dialog box that is displayed, click Advanced.

    4. In the dialog box that is displayed, click Find Now, select Everyone in search results, and click OK.

    5. Click OK to return to the permissions page.
    6. Click OK.
  3. Create a server certificate.
    1. In Server Manager, choose Dashboard > Tools > Internet Information Services (IIS) Manager.

    2. In the list on the left, click the server. Under IIS, double-click Server Certificates. The Server Certificates page is displayed.

    3. Click Create Self-Signed Certificate.

    4. Specify a certificate name, select a certificate storage type, and click OK.

      The created certificate is displayed on the Server Certificates page.

      From: Setting Up an FTP Site (Windows)_Elastic Cloud Server (huaweicloud.com)

标签:FTP,IIS,Windows,site,Server,SSL,ECS,click
From: https://www.cnblogs.com/rusking/p/18290522

相关文章

  • windows 安装fvm 安装使用FVM,管理多版本flutter
    背景:win101,先用clash代理powershell命令,解决网络问题2.使用dart安装FVMdartpubglobalactivatefvm3.安装后检查系统环境变量3.1 我的电脑》右键属性》高级系统设置》环境变量》PATH   看看path里有没有C:\Users\Administrator\AppData\Local\Pub\C......
  • Windows进程令牌相关信息的获取
    代码样例#include<iostream>#include<cstdio>#include<cstdlib>#include<cstring>#include<conio.h>#include<string>#include<vector>#include<map>#include<list>#include<set>#include<......
  • 解决计算机中mfc140u.dll没有被指定在windows上运行
    在打开电脑软件时候出现mfc140u.dll丢失或找不到mfc140u.dll怎么办?遇到这个问题相当困扰,mfc140u.dll到底是什么?为什么会出现这个情况,相信很多人都不知道,今天我给大家详细介绍一下mfc140u.dll是什么,为什么会丢失和mfc140u.dll丢失的多种不同解决方法分享!一、mfc140u.dll丢失......
  • Windows服务器系统远程桌面设置多用户同时登录设置方法
    在实际使用我们较多使用的都是windows系统的单用户模式,它意味着当我们登录一个用户的时候如果另外一个用户也在登录,那么就得等待另外一个用户退出后或者强制踢出当前用户,才可以登录我们这个用户,下面大家可以参考下面的文章设置一下 在实际使用我们较多使用的都是windows系......
  • Windows 电脑查看 WiFi 密码的方法都有哪些?
    从设置面板中查看当你使用的是笔记本电脑并且连接WiFi之后可以在设置面板中查看WiFi密码,首先打开设置界面,然后点击网络和Internet,找到WiFi之后点击进入,然后点击管理已知网络。然后点击已经连接好的无线网络。进入之后点击查看WiFi安全密钥区域的显示按钮,就可以看......
  • 在Windows环境下安装Python 3.11的步骤
    在Windows环境下安装Python3.11的步骤相对直接。下面是详细的安装教程:第一步:下载Python3.11安装程序访问Python官方网站的下载页面:https://www.python.org/downloads/在页面中找到适用于Windows的Python3.11版本,点击下载对应你操作系统的安装包。通常,你会看到一个明显......
  • Windows 新增多个显示 不显示下面任务栏
    前言全局说明Windows多个显示不显示下面任务栏一、说明二、问题新增多个显示不显示下面任务栏,之前加的显示,可以正常显示任务栏。三、解决方法:在任务栏上右键--任务栏设置--个性化--任务栏--任务栏行为,先将选中的勾(对号)去掉,然后再勾上,就全显示了。......
  • Install the Operating System of Windows and Linux on the Laptop
    EnvironmentsWindows11Ubuntu24.04LTSLaptop:YogaPro14SARH7AllocatedDiskForUbuntu:146.5GBStepI:DownloadUbuntuPackageDownloadtheUbuntuISOfilefromtheofficialwebsite:https://ubuntu.com/download/desktopJustselecttheversion......
  • windows使用性能监视器监测C盘空间
    windows平台使用系统自带的性能监视器监测C盘空间并发送提醒邮件一、设置任务计划设置任务计划,自动发送邮件任务计划名称“Mail-diskC”方式一:使用bat脚本调用ps1文件任务计划执行bat批处理脚本,调用另一powershell文件该计划任务为后续性能监视器所调用,因此不需要设置触发......
  • windows版Oracle11g安装记录
    一、下载Oracle 11g数据库安装包已上传至博客园文件中二、安装Oracle11g下载下来是下图这样的两个压缩包:1、解压这两个压缩包到同一个文件夹(切记路径文件不可有中文、空格和不规则字符。):2、将解压好的win64_11gR2_database_2of2\database\stage\Components下的所有文件拷......