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.
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.