At present, there are some problems in many schools, such as educational outsourcing, poor technology of operation and maintenance personnel, less server resources, so the general educational administration system will not be exposed in the external network. But the result inquiry, the curriculum inquiry this kind Just need I have to study how to penetrate the intranet.
at present I know There are: SSH tunnel, FRP, ngrok, peanut shell, but the speed of SSH tunnel is general, the high service price of peanut shell has not been considered. In addition, there are VPS in hand, so we prefer to use the existing resources to compare and select between FRP and ngrok.
- Ngrok1 is an open source version, which has many known problems (there is a memory leak bug in the HTTP mode). The source of ngrok2 is closed, and it seems that the government does not intend to open source, only open source the client side
- Ngrok needs to compile its own program, because ngrok uses certificate verification, and the certificate is directly compiled into the EXE file, so it is necessary to compile the client and server by itself
- Completely open source
- There are Chinese documents
- Future plans: FRPs supports direct reverse proxy, similar to haproxy; FRPC supports load balancing to different back-end services.
By comparison, it is found that FRP fully meets my requirements, so we have the following solution:
Now that we have started raspberry pie, we will continue to record the implementation process of the whole scheme.
In addition, FRP one click script is recommended http://www.lu8.win/frp.html There are also one key scripts for ngrok and n2n.
Use Alipay, wechat and QQ clients to scan code and reward
Reward the author
This paper is written by SangSir Creation, adoption Knowledge sharing signature 4.0 International license agreement
In addition to the reprint / source, all articles are original or translated. Please sign before reprinting