不写注释说明了,直接上模板:

frps.ini
[common]
bind_port = 7000
privilege_token = password
vhost_http_port = 8080
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
frpc.ini
[common]
server_addr = net.cn
server_port = 7000
privilege_token = password
login_fail_exit = false

[http_web1]
type = http
local_ip = 192.168.1.1
local_port = 80
use_compression = true
use_encryption = true
custom_domains = web1.net.cn

[http_web2]
type = http
local_ip = 192.168.1.2
local_port = 880
use_compression = true
use_encryption = true
custom_domains = web2.net.cn

[ssh]
type = tcp
local_ip = 192.168.1.10
local_port = 25
remote_port = 5000

如果需要看完整的带说明的示例,可以访问:
https://github.com/fatedier/frp/blob/master/conf/frps_full.ini
https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini