frp 内网穿透 stcp / xtcp 配置


服务端

[common]
bind_addr = 0.0.0.0
bind_port = 7000
user = username
token = **********

server_addr = 公网IP server_port = 公网端口 user = 指定用户 token = 密钥

内网主机或服务入口主机

[common]
server_addr = 0.0.0.0
server_port = 7000
user = username
token = **********

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

sk = 密钥 local_ip = 代理的IP local_port = 代理的端口 use_encryption = 开启加密 use_compression = 开启压缩

本机或服务出口主机

[common]
server_addr = 0.0.0.0
server_port = 7000
user = username
token = **********

[secret_tcp_visitor]
role = visitor
type = stcp
server_name = secret_tcp
sk = abcdefg
bind_addr = 127.0.0.1
bind_port = 9000
use_encryption = true
use_compression = true

server_name = 内网主机定义的 sk = 密钥 bind_addr = 本机IP bind_port = 绑定的端口