当前位置:网站首页>I'll teach you how to use NPs to build intranet penetration services. When you go out, you can easily connect your lightweight notebook to your home game console to play remotely
I'll teach you how to use NPs to build intranet penetration services. When you go out, you can easily connect your lightweight notebook to your home game console to play remotely
2022-07-24 17:02:00 【Network siege lion summary】
List of articles
Preface
I believe everyone is carrying a light book when traveling or on business , If you want to play games in your spare time , So thin and light books obviously can't meet their own game needs , So this tutorial is to teach you to use NPS Build an intranet penetration service , Easily connect the game console at home to play remotely .
One 、NPS summary
NPS It's a lightweight 、 High performance 、 Powerful intranet penetrating proxy server , Support tcp、udp、http Wait for almost all traffic forwarding , Support WEB Interface management host connection .
NPS Principle
function NPS Cloud server and operation of services NPS The host of the client will create a TCP or UDP Tunnel , You can map a port on the ECs to the specified port of the client host , The traffic of other hosts accessing the port of the ECS will be forwarded to the mapped host port through the created tunnel , Achieve intranet penetration effect .
Two 、NPS Server setup
1、 Download a software
This tutorial uses github The above open source tool , Specific links are attached below . Download the version corresponding to your server and client system , If you cannot access , You can also share and download through my online disk , There are in the net disk linux and windows Of 64 Bit server , also windows64 Bit client .
https://github.com/ehang-io/nps/releases

Network disk link :https://pan.baidu.com/s/10a6RQPi16ivwjHt5qPKEFA
Extraction code :zx68
2、 ECS configuration
First you need a cloud server , You can choose cloud server manufacturers such as Tencent cloud or Alibaba cloud , There are usually large discounts , I chose the lightweight application server of Tencent cloud ubuntu20.04 System .
2.1、 Firewall configuration
The following ports need to be released ( How to change the port by yourself will be described later , Increase security )
TCP22: For remote use SSH Connect
TCP8080: user NPS The default login port of the management interface
2.2、 use WinSCP Upload service files remotely
- Use WinSCP adopt 22 Port to root Connect to the server as , Then upload the server file linux_amd64_server.tar.gz.
- If your ECS is windows System , You can use it directly windows The self-contained remote desktop copies the software .

2.3、 Use SSH Terminal installation start
Use MobaXterm、SecureCRT or PUTTY Equal terminal ssh Connect to the ECS , To configure .
- install
mkdir nps // establish nps Folder used
mv linux_amd64_server.tar.gz ./nps // Move the software to the created nps In the folder
cd nps // Enter the created nps Folder
tar -zxvf linux_amd64_server.tar.gz // Decompress the package , Use "ls" Command can see more under the directory conf and web Folder , There is also an executable nps

- start-up
./nps install // Enter the installation command
nps start // start-up nps service
If it is windows System , Run as Administrator cmd, Enter... During installation nps.exe install, To start, you need to enter the program directory nps.exe start.
After installation windows The profile is located in C:\Program Files\nps,linux be located /etc/nps
- Browser open IP+8080 port , You can see nps Management interface , The default user name and password are admin/123, Please revise it in time .


2.4、 Modify the configuration file
- If you need to modify the login user name 、 password 、 Web login port and other information , You can modify /etc/nps Under the nps.conf file , The relevant parameter information can be seen in the table .

| name | meaning |
|---|---|
| web_port | web Management port |
| web_password | web Interface management password |
| web_username | web Interface management account |
| web_base_url | web Manage the main path , Is used to web Management is behind the agent subpath |
| bridge_port | Server client communication port |
| https_proxy_port | Domain name agent https Agent listening port |
| http_proxy_port | Domain name agent http Agent listening port |
| auth_key | web api secret key |
| bridge_type | The connection between the client and the server kcp or tcp |
| public_vkey | The key when the client starts in profile mode , If it is set to null, the client profile connection mode will be closed |
| ip_limit | Whether to limit ip visit ,true or false Or neglect |
| flow_store_interval | Server traffic data persistence interval , Units of minutes , Ignore means no persistence |
| log_level | Log output level |
| auth_crypt_key | Get the server authKey At the time of the aes Encryption key ,16 position |
| p2p_ip | Server side Ip, Use p2p Mode required |
| p2p_port | p2p Mode on udp port |
| pprof_ip | debug pprof Server side ip |
| pprof_port | debug pprof port |
| disconnect_timeout | Client connection timeout , Company 5s, The default value is 60, namely 300s = 5mins |
- You can see in the dashboard that the connection port of the client is 8024, You need to release this port on the firewall of the ECs to work properly .

3、 ... and 、 Client connection
- Click the client in the dashboard , Add a new client as shown in the picture .

- Fill in the notes , The following compression and encryption options “ yes ”.

- After adding, you will get a client ID by 2.

- Click on the plus sign on the left , The following client command will appear , This order is in windows Executed under the system , You don't need the previous "./".

- It's preserved in nps Press and hold shift Click the right mouse button , open Powershell

- Enter the command
cmd, And commands obtained from the web page , appear Successful That's all right. .
- You can see that the status on the web page shows online

- establish TCP Tunnel

- client ID Create the client before writing ID, Write an unused port for the server port , Of course, this port should also be allowed in the firewall . The target port writes the port to be accessed .

- In this way, all traffic accessing the server port will be forwarded to the client port , It will successfully connect to the host in the intranet .

summary
Use nps Such a gadget achieves the effect of Intranet penetration , It can realize the need of connecting the lightweight book for external use to the game console at home to play happily , Of course other TCP and UDP All connections are feasible , Look at your specific needs , It will not occupy too many resources of cloud services , It's worth recommending .
边栏推荐
- Thinkphp3.2.5 cannot jump to external links
- ArcGIS layer annotation display
- MySQL addition, deletion, modification, retrieval and constraint (detailed teaching)
- CANN训练营学习2022第二季 模型系列 动漫风格化和AOE ATC调优
- AXI协议(2):AXI架构的五个通道和两种事务
- Sword finger offer 22. the penultimate node in the linked list
- GDB online debugging of work notes
- 期盼已久全平台支持-开源IM项目OpenIM之uniapp更新
- Want to make sandbox games? Then you must not miss this plug-in (unity3d)
- Xxx.pro learning in QT
猜你喜欢

Envi grid resampling

CDN(Content Delivery Network)内容分发网络从入门到与实战

ArcGIS create vector

Topic 6 - message queue for client communication

Problems encountered in upgrading chrome to version 80 - solutions to system login failure

一个实际使用SwiftUI 4.0中ViewThatFits自适应视图的例子

量化框架backtrader之一文读懂Indicator指标

会议OA项目进度(二)

AI opportunities for operators: expand new tracks with large models

【时序逻辑电路】——计数器
随机推荐
Cross server, insert, search
Analyze the capabilities and scenarios of Apache pulsar, a cloud native message flow system
Summary of experience in using.Net test framework xUnit, mstest, specflow
快速入门
What exactly is API?
With notes: printing order of synchronous, asynchronous, micro task and macro task
Kernel development
荣耀CEO赵明:单一厂商很难实现全场景产品覆盖
为什么被调函数内部不能用 sizeof(arr) / size(arr[0]) 计算数组长度?
QT design simulation robot controller
工信安全中心牵头搭建数据流通平台 蚂蚁集团等厂商提供技术支持
regular expression
别再到处乱放配置文件了!试试我司使用 7 年的这套解决方案,稳的一秕
[sequential logic circuit] - counter
The industrial information security center takes the lead in building a data circulation platform, and ant group and other manufacturers provide technical support
Still developing games with unity? Then you're out. Try unity to build an answer system
双亲委派机制
Problems encountered in upgrading chrome to version 80 - solutions to system login failure
AXI协议(2):AXI架构的五个通道和两种事务
Axi protocol (2): five channels and two transactions of Axi architecture