FRP服务端和客户端配置

一、服务端配置

# frps.ini
[common]
bind_port = 7000
token = 12345678

二、客户端配置

1. 客户端提供服务方

# frpc-01.ini
[common]
server_addr = 1.2.3.4
server_port = 7000
token = 12345678

[service_name]
type = stcp
sk = abcdefg
local_ip = 127.0.0.1
local_port = 22
use_encryption = false
use_compression = true

2. 客户端连接方

# frpc-02.ini
[common]
server_addr = 1.2.3.4
server_port = 7000
token = 12345678

[client_name]
role = visitor
type = stcp
server_name = service_name
sk = abcdefg
bind_addr = 127.0.0.1
bind_port = 2201
use_encryption = false
use_compression = true