Serv-U FTP server combines cpolar intranet penetration to realize shared files and remote access from the external network - "cpolar intranet penetration"

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 a 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 ( http://www.serv-u.com.cn/ ).

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 complete, unzip the downloaded compressed package and double-click the decompressed .exefile 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?", select it directly .

20230328091105

After entering 自定义域the settings page, the list on the left is what we need to set. If there are no special needs, just enter a few simple contents and click to 下一步complete the settings.

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

20230328091106

20230328091107

In the third step, Serv-U will ask us to fill it in domain URL(域名网址). Here we can fill in the local address according to its example ( 127.0.0.1); in the second line 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 it.

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, to 83 in this example.

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 to modify in the next fifth step, just 下一步go ahead.

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 添加域用户the steps. 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 is http://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 visit the Cpolar official website ( https://www.cpolar.com/ ) and choose the version suitable for our computer operating system to download.

20230328091120

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

After the Cpolar download is completed, unzip the downloaded file and double-click the unzipped .msifile to automatically execute the installation program. Then it only takes one step Nextto complete the installation.

20230328091122

20230328091123

Since cpolar will create an independent data tunnel for each user, supplemented by user passwords and token codes to ensure data security, we need to register users before using cpolar. The registration process is also very simple. Just click on 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 first log in to cpolar's official website, find the 预留button on the left side of the user's 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 on the right to xdelete 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 intranet penetration of Serv-U. Data tunnel. Just like logging in to the Cpolar cloud, we open and log in to the cpolar client locally (you can enter it in the browser to localhost:9200access it directly, or you can click on the cpolar client shortcut 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 temporary data tunnel that does not reset the address within 24 hours, you can set it up directly here instead of setting up a blank data tunnel on the cpolar official website) .

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

1. 隧道名称– It can be regarded as cpolar’s ​​local tunnel information annotation, as long as it is convenient for us to distinguish;
2. 协议– 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 the data tunnel of the second-level subdomain name in the cpolar cloud and generated the public Internet second-level domain name of the Serv-U web page, Therefore, we check this row 二级子域名(if the reserved domain name is a custom domain name, check the custom domain name), and Sub Domainfill in the reserved second-level subdomain name in the next row, 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 by itself 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 the choice of 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 a data tunnel that can access the local Serv-U web page from the public Internet.

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 the public Internet address of the Serv-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 Conclusion

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

Reprinted from cpolar pole cloud article: Build a Serv-U FTP server to share files and remotely access the external network "without public network IP"

Guess you like

Origin blog.csdn.net/weixin_74957752/article/details/133274157