Configure the cpolar internal network penetration on Linux to start automatically at boot—"cpolar internal network penetration"

Configure cpolar intranet penetration on Linux to start automatically at boot

foreword

We installed cpolar on the Ubuntu system, and got a preliminary understanding of the functions of cpolar through the web-UI interface. Of course, in addition to the web-UI interface operation, cpolar can also be operated through the command line of the Ubuntu system. However, this method of operation is relatively abstract, so there are certain basic requirements for computer operations. At the same time, because the cpolar account is not entered, it is necessary to enter the token code of the corresponding account to identify the user of the account, and perform a separate start-up setting. Now, let's see how to set it up.

1. Enter the command line mode

First of all, right-click on the Ubuntu desktop and select "Open in Terminal" to enter the command line mode.

img

2. Enter the token code

After entering the command line mode, we first enter the token code (the token code is located in the "dashboard" interface of the cpolar server, "connect to your account" position), let the cpolar server know who is using the client, and the client Give corresponding permissions.

img

The command to enter the token code is:

cpolar authtoken (此处为上图红圈标出的复杂字符串,每个用户均不同)

img

3. Enter the intranet penetration command

After entering the token code, the cpolar client will record the entered token code into the local configuration file, and we don't have to input the token code again when we use it again. In order to make sure that our token code is entered correctly, we can enter a simple intranet penetration command to conduct a small test. Enter the command to ask cpolar to establish a temporary data tunnel

cpolar http 8080

img
img

As shown in the figure above, cpolar will send back information related to the establishment of the data tunnel to the user, including the user name, software package type, local address and other information registered in cpolar, and will also send back the "online" information shown in the red box , which proves that cpolar has successfully contacted the server.

After completing the setting of the token code, we can continue to set the autostart of cpolar. Also on the command line interface, enter the command

sudo systemctl enable cpolar

Since we are using the sudo command, it will ask for Ubuntu's system-level password to execute

img

After entering the correct power-on password, cpolar can be set to boot automatically. How to verify the successful setting of cpolar? Of course it is a restart~

After the Ubuntu system restarts, enter the command directly on the command line interface

sudo systemctl status cpolar

Check the service status of cpolar. As long as the following information is displayed, it means that cpolar starts automatically after restarting.

img

After a few simple operations, cpolar can pass the login authentication on the Ubuntu system, and set it to start automatically at boot, which is convenient for us to use the data tunnel of cpolar to expand applications. If you have any questions about the use of cpolar, please contact us, we will provide you with assistance within our ability. Of course, you are also welcome to join the VIP official group of cpolar to explore the unlimited potential of cpolar together.

Reprinted from the cpolar pole cloud article: [Configure the cpolar internal network penetration on Linux to start automatically at boot] ( Configure the cpolar internal network penetration on Linux to start automatically at boot - cpolar pole cloud )

Guess you like

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