Chapter 6: FTP detailed introduction + winServer2008 builds ftp server + winServer2008 opens port

Table of contents

1. Introduction to FTP

2. FTP server setup

3. FTP server connection verification

Four, winServer2008 open port


1. Introduction to FTP

FTP is the File Transfer Protocol. It is used for two-way transmission on the Internet, controlling the file download space, copying files on the server from the local computer or uploading files locally to the space on the server.

We often use FTP servers in our work. Including our server-u server, but our server-u is paid software. If the company pays more attention to software copyright issues, it is not recommended to use server-u, especially if the company has installed server2008, we can use server2008 And later its version of IIS (Internet Information Services Internet Information Services) tool to build our ftp server.

Two, FTP server setup

1. Environmental requirements

        A machine with windows server 2008 or other server versions of the windows operating system installed.

2. Create a user group

        Server 2008 has relatively strict management of user groups and users, and as an ftp server, we must involve a lot of users. Using users alone to manage the workload is very heavy and will not be displayed, so here we first create a user group ftpGroup.

        Click Start -> Administrative Tools -> Server Manager.

        Left menu: Configuration -> Local Users and Groups -> Group Right click on the group -> New Group and fill in the group name,

        click create

3. Create a user

         a. User (right click) -> New User.

         b. Enter the user name and password, remove the option that the user must change the password when logging in next time, check the password never expires, and click Create.

         c. After the creation is completed, a window will pop up again to create the next user. You can create more than one according to your needs.

         d. Modify the user's user group

                Ftptest -> Right click -> Properties

                Switch to the Membership tab -> Click Add

                After entering the group name, click Check Name and OK.

                After clicking, the name of the machine will be added before the name, confirm.

                delete other groups

 4. Install FTP server 

        a. Role (right click) -> Add role.

        b. On the Add Role Wizard page, click Next.

        c. Check the web server (IIS) and click Next.

        d. Click Next

        e. Check the ftp server and click Next.

        f. Click to install

        g. Wait for the installation to succeed. Warnings can be ignored

        h. Click to close

 5. Configure FTP server

        a. Role -> Web Server -> Internet Information Services (IIS) Manager.

        b. Right click on the host name -> Add FTP site.

        c. Fill in the site name, select the physical path, and click Next.

                The site name should not contain Chinese

                The physical path is a local folder

        d. If there is no SSL certificate, select None, and then click Next.

        e. Binding

                Authentication Options Basic

                Authorization options specify roles or user groups.

                ftpGroup (here we use the ftp group we created in the first step)

                Permissions (read and write permissions).

        f. Complete

 6. Set directory permissions

        a. Find the disk file, right click -> properties.

        b. Switch to the Security tab and click Edit.

        c. Click Add

        d. Enter the group name ftpGroup -> check.

        e. Confirm. f. Apply -> OK

        g. OK.

7. Restart the server (optional)

        Due to changes involving user groups, a restart may be required to take effect. It is recommended to restart the server and then test the connection.

        Otherwise, the ftp server may not be connected.

 3. FTP server connection verification

1. Connection verification

        a. Local browser verification.

                Browser input ftp://localhost

                Enter username and password

        b. LAN browser access.

                Browser input ftp://ftp server ip

                Enter username and password

        c. xftp access

                Use ipconfig to query the local ip

                Open the xftp program, file -> new

                The host fills in the local ip

                Protocol selection FTP

                Enter username and password

                switch tab to options

                Select character encoding UTF-8

                Sure

                connect

 Four, winServer2008 open port

The "port" of a computer is a free translation of the English port, which can be considered as the outlet for the computer to communicate with the outside world.

        1. Well Known Ports: from 0 to 1023

        2. Registered Ports: from 1024 to 49151

        3. Dynamic and/or Private Ports (Dynamic and/or Private Ports): from 49152 to 65535 (SUN's RPC port starts from 32768)

        common port

                8080 is an alternate port for http service

                21 The port opened by the FTP server for uploading and downloading

                22SSH port

                23Telnet

                25 The port opened by the SMTP server for sending mail

                80 for web browsing

1. Server Manager -> Configuration -> Advanced Security Windows Firewall Settings -> Inbound Rules

2. Right-click -> New Rule

3. Click Port -> Next

4. Add port 8080 -> Next

5. Allow connection -> Next step

6. Select all -> Next

7. Fill in the name -> Finish

 port related

1. The command netstat -na will display the connection status of the machine and the opened ports

2. Use the telnet ip port command to test whether the port is open

3. Install telnet

        Click Start, right-click Computer, and then click Manage.

        In the Feature Summary section, click Add Feature.

        On the Select Features page, select Telnet Server. Optionally select Telnet Client as well.

        Click Next, and then on the Confirm Installation Options page, click Install.

        On the Installation Results page, click Close.

        Note here that the service is prohibited and needs to be changed to automatic or manual in the service

4. To start the Telnet server, please type net start telnet.

5. To stop the Telnet server, please type net stop telnet.

 This concludes today's sharing!

Guess you like

Origin blog.csdn.net/m0_62246061/article/details/131440683