Don’t look at it and regret it (Qunhui nat123 intranet penetration). Qunhui’s own intranet penetration is not good. [Qunhui intranet penetration] frp is ridiculously simple,
Author: Home video player’s intranet penetration is NAT penetration. When the computer is in the local area network, the computer nodes of the external network and the internal network need to connect and communicate. Sometimes, it does not support intranet penetration. This tutorial mainly explains how to use the VPS service area to carry out the intranet penetration of FRP. First, preliminary preparation:
① VPS lightweight servers should have a public IP address. The system is Centos 7.6. I bought it from Tencent Cloud. There is a discount for newcomers, which is about 58 years. ② Download the frp server-side program file: https://www.wuzhuwei.work ③ The frp client is installed using Qunhui Docker

2、 The server-side tutorial uses the final shell software. Connect the SSH final shell software of the vps server and download it on the official website. Aunt Zhang can’t put a link, but can only Baidu how to log in. Tencent Cloud has a help document for use, and the software also has many tutorials. If I really don’t understand, I will consider issuing a separate tutorial.
Upload the downloaded ② frp server-side program file to the main directory of the server, and use the following command to decompress tar – zxvf frp_ 0.44.0_ linux_ Amd64.tar.gz will extract the folder and manually change the name to: frp

Double-click to open it, manually modify the frps.ini file in the folder, add the password below, and remember to ‘Ctrl+S’ save token=123456

Run the configuration file cd frp/ Frps – c frps.ini Add ports in the server firewall and open 6000-8000 ports

The above steps can be used normally, but they will not work after restarting. You can set the boot to start running (unnecessary steps, recommended). Exit the previous code first: Ctrl+Cvi/lib/systemd/system/frps.service Edit the frps.service script command (remember to press i first to enter the editing mode):
[Unit]Description=fraps serviceAfter=network.target syslog.targetWants=network.target[Service]Type=simple
ExecStart=/root/frp/frps – c/root/frp/frps. ini [Install] WantedBy=multi-user.target
Start the service systemctl start frpssystemctl enable frps 3. Set Docker HUB on the client to search for frpfrpc.ini configuration reference. Please set # frpc.ini according to your own situation
[common] # Fill in the public IP address of the server you purchased here_ addr = 124.XXX.XXX.125server_ port = 7000token = 123456[qunhui]type = tcp
#Fill in Qunhui’s intranet IP address local here_ ip = 192.168.XXX.XXXlocal_ port = 5000remote_ Port=6001 Add the file, and the loading path is/frp/frpc.ini

The network is set to the same network as Docker host

Environment setting: ARGS must be changed to frpc, not frps

According to the configuration file of frpc.ini, you can forward the 5000 port of the intranet to the 6001 port of the public network, that is, you can access the Qunhui management page through the public network IP+60001 port. With this push, you can freely set the TCP port forwarding, such as the 8096 port of emby, and so on.