"Docker Advanced Tutorial" - Cloud server building nps intranet penetration and use

Today I will teach you how to use docker to build nps intranet penetration for remote login, calling interfaces, nas external network access, etc.

First, you need a cloud server with a public IP address (docker installed)

Use ssh to connect to the cloud server terminal

enter

docker run --net=host --name nps-server -d ffdfgdfg/nps

Explain, this command will first search for the image in the local warehouse. If there is no local warehouse, it will automatically access the cloud mirror warehouse you configured to pull the image and run it.

--net=host The container and the host share the network environment (this will cause the port to be fixed and occupies server 80, 443, 8024 by default) -d background daemon runs the container --name container name

Enter docker ps to view the container and it will be successful. 

Access ip:8024/login/index, the default password is admin 123, which can be modified in the configuration file inside the container

 

 Now that we have entered the management interface, next we configure the tunnel

1. Create a client, one tunnel corresponds to one client

Just give it a name and leave everything else blank. 

 Remember the client id, now go create a tunnel.

 

Now that the binding of the client and the tunnel is completed, it is time to download the client npc of nps.

Download address: npc official version download丨latest version download丨green version download丨APP download-123 cloud disk 123 cloud disk provides you with the latest version of npc official version official version green version download, npc Android version mobile version apk free download and installation to your mobile phone , supports one-click quick installation on the computer https://www.123pan.com/s/csT5Vv-Q3q53.html

Instructions

Windows version: Unzip the downloaded NPC client, go to the management interface, find this client command, enter the terminal of the NPC client folder and run it, without the ./ in front, which is used by the Linux system

Or create a new text document, copy the command in, save it as .bat, and the encoding format is ANSI. You can run it directly when you need to use it.

 To use on Linux, use the ftp tool to upload the Linux version of the NPC client, unzip it, cd into the file directory, enter the client command and press Enter to execute.

For more advanced operations, you can check the official documentation, such as booting and background startup.

Guess you like

Origin blog.csdn.net/weixin_48386220/article/details/131960674