How to set up a Serv-U FTP server accessible from the external network and share files remotely easily!

 

Table of contents

1 Introduction

2. Local FTP setup

2.1 Serv-U download and installation

2.2 Serv-U shared web page test

2.3 Cpolar download and installation

3. Local FTP publishing

3.1 Cpolar cloud settings

3.2 Cpolar local settings

4. Public network access test

5. Summary


1 Introduction

Today, with the increasing development of science and technology, mobile electronic devices seem to have become the protagonists of our lives, and smartphones and tablets are almost never without us. However, smartphones and tablets also have shortcomings, that is, their own storage capacity is too small, so large-capacity storage devices that can retrieve data at any time are very necessary. Today, the author will introduce to you how to use Serv-U+Cpolar intranet penetration on a computer to build an ftp protocol server so that we can read and retrieve file information at any time.

2. Local FTP setup

As a component of the TCP/IP protocol, the main function of the FTP protocol is to transmit web page data and files to the Web server. At the same time, because FTP has extremely high transmission efficiency, it is often used to transmit larger electronic data. Usually the FTP protocol has two components, one is the FTP server (for data storage), and the other is the FTP client (for accessing the designated server). The Serv-U introduced today allows us to easily build an FTP server.

2.1 Serv-U download and installation

Serv-U has very powerful functions, stable operation and simple settings, so it is very popular among users. If you want to build your own Serv-U server, you must first download Serv-U from the Serv-U official website (Serv-U Chinese website).

20230328091101

The computer I used has the Windows operating system installed, so I chose the Windows version to download. As for other operating systems, you can choose according to your needs.

20230328091102

After the download is completed, unzip the downloaded compressed package and double-click the decompressed file.exe to install it

20230328091103

20230328091104

After entering the installation program, just click all the way下一步 and the installation will be completed quickly. When you run Serv-U for the first time after the installation is completed, it will display "The currently defined domain, do you want to define a new domain first?", directly select .

20230328091105

After entering the settings page of自定义域, the list on the left is what we need to set. If there are no special requirements, just enter a few simple contents, and then click < a i=2> to complete the setting. 下一步

First, Serv-U will ask us to set up the custom domain名称. Just fill in the name we like here

20230328091106

20230328091107

In the third step, Serv-U will ask us to fill in domain URL(域名网址). Here we can fill in the local address according to its example (127.0.0.1); The second line is file sharing repository(共享文件存储库). The author chooses to share the entire E drive. If you need to set a folder to be shared, you can click the "Folder" icon on the right side of the field to select

20230328091108

The fourth step is to set the output port of Serv-U. Similarly, if there are no special requirements or the system default port 80 is not occupied, you do not need to modify the settings. However, port 80 of the author's Windows system has been occupied, so port 80 needs to be modified. In this example, it is changed to 83.

It should be noted that the port number modified in this step needs to be remembered so that we can test the access to the FTP transmission webpage later. This port number will also be used when Cpolar performs intranet penetration.

20230328091109

There is nothing that needs to be modified in the next fifth step, just下一步.

20230328091110

The sixth step (the last step) is about the reply password. The viewer can set it by himself if necessary.

20230328091111

After completing the above steps, we have completed the shared area settings of Serv-U, and the next step is添加域用户. Here we just need to follow the software prompts. It should be noted that in the last step of domain user settings, the user's permissions to access shared files will be involved. If you do not want the user to modify the shared files, you must select "Read-only access", otherwise select "Full access".

20230328091112

20230328091113

20230328091114

20230328091115

20230328091116

20230328091117

After setting the access user, you can click完成 to retain the access user settings.

20230328091118

After completing the above settings, we can try to access Serv-U's shared web page on the local computer.

2.2 Serv-U shared web page test

Since the Serv-U address we set before is the local address (127.0.0.1), here we need to enter the IP address and port number of the local computer in the browser. The specific format ishttp://192.168.X.X:之前设置的端口号. In this example, the Serv-U access address is (http://192.168.157.1:83).

20230328091119

As long as the entered address is correct and there are no problems with the previous Serv-U software settings, the Serv-U login interface will be displayed, which means that the FTP server we built using Serv-U has successfully gone online and can accept visits from visitors. But at this time, the Serv-U web page can only be accessed within the LAN. If we want to make this web page accessible from anywhere, we also need to use Cpolar to create an intranet penetration data tunnel.

2.3 Cpolar download and installation

After the local Serv-U server is built, we can install Cpolar intranet penetration to prepare for our FTP server to go online. Like Serv-U, we can directly access the Cpolar official website (cpolar official website - secure intranet penetration tool | no public IP required | remote access | build website), select the version suitable for your computer operating system to download.

20230328091120

The author is using the Windows operating system, so I chose the Windows version to download.

After Cpolar is downloaded, unzip the downloaded file and double-click the decompressed .msi file to automatically execute the installation program. Then just go all the wayNext to complete the installation.

20230328091122

