Install frps on the server to achieve intranet penetration (2) - configuration of frpc on openwrt luci

Install frp intranet penetration on openwrt

1. Perform the following configuration

2. Add a mapping in the service list below to access

The http mapping is as follows:

Add the tcp protocol as shown below:

 At this point, the server and client are configured.

When accessing http://bgs.xxx.com:9004 from the external network, the website at 192.168.0.100:80 under the internal network will be accessed.

When accessing the server ip:5003 through tcp, the tcp service of 192.168.0.243:5003 under the intranet will be accessed.

In fact, when we configure frps.ini, http and https can also use ports 80 and 433. If ports 80 and 443 are used, then the frpc side can also be selected as corresponding 80 and 443, and then it can be accessed normally. It's just that other websites cannot be built on the server. Later, I will share a forwarding method through nginx to ensure the coexistence of the client's website and the website on the server. 

 Special attention: The ports used above, such as 9003, 9004, 9005, 5003, etc., must be added to the white list of the server to ensure that these ports can be accessed normally.

Guess you like

Origin blog.csdn.net/q52875991/article/details/128289047