How to use Net2FTP to build a free web file manager and create a personal network disk

1 Introduction

File transfer can be said to be one of the most important applications of the Internet, especially the large-scale use of smart devices. Whether it is personal storage of file information or commercial file transfer, there are demands for data storage and transmission. Where there is demand, there is a market. Corresponding transmission software emerges in endlessly, and each of these software has its own characteristics. With the support of these software, we can easily transform an inconvenient computer into a data storage center, and then cooperate with the cpolar intranet By penetrating the created data tunnel, you can easily build an exclusive private cloud disk. Today, the author will introduce to you how to use Cpolar intranet penetration + Net2FTP to create a private and exclusive file sharing website.

2. Net2FTP website construction

Net2FTP is a relatively well-known web file manager and is often used when uploading data to the server. Net2FTP is based on Web technology, so it can be opened using various browsers and data transmission operations are performed through web pages. Therefore, it has a wide range of uses and is suitable for building your own private cloud disk.

2.1. Net2FTP download and installation

First we need to download the installation file of Net2FTP, which can be found on its official website (net2ftp.com/). Here the author downloaded the complete Version. After the download is completed, decompress the downloaded compressed package and paste it into the web page running environment.

20230410131601

20230410131602

The author is using PHPstudy, so I paste the net2ftp_v1.3 folder into the www folder.

20230410131603

Then open phpstudy and click the 网站 button on the left. Under the "Website" page, click 创建网站 in the upper left corner to set up the local net2ftp website.

The specific content that needs to be set is very few and very simple, specifically:

  • 域名: The domain name used to access the net2ftp web page locally.
  • 端口: That is, the web page output port
  • 根目录: That is the location where the net2ftp web page files are stored, which is the location of the files_to_upload folder. It should be noted that the downloaded net2ftp_v1.3 cannot install the website. The installation file is in the files_to_upload folder, and the root directory must also be set here.
  • CheckFTP和数据库

After completing various settings, click 确认 below to complete the construction of the net2ftp website.

20230410131604

Then click the 管理 button on the right side of the website entry and select the 打开网站 button in the pop-up menu to access the local net2ftp website. It should be noted here that the items in the php扩展 column must be checked, otherwise it may cause an error on the web page. ftp

20230410131605

2.2. Net2FTP web page test

As long as the settings for the net2ftp website in phpstudy are correct, the local webpage of net2ftp can be opened.

20230410131606

Since net2ftp is a web-based interface for FTP clients, we need to set up the ftp service on the local computer. The author uses filezilla as the ftp management software, so open the filezilla interface and click "Site Manager" under the "File" menu in the upper left.

20230410131607

In站点管理器, create a new site:

  • The host field is set to 12.0.0.1
  • Port selection No. 21
  • Enter username and password (the password here is only used for ftp)

After completing the settings, click确认 at the bottom of the page to create the site.

20230410131608

Next, we fill in the ftp host information (including address and port) created by filezilla into the net2ftp page, and then fill in the user name, password, email and other information to log in to the net2ftp web page and upload and download files.

20230410131609

20230410131610

3. cpolar intranet penetration

After installing the net2ftp web page on the local computer and successfully testing the access, you can install Cpolar intranet penetration. The installation and registration of Cpolar is also very simple. You can find the button directly on cpolar’s ​​official website (www.cpolar.com). 下载

20230410131611

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

20230410131612

After the Cpolar download is completed, unzip the downloaded file and double-click the unzipped .msi file to automatically execute the installation program. Click "Next" all the way to complete the installation.

20230410131613

20230410131614

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 "User Registration" in the upper right corner of the cpolar homepage and fill in the necessary information on the registration page to complete the registration.

20230410131615

20230410131616

At this point, we have completed the local access test of the net2ftp page, and also installed the cpolar intranet penetration software on the local computer. Next, we can create an intranet penetration data tunnel that can connect to the local net2ftp, so that we can Access the local net2ftp website on the public Internet.

3.1.Cpolar cloud settings

Data access does not have a specific time, that is, it can happen at any time, so our intranet penetration data tunnel needs to be stable and online for a long time. However, the data tunnel of the free version of cpolar is reset every 24 hours. I don’t want to reconnect every day, so I upgraded cpolar to the VIP version so that I can obtain an intranet penetration data tunnel that can exist stably for a long time.

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.

20230410131617

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

20230410131618

In the "Reserve second-level subdomain name" field, you need to make several simple settings of information, namely

  • 地区: 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 the description of this data tunnel, as long as it can be distinguished from other tunnels).

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

20230410131619

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

20230410131620

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 test page so that we can access the local test on the public Internet. page.

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 cpolar client shortcut in the start menu).

20230410131621

Click the button under the 隧道管理 item on the left side of the client's main interface to enter the local tunnel creation page (if you want to create a 24-hour reset address The temporary data tunnel 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 the test page is a web page, the http protocol is selected; 协议
3. 本地地址 – The local address is the output port number of the local website, and The default output port is, so 81 is also filled in here;
4. 域名类型 – In this example, we have reserved a second-level subdomain name on the cpolar cloud data tunnel, so check "Second-level subdomain name" (if you reserve a custom domain name, check the custom domain name), and fill in the reserved second-level subdomain name in the "Sub Domain" column on the next line. In this example it is "net2ftpweb". If you plan to create a temporary data tunnel, directly check "Random domain name" and let the cpolar client generate the network address by itself;
5. 地区 – Pre-installed with cpolar cloud The information left is the same, we can fill it in according to the actual place of use;

20230410131622

After completing these settings, you can click the "Create" button at the bottom of the page to connect the blank data tunnel in the cpolar cloud with the local net2ftp page, which also provides us with a data tunnel that can access the local net2ftp page on the public Internet.

We can manage this data tunnel on the隧道列表 page under "Tunnel Management", including opening, closing or deleting this tunnel, or click "Edit" ” button to modify the information of this data tunnel.

20230410131623

4. Public network access test

Finally, we click the button under the 状态 item on the left to find the public Internet address of the net2ftp page and paste this address into the browser In the server, you can see the local page, which achieves the purpose of publishing the local page to the public Internet. 在线隧道列表

20230410131624

20230410131625

20230410131626

5 Conclusion

It is not difficult to see from the above introduction that if you want to use cpolar intranet penetration + net2ftp to create an exclusive private cloud disk, the steps are not complicated, but the created private cloud disk can bring us great convenience, that is, we do not have to worry about moving The storage capacity of electronic equipment is too small, and the data on the home computer (computer in the local area network) can be retrieved at any time. Of course, the application scenarios of the intranet penetration data tunnel created by cpolar are not limited to this. We can also use cpolar to combine with other web pages or software to create our own private web page or software access tunnel at any time.


おすすめ

転載: blog.csdn.net/2201_75743654/article/details/134330018