Method to achieve remote access to the intranet BUG management system: use Cpolar intranet penetration technology

Preface

BUG management software is one of the necessary tools for software test engineers. In the process of software development, the management of bugs is also extremely important, often essential. During the collaborative development process of multiple teams, multiple people are usually required to access our internal bug management system services in different scenarios. At this time, the limitations of the intranet are exposed. However, we can use the Cpolar intranet penetration tool to safely and stably expose it to the public network to achieve remote access to local BUG management services on the intranet.

This tutorial takes the ZenTao system as an example to implement the public network remote intranet ZenTao BUG management system through cpolar intranet penetration [cpolar supports the http/https/tcp protocol, does not limit traffic, does not require a public network IP, and does not need to set up a router 】.

1. Install and configure the BUG management system locally

It should be noted that the local BUG management system needs to support access through the http service. If you have configured other BUG management system services locally, you can directly skip to the second step of intranet penetration.

Open ZenTao official website to download the open source version: https://www.zentao.net/dynamic/zentaopms17.8-81798.html

Here take the windows version as an example, download the windows 64-bit version

202301163172001

After downloading, install and open. After clicking Start, the following three services will be automatically installed

202301163172002

After the installation is successful, the following conditions indicate that the installation has started successfully

202301163172003

Click to access Zen Tao, and the browser will automatically open for access. The Zen Tao interface will appear, indicating that the access is successful. Click the open source version, and the login interface will appear

202301163172004

2. Intranet penetration

After confirming that the BUG management system can be accessed normally through a browser in the LAN, cpolar can be used to penetrate the local service so that remote access can be achieved.

cpolar official website: https://www.cpolar.com/

2.1 Install cpolar intranet penetration

Visit cpolar official website, register an account, and then download and install the client. For the installation tutorial, please refer to the official website documentation tutorial .

20230116180428

2.2 Create tunnel mapping local service

After cpolar is successfully installed, visit the local port 9200 [ http://127.0.0.1:9200/ ] on the browser , and log in with the cpolar account.

20230116180611

Click Tunnel Management on the left dashboard - Create Tunnel. Since Apache in ZenTao is configured with port 80, we need to create an http tunnel pointing to port 80:

  • Tunnel name: can be customized, be careful not to duplicate the existing tunnel name
  • Protocol: http protocol
  • Local address: 80
  • Domain name type: Choose a random domain name for free
  • Region: Select China top

Click创建

202301163172005

After the tunnel is successfully created, click on the status on the left - online tunnel list, check the public network address corresponding to port 80 and copy the address

202301163172006

3. Test public network remote access

Open the browser to access the generated public network address, and the Zen Tao interface will appear to indicate success

202301163172007

4. Configure a fixed second-level subdomain name

Since the tunnel created using cpolar above uses a random public network address, it will change randomly within 24 hours, which is not conducive to long-term remote access. Therefore, we can configure a second-level subdomain name for it. This address is a fixed address and will not change randomly [ps: cpolar.cn has been filed]

Note that you need to upgrade the cpolar package to a basic package or above, and the bandwidth corresponding to each package is different. [cpolar.cn has been registered]

4.1 Reserve a second-level subdomain name

Log in to the cpolar official website, click Reserve on the left, select to reserve the second-level subdomain name, set a second-level subdomain name, click Reserve, and copy the reserved second-level subdomain name after the reservation is successful.

202301163172008

202301163172009

5.1 Configure the second-level subdomain name

Visit http://127.0.0.1:9200/ , log in to the cpolar web UI management interface, click Tunnel Management - Tunnel List on the left dashboard, find the tunnel you want to configure, and click Edit on the right

202301163172010

Modify the tunnel information and configure the successfully reserved second-level subdomain name into the tunnel.

  • Domain name type: Select a second-level subdomain name
  • Sub Domain: Fill in the second-level subdomain name that has been successfully reserved, in this case test01

Click更新

202301163172011

Then check the online tunnel list, you can see that the public network address has become the second-level subdomain address we set, and then copy the address

202301163172012

6. Use fixed second-level subdomain name remotely

Access the fixed second-level subdomain name on the browser, and the login interface will appear to indicate success. Now the public network address will not change randomly.

202301163172013

Reprinted from the cpolar pole cloud article: remote access to intranet BUG management system [cpolar intranet penetration] - cpolar pole cloud

Guess you like

Origin blog.csdn.net/m0_74760716/article/details/132757959