20230328091123

Since cpolar will create an independent data tunnel for each user, supplemented by user password and token code to ensure data security, we need to register the user before using cpolar. The registration process is also very simple. Just click 用户注册 in the upper right corner of the cpolar homepage and fill in the necessary information on the registration page to complete the registration.

20230328091124

20230328091125

3. Local FTP publishing

After completing the deployment of the local Serv-U server and the installation and registration of Cpolar intranet penetration, we can start to create a public Internet address for the Serv-U shared web page, that is, the intranet penetration data tunnel, so that we can operate under public Internet conditions. , you can also access your home FTP server.

Since the author does not want to set the Serv-U web address every day (cpolar resets the data tunnel address of free users every 24 hours), I upgraded cpolar to VIP level to gain the opportunity to establish a long-term stable data tunnel. privilege.

3.1 Cpolar cloud settings

To achieve the purpose of intranet penetration, you need to log in to cpolar's official website first, find the 预留 button on the left side of the user home page, and click to enter cpolar's data tunnel reservation page . A public Internet address is generated here (can also be regarded as the entrance of the data tunnel). Since this address is not connected to the local software output port at this time, it can also be regarded as a blank data tunnel.

20230328091126

On the reservation page, you can see many types of data tunnels that can be reserved. Here we select the 保留二级子域名 field.

20230328091127

In the "Reserve second-level subdomain name" field, you need to make a few simple settings of information.

  • 地区: The area where the server is located, just select the nearest one

  • 二级域名: Will eventually appear in the generated public Internet address as one of the identifiers of the network address

  • 描述: can be regarded as a description of this data tunnel, as long as it can be distinguished from other tunnels)

After completing these settings, you can click the 保留 button on the right to retain this data tunnel.

20230328091128

Of course, if you no longer plan to use this data tunnel, you can click x on the right to delete it easily to save valuable tunnel quota.

20230328091129

3.2 Cpolar local settings

After completing the settings of the cpolar cloud and retaining the blank data tunnel, we returned to the local cpolar client and connected the blank data tunnel generated by the cloud to the local Serv-U web port to officially open the Serv-U Intranet penetration data tunnel. Just like logging in to the Cpolar cloud, we open and log in to the cpolar client locally (you can enter localhost:9200 in the browser to access it directly, or you can click the shortcut of the cpolar client in the start menu)

20230328091130

Click the 隧道管理——创建隧道 button on the left side of the client's main interface to enter the local tunnel creation page (if you want to create a tunnel that does not reset the address within 24 hours) Temporary data tunnels can be set up directly here, there is no need to set up a blank data tunnel on the cpolar official website).

On this page, you also need to make several information settings, which include:

1. 隧道名称 – can be regarded as cpolar’s ​​local tunnel information annotation, as long as it is convenient for us to distinguish; 2. < a i=3> – Since Serv-U outputs a web page, the http protocol is selected here; 协议 3. 本地地址 – The local address is the Serv-U website The output port number, so fill in the previously set port 83 here; 4. 域名类型 – Since we have reserved a second-level subdomain name in the cpolar cloud data tunnel, and generated the public Internet second-level domain name of the Serv-U web page, so we checked 二级子域名 in this row (if a custom domain name is reserved, check the custom domain name) , and fill in the reserved second-level subdomain name in the next rowSub Domain column, which is "servuFTP" in this example. Of course, if you create a temporary data tunnel, just check "Random domain name" directly, and the cpolar client will generate the network address on its own without having to set it up in the cpolar cloud; 5. 地区 – This line is the same as the setting in the cpolar cloud. It is a selection of the server region. We can fill it in according to the actual place of use;

20230328091131

After completing the filling in the information required for the cpolar client to create a tunnel, you can click the 创建 button at the bottom of the page to formally generate data that can be accessed from the public Internet to the local Serv-U web page. tunnel.

After the data tunnel is created, the cpolar client will automatically jump to the 隧道管理——隧道列表 page. On this page, we can see the status of the newly created Serv-U data tunnel. At the same time, we can also perform operations on this data tunnel here, such as starting, pausing, and deleting; if we need to perform operations on the information of this data tunnel, To modify, you can also click the "Edit" button here to enter the data tunnel information modification page.

20230328091132

4. Public network access test

Finally, we click the 状态——在线隧道列表 button on the left side of the cpolar client to enter the online tunnel list page, where we can see Serv- The public Internet address of the U web page.

20230328091133

Through this address, we can access the Serv-U web page located on the local computer from other computers (or devices), and retrieve and access shared files.

20230328091134

5. Summary

It can be seen that the steps and process of using Cpolar to publish Serv-U web pages are not complicated. As an intranet penetration software, cpolar can not only publish Serv-U web pages, but also needs to set the port number of the web page (or software) to be published. Enter cpolar to create a data tunnel connecting the public Internet and local web pages (software).

Guess you like

Origin blog.csdn.net/weixin_58070962/article/details/134711526