Application of intranet penetration - How to use Docker to install and remotely access the local network center cloud container Rubik's Cube management interface in Qunhui 7.2

This article mainly introduces how to use Docker to install the container cube in Qunhui version 7.2, and combine it with the Cpolar intranet penetration tool to achieve remote access to the local network center cloud container cube interface.

Container Cube is a Docker container image software launched by NetXin Cloud. After simple installation, you can quickly join the NetXin Cloud shared computing ecological network and contribute bandwidth and storage resources to NetXin Technology Star Cloud. Users can use it according to their daily needs. The amount of contribution can get corresponding benefits.

Currently supported: iStoreOS, Koolshare LEDE, Synology, Raspberry Pi and other devices that support Docker

Cpolar intranet penetration is a secure intranet penetration cloud service that can expose local servers under the intranet to the public network through a secure tunnel, so that public network users can normally access intranet services. It supports HTTP, HTTPS, and TCP protocol port mapping.

1. Pull the container Rubik’s Cube image

In this example, the Qunhui version cannot directly search for containers in the Qunhui control panel, so the command line method is used to download the container. First, open the Qunhui ssh connection, then use a tool to connect to Qunhui through ssh, and execute the following docker to pull the image container:onething1/wxedge

sudo docker pull onething1/wxedge

After execution, wait for the pull to complete, return to the Qunhui management interface, open the Container manager, and you can see the pulled containeronething1/wxedge

image-20231212134945313

2. Run Container Cube

After pulling, start configuring the relevant parameters, then run the container, select the container, and then click Run in the upper left corner

image-20231212135438276

Then click next

image-20231212135547408

First set the mounted port 18888, which is also the port accessed by our browser.

image-20231212135812840

Then set the storage space and click Add Folder

image-20231212135916201

Then we create a new folder under the docker directory

image-20231212140027651

After creation, the structure is like this, and then select this folder as the storage folder

image-20231212140129422

After selecting, add another path/storage

image-20231212140419126

After selecting, drag it down, check "Use advanced permissions to execute containers", and then click Next

image-20231212140221085

Confirm the final information, click Finish, and the container will be completed.

image-20231212140526690

3. Access container cube locally

Open the container interface and you can see that the container is running. Next, access the local LAN IP.

image-20231212140709730

Enter the Qunhui LAN IP and port 18888 in the browser, and you will see the container Rubik's Cube interface. The local deployment access is successful. Next, we install the cpolar package to enable remote access!

image-20231212141011664

4. Install Cpolar on Qunhui

Click the Cpolar Synology Suite download address below to download the corresponding version of the Synology Cpolar Suite.

https://www.cpolar.com/synology-cpolar-suite,

20221222170135

Open套件中心 and click the 手动安装 button in the upper right corner.

20221117182200

Select the cpolar installation package we downloaded locally.

20221117182209

Point 击下一步按钮

20221117182214

Click the 同意 button, then click Next

20221117182222

Finally click Finish.

image-20230613160618406

After the installation is completed, in the external browser, we access Cpolar's Web management interface through 群辉的局域网ip地址 plus 9200 port, and then enter the Cpolar email account and password Sign in

image-20230612165349594

5. Configure the remote address of the container Rubik's Cube

Click Tunnel Management - Create Tunnel on the left dashboard to create a public network address tunnel for the container Rubik's Cube!

  • Tunnel name: The name can be customized. Be careful not to duplicate the existing tunnel name.
  • Protocol: Select http
  • Local address: 18888 (the port set when running the container)
  • Domain name type: Choose a random domain name for free
  • Region: Select China

Click创建

image-20231212142449772

After the tunnel is successfully created, click the status on the left - online tunnel list to view the generated public network access address. There are two access methods, one is http and https

image-20231212142510544

6. Remote access testing

Use the above Cpolar https public network address and access it from the browser of any device. You can successfully see the container Rubik's Cube interface. Such a public network address that can be accessed remotely is created. Using cpolar's public network domain name, no need Purchase your own cloud server and publish it to the public network for remote access!

image-20231212142647522

summary

For a better demonstration, we used the tunnel generated by cpolar in the aforementioned process, and its public network address was randomly generated.

The advantage of this random address is that it is established quickly and can be used immediately. However, its disadvantage is that the URL is generated by random characters and is not easy to remember (for example: 3ad5da5.r10.cpolar.top). In addition, this address will change randomly within 24 hours, making it more suitable for temporary use.

I usually use a fixed second-level subdomain name because I hope that when I send the URL to colleagues or clients, it will be a fixed and easy-to-remember public address (for example: wxedge.cpolar.cn), which makes it more formal and convenient. Communicate and collaborate.

7. Fixed public network address

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]

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. Level subdomain name

image-20231212143339365

After the reservation is successful, copy the name of the second-level subdomain name that was successfully reserved.

image-20231212143357150

Return 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

image-20231212143422578

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 successfully reserved second-level subdomain name

Click更新(Note, click once to update, no need to submit again)

image-20231212143458651

After the update is completed, open the online tunnel list. At this time, you can see that the public network address has changed and the address name has become a fixed second-level subdomain name.

image-20231212143518679

Finally, we use a fixed public network address to access, and we can see that the access is successful. In this way, a fixed and permanent public network address is set, and the Netcenter Cloud container Rubik's Cube interface can be remotely accessed anytime and anywhere!!

image-20231212143640286

Guess you like

Origin blog.csdn.net/weixin_42878111/article/details/135000344