客户端插件配置

frp 客户端插件的详细配置说明。

HTTPProxyPluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “http_proxy”。Yes
httpUserstringHTTP 代理用户名。No
httpPasswordstringHTTP 代理密码。No

Socks5PluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “socks5”。Yes
usernamestring用户名。No
passwordstring密码。No

StaticFilePluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “static_file”。Yes
localPathstring静态文件所在本地路径。Yes
stripPrefixstring去除用户 HTTP 请求 Path 的特定前缀。No
httpUserstringHTTP Basic Auth 用户名。No
httpPasswordstringHTTP Basic Auth 密码。No

UnixDomainSocketPluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “unix_domain_socket”。Yes
unixPathstringUNIX 域套接字的地址。Yes

HTTP2HTTPSPluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “http2https”。Yes
localAddrstring本地 HTTPS 服务地址。Yes
hostHeaderRewritestring替换 Host header。No
requestHeadersHeaderOperations对请求 Header 的操作配置。No

HTTPS2HTTPPluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “https2http”。Yes
localAddrstring本地 HTTPS 服务地址。Yes
hostHeaderRewritestring替换 Host header。No
requestHeadersHeaderOperations对请求 Header 的操作配置。No
enableHTTP2bool是否启用 HTTP/2,默认启用。No
crtPathstringTLS 证书文件路径。No
keyPathstringTLS 密钥文件路径。No

HTTPS2HTTPSPluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “https2https”。Yes
localAddrstring本地 HTTPS 服务地址。Yes
hostHeaderRewritestring替换 Host header。No
requestHeadersHeaderOperations对请求 Header 的操作配置。No
enableHTTP2bool是否启用 HTTP/2,默认启用。No
crtPathstringTLS 证书文件路径。No
keyPathstringTLS 密钥文件路径。No

TLS2RawPluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “tls2raw”。Yes
localAddrstring本地服务地址。Yes
crtPathstringTLS 证书文件路径。No
keyPathstringTLS 密钥文件路径。No

VirtualNetPluginOptions

FieldTypeDescriptionRequired
typestring插件类型,设置为 “virtual_net”。Yes
最后修改 January 4, 2026: add docs for v0.66 (#106) (191a9bc)