Access ZenTao remotely from outside and light up the new software testing skill "Intranet Penetration"

1 Introduction

As a software technician, the inevitable thing every day is to fight with various bugs. Looking back on the entire history of computer development, the fight against bugs has never stopped. From the initial "physical bugs" to the later digital bugs, they have always developed with the development of computer technology. It is conceivable that catching bugs will still be one of our daily tasks in the future. In order to catch bugs more conveniently, we not only need to use bug management programs, but also conduct field tests in different usage scenarios of the software to avoid the damage caused by bugs to the greatest extent.

Nowadays, many bug management software have strong functions, but almost all of them are limited to the local area network. If you want to test in different environments or coordinate processing in multiple places, you will have a lot of trouble. In fact, we can use the intranet penetration function of cpolar and combine it with the bug management software to easily publish the bug management software to the public Internet to test the software under any network conditions and eliminate bugs. Now, let's see how to do it.

2. BUG management software settings

In order to better solve the troubles caused by bugs, bug management software has emerged in endlessly, and there are many commendable software, such as ZenTao, Tracpu, Bugtags, Bugzilla, etc. For the convenience of demonstration, we take ZenTao, a bug management software, as an example to show you how to use cpolar to publish the bug management software to the public Internet and use ZenTao outside the LAN.

2.1. Download and install ZenTao bug management software

ZenTao is well-known in the programming circle, so you can directly download the latest version of the software from its official website ( https://www.zentao.net/dynamic/zentaopms17.8-81798.html ). In this example, the author is using a Windows system, so I choose the corresponding version to download.

20230317094001

After the software is downloaded, you can simply double-click it to install it. There is actually nothing to say about the installation process. If you download different versions of ZenTao, the installation process will be different. And the ZenTao official website has a complete installation guide. I am not here. This is too much to say. Moreover, after the installation of ZenTao is completed (ZenTao is opened as a web page), you will need to install the corresponding configuration (such as database, apache, XXD, you can click the shortcut interface on the installation interface to install)

20230317094002

After these settings are completed, you can officially enter the Zen Tao main interface. Of course, what is indispensable is user registration and logging in with the registered name.

20230317094003

After completing the installation of ZenTao, we can proceed to the next step, which is the installation of cpolar.

2.2.cpolar download and installation

To download Cpolar, you can directly log in to the cpolar official website ( www.cpolar.com ) and download the corresponding version. Similarly, the author also downloaded the Windows version.

20230317094004

After the download of cpolar's Windows version installer is completed, double-click the installation file to complete the installation process. There is nothing we need to set during the process, just click it Next.

20230317094005

20230317094006

Since cpolar will establish a separate data tunnel for each user to ensure the security of data transmission when customers use the data tunnel, we also need to register users on the cpolar official website. The registration process is also very simple, just fill in a few necessary information (such as user name, email, etc.)

20230317094007

20230317094008

3. Local intranet penetration

After both ZenTao and cpolar have been installed and registered, we can proceed to set up the intranet penetration data tunnel. Specifically, the output port of ZenTao on the intranet is used to generate a public Internet address using cpolar. Through this address, users can access ZenTao in the LAN on the public Internet to achieve the purpose of remotely catching bugs. Since catching bugs is a long-term and continuous process, users do not want to update the public Internet address generated by cpolar every day (the data tunnel generated by the free version of cpolar is updated every 24 hours), so the author recommends upgrading cpolar to vip level in order to obtain a data tunnel that can exist stably for a long time.

If we want the data tunnel generated by cpolar to exist stably for a long time, we need to set it up from both the cpolar cloud and the client. The Cpolar cloud is responsible for generating long-term stable public Internet addresses, while the cpolar client is responsible for connecting the public Internet address to the local ZenTao port. Therefore, we can regard the settings of cpolar cloud as generating a blank data tunnel, which is the entrance of the tunnel; and the cpolar client is the exit of the tunnel. The specific tunnel entrance and exit settings are as follows.

3.1.Cpolar cloud settings

First, we log in to the cpolar cloud and click 预留the button on the left side of the main interface to enter the data tunnel reservation settings page.

20230317094009

On 预留the settings page, find 保留二级子域名the field. In this field, we only need to set a few simple information to generate the entrance to the data tunnel.

20230317094010

These pieces of information are:

  • 地区(That is the location of the server, just select the nearest location)
  • 二级域名(That is, the second-level domain name we intend to set up for this tunnel)
  • 描述(Can be seen as a note on the purpose of this data tunnel)

After entering the information, you can click 保留the button on the right side of the field to generate the tunnel entrance. If we no longer want to keep this data tunnel, we can click on the right side of the tunnel to xdelete the tunnel easily and quickly.

20230317094011

20230317094012

3.2.Cpolar local settings

After completing the data tunnel entrance setting on the cpolar cloud, we return to the cpolar client and set the exit for this data tunnel. Open the cpolar client (you can click the cpolar client shortcut in the start menu, or you can directly enter localhost:9200 in the browser) and log in.

20230317094013

After entering the main interface of the cpolar client, we click the button 隧道管理under the item on the left side of the main interface 创建隧道to set the exit of the intranet penetration data tunnel. The specific settings are as follows:

  1. 隧道名称: Can be regarded as the local remarks of the data tunnel, used to distinguish it from other locally created tunnels. In this example, the author sets the name to remote bug catching;
  2. 协议: This column is an application scenario for intranet penetration, such as publishing web pages, data transmission, hardware interconnection, etc. Since ZenTao is displayed as a web page, http is selected for this;
  3. 本地地址: This column needs to be filled in with the port number of the output software. ZenTao uses apache for output, so the port number is 80;
  4. 端口类型: This column is mainly the duration of the intranet penetration data tunnel. If you plan to use it for a long time, click "Second-level subdomain name or custom domain name". If it is just for testing or temporary use, select "Random domain name". We have set up a long-term fixed second-level domain name tunnel on the cpolar cloud, so we choose "second-level subdomain name" here. Of course, if the user has a custom domain name purchased by the Yugong supplier, he can also fill in the custom domain name, but the purchased domain name needs to be resolved at the Yugong supplier.
    After selecting the second-level subdomain name, the Sub Domain field on the next line will appear. Here we fill in the second-level subdomain name reserved by cpolar cloud.
  5. 地区: This field is also the server address, we can still select the nearest one.

20230317094014

After filling in all relevant information, you can click 创建the button at the bottom of the page to associate the cloud tunnel entrance with the local ZenTao software to generate a complete intranet penetration data tunnel. This tunnel can be seen on the page 隧道管理under the left item of the cpolar main interface 隧道列表.

At the same time, we can also manage this data tunnel here, such as checking whether the data tunnel is running, opening, closing, and deleting operations; if we want to modify the information of this data tunnel, we can also click here to perform operations 编辑.

20230317094015

4. Public network access test

状态Finally, when we click on the left item on the main interface of the cpolar client 在线隧道列表, we can see the public Internet address connected to the local ZenTao software, which is the tunnel entrance for accessing ZenTao in the LAN from the public network. Paste this address into the browser Within, you can connect to the local ZenTao software.

20230317094016

20230317094017

5 Conclusion

At this point, we have successfully completed the operation of using the data tunnel generated by cpolar to access the local bug management software on the public Internet. At this time, we can connect to the ZenTao installed on the local computer through this track entrance from anywhere. software. Of course, this case is mainly to provide ideas. Other software can also be released to the public Internet in a similar way.

Reprinted from cpolar pole cloud article: Remote access to Zen Tao from outside, lighting up the new software testing skill "Intranet Penetration"

Guess you like

Origin blog.csdn.net/qq_24694139/article/details/132878914