1. FRP tool construction

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

Server Configuration

# FRPS. Ini configuration [common] bind_port vhost_http_port = 7000 = 7001 token = * * * * * * * * * * * * * * * * * * * * * * * * * * * # your token Subdomain_host = cros.abc.cn # nginx domain name configuration (if using domain name traversal) server {listen 80; server_name *.cros.abc.cn; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host:80; proxy_set_header X-Nginx-Proxy true; proxy_set_header Connection ""; Proxy_pass http://127.0.0.1:7001; }}Copy the code

Client Configuration

FRPC. Ini configuration [common] server_addr = * * *. * *. * *. * * # server IP server_port = 7000 # service port token = * * * * * * * * * * * * * * * * * * * # token server Settings [hzh-wxmp] type = HTTP local_ip = 192.168.8.106 local_port = 8080 subdomain = hzh-wxmp Type = TCP local_IP = 127.0.0.1 local_port = 22 remote_port = 6000Copy the code

Log 2> &1&Client: nohup./ FRPC -c./frpc.ini > start.log 2> &1&

2. Cros tool construction

Project address https://github.com/zhihuihu/cros specific configuration can be carried out in accordance with the readme file configuration, recommend using scaffolding to the server and the client deployment