当前位置:网站首页>LANproxy mapping local development environment
LANproxy mapping local development environment
2022-07-27 23:14:00 【OY..】
Encountered joint commissioning equipment before , It is hoped that the data reported by the current network equipment will be pushed to the local development environment, and the scenarios of testing the push interface are all used uTools The internal and external networks penetrate . But now uTools The plug-in for intranet and Internet penetration has been closed , Always looking for a better replacement . Used to frp、Ngrok, Or charge , Or the configuration is cumbersome . Let's talk today Lanproxy, Yes web Configuration interface , Very easy to understand , The client is also very rich , It's also easy to use , The key is to use , I feel very stable .
build Frp Blog :https://oy6090.top/posts/2dd14627/
One 、 Environment building
Server side 、 Client download address :Lanproxy download
I am a java Developed , So this machine has java Environmental , The downloaded client can download this directly proxy-java-client, Because it uses windows, So also download one windows The client of .

Two 、 The server is ready
- You need an Internet server ( I have a Alibaba cloud ), The configuration is not required to be high
- There is a fixed Internet IP Or domain name ( The domain name needs authentication , What I'm testing here is ip)
3、 ... and 、 Server installation
First step : Will download proxy-server This package copy To the server
The second step : decompression ,zip Package decompression command unzip Package name
unzip proxy-server-0.1.zip

The third step : Modify the configuration file
cd proxy-server-0.1/conf
vi config.properties

Step four : start-up

nohup sh startup.sh

Four 、 Server configuration
4.1 Add client

- Client name : Define yourself , for example :oyt
- Client dense chain : Click next to generate random key
4.2 Configuration Management

- Agent name : You can set whatever you like
- Public network port : It is the port requested by the Internet
- Back end IP port : Inside and outside the local project ip Follow the port
5、 ... and 、 The client starts
5.1 Use exe Start in executable mode
In fact, it is also a command to start , command :
client_windows_amd64.exe -s The server IP -p LanProxy Service port -k Client generated key -ssl false
- The server IP, If you use a domain name , It should be equipped with domain name resolution
- LanProxy Service port and -ssl Be sure to match , For example, use 4900 -> -ssl false
Be careful : If this command is batch processed bat, Attention to processing commands client_windows_amd64.exe And bat Relative position of 
client_windows_amd64.exe -s 120.76.131.* -p 4900 -k 87b~~~( Fill in your own ) -ssl false
Be careful :-p 4900 This place depends on the configuration in your server configuration file


appear connSuccess It's a successful connection , Remember to open ports and security group policies for ECS
5.2 java The client starts
Configuration file directory and modification


Be careful :
- jksPath, Replace if necessary , Note that copy one from the server to the local client
- ssl.enable The value corresponds to the port
- Download the java The client is not configured client.key Of , Pay attention to add

6、 ... and 、 verification
Access address : 120.76.130.*:7070

Here, if the client is not online , Returns the CLIENT OFFLINE, It means to LanProxy Have succeeded ,LanProxy There is no connection to the client , The return is also very vivid .
7、 ... and 、 General principles

In fact, it is a port mapping and long connection ( The bottom floor didn't look carefully ), The configured mapping port cannot be duplicated , Obviously, the client configuration is limited .
7、 ... and 、 summary
- The server deployment is simple 、 Clear configuration , Support ssl
- The configuration client has an interface
- The client configuration is simple and clear 、 The client supports multi platform mode
It can be said that it is very good , It is convenient for our development friends to do local joint commissioning , I like it very much . I hope it will be convenient for you to do local joint commissioning .
This blog reprints :https://blog.csdn.net/zwrlj527/article/details/119349634
Optimized and adjusted
边栏推荐
- Complete Guide to IOT architecture
- Basic lighting of unity
- 只会Excel想做图表可视化,让数据动起来?可以,快来围观啦(附大量模板下载)
- UDF and analysis cases of sparksql, 220726,,
- Fluorescence imaging of cle19 polypeptide in cells preparation of fluorescence quenching quantum dots of bovine serum albumin
- Basic SQL DML
- Cron expression
- jvm组成及内存模型
- Promise解决异步
- 20字符短域名绕过复现
猜你喜欢

MySQL的B+Tree索引到底是咋回事?聚簇索引到底是如何长高的?

Cron expression

对象创建过程及对象布局
![[C language] simulate and implement string functions (Part 1)](/img/13/afb015de3448e20a0b7b09c1aca4ad.png)
[C language] simulate and implement string functions (Part 1)

The principle and demonstration of service path lifting without quotation marks

4 轮拿下字节 Offer,面试题复盘

20 character short domain name bypass replication

In depth analysis - file operation

Vulnhub range double trouble

Quartus:Instantiation of ‘sdram_model_plus‘ failed. The design unit was not found.
随机推荐
2022/3/11 考试总结
Basic lighting of unity
2022/6/5 exam summary
The epidemic has spread to 28 states in the United States: more than 100000 employees such as apple and Microsoft work from home, and iphone11 is almost out of stock!
Another fire broke out in Samsung storage factory!
Summary of exam on May 17, 2022
Brief explanation of noi 2018
Security-001
Five network management trends in 2022
2022/4/8 exam summary
[NOI2018] 冒泡排序(组合+卡特兰数+dp+树状数组)
cron 表达式
8000 word explanation of OBSA principle and application practice
Introduction to the paper | language model for long text under transformer architecture
Basic SQL DQL
浅析云原生应用安全组织架构
ADI, Shijian and Junlong technology jointly donated 2.3 million yuan to help fight the epidemic in Hubei
Jeninkins离线部署
浅谈数仓的数据治理
2022/5/13 考试总结