FRP intranet penetration tool to build LINUX

1. frps server build

Please move to  https://www.tqwba.com/x_d/jishu/178182.html ;

2. frpc client build

2.1 frp download address

https://github.com/fatedier/frp/releases

2.2 Upload server decompression

tar -zcvf frp_0.27.0_linux_amd64

2.3 Configuration file

[common]
server_addr = ###.##.##.### 
server_port = 7000

[mongodb]
type = tcp
local_ip = 192.168.0.1
local_port = 27017
remote_port = 10291

[mysql]
type = tcp
local_ip = 192.168.0.1
local_port = 3306
remote_port = 10292

[app]
type = tcp
local_ip = 192.168.0.1
local_port = 80
remote_port = 10293

Note: [app], [mysql], [mongodb] cannot be repeated

2.4 start

Start the service and write the pid to frpc.pid to stop the service

nohup ./frpc -c ./frpc.ini > frpc.log 2>&1& echo $! > frpc.pid

3 frpc implementation principle

3.1 As shown in the figure below

3.1.1 What should I do?

  • It is necessary to realize that the computer at home can access computer B in the company's intranet.

3.1.2 What do we need

  • Server: We need an external network computer as our server, and generally we don’t need to configure it ourselves.
  • Client: It can not only access the intranet server, but also be accessed by the server.

3.1.3 Suppose we want to access the app on the intranet.

  • Enter ###.##.##.###.10293 in the browser address bar
  • The server receives the request and sends it to the corresponding client according to the port.
  • The client finds the corresponding intranet server and port according to the port, and requests the computer on the intranet in the way of tcp. 

Guess you like

Origin blog.csdn.net/weixin_40455437/article/details/118456645