有些事不能靠别人,更多的是靠自己
./frps -c ./frps.ini
# frps.ini
[common]
bind_port = 7000
authentication_method = token
token = your_token
allow_ports = 7400-7600,7100,7110
vhost_http_port = 7100
./frpc -c ./frpc.ini
# frpc.ini
[common]
server_addr = server_ip
server_port = 7000
token = your_token
[stf_web]
type = http
local_port = 7100
custom_domains = server_ip_or_domain
[range:stf]
type = tcp
local_ip = 127.0.0.1
local_port = 7400-7420 # 取决于设备数量,约2口/台
remote_port = 7400-7420 # 取决于设备数量
[stf_websocket]
type = tcp
local_ip = 127.0.0.1
local_port = 7110
remote_port = 7110
stf local --public-ip server_ip_or_domain --allow-remote