ClientConfiguration
frp Detailed Configuration description of the Client.
ClientConfig
ClientCommonConfig
Field |
Type |
Description |
Required |
auth |
AuthClientConfig
|
Client Authentication Configuration。
|
No |
user |
string |
User name, after setting this parameter, the Agent name
will be changed to. {user}. {proxyName} to avoid
conflicts between Agent names and other users.
|
No |
serverAddr |
string |
连接Server side 的地址。 |
No |
serverPort |
int |
The port that connects to the Server side, defaults to
7000.
|
No |
natHoleStunServer |
string |
The address of the stun server required for xtcp to
punch holes. The default is. Stun.easyvoip.com:3478 .
|
No |
dnsServer |
string |
Use DNS server address, default DNS of Use system
Configuration. Server, specifying that this parameter
can be forcibly replaced with a custom DNS. Server
address.
|
No |
loginFailExit |
bool |
Whether to exit after the first login failure, defaults
to true.
|
No |
start |
[]string |
Specifies that partial Agent is enabled, when there are
more Agent in Configuration. But only some of them can
be specified by this parameter when they are enabled,
and all are enabled by default
|
No |
log |
LogConfig
|
日志Configuration。 |
No |
webServer |
WebServerConfig
|
Client AdminServer Configuration。
|
No |
transport |
ClientTransportConfig
|
Client网络层Configuration。
|
No |
udpPacketSize |
int |
The maximum packet length supported for Agent UDP
service. The default is 1500 Server. Side and Client
need to keep Configuration consistent.
|
No |
metadatas |
map[string]string |
Additional metadata, which is passed to Server side
Plug-in to provide additional capabilities.
|
No |
includes |
[]string |
Specify an additional Configuration file directory,
where proxy and. Visitor Configuration will be read and
loaded.
|
No |
ClientTransportConfig
Field |
Type |
Description |
Required |
protocol |
string |
Communication protocol between frps and tcp. Available
values are tcp, kcp, quic. Websocket, wss . The default
is tcp.
|
No |
dialServerTimeout |
int |
连接Server side 的超时时间,默认为 10s。
|
No |
dialServerKeepalive |
int |
Keepalive connected to the underlying TCP of Server
side. Interval time, in seconds.
|
No |
connectServerLocalIP |
string |
The local IP bound when connecting to the Server side.
|
No |
proxyURL |
string |
The Agent address of the connection Server side Use, in
the format. {protocol}: / /
user:passwd@192.168.1.128:8080 protocol. Http, socks5
and ntlm are currently supported.
|
No |
poolCount |
int |
Connection pool size. |
No |
tcpMux |
bool |
TCP Multiplexing is enabled by default.
|
No |
tcpMuxKeepaliveInterval |
int |
The interval between heartbeat checks for
tcp_mux .
|
No |
quic |
QUICOptions
|
QUIC protocol Configuration parameter.
|
No |
heartbeatInterval |
int |
The interval for sending heartbeat packets to the server
side is set to 30 seconds by default. Suggest enabling
TCP_ Mux_ Keepalive_ Interval , set this
value to -1.
|
No |
heartbeatTimeout |
int |
And Server side heartbeat timeout, the default is 90s.
|
No |
tls |
TLSClientConfig
|
Client TLS Agreement Configuration。
|
No |
TLSClientConfig
Field |
Type |
Description |
Required |
enable |
bool |
Whether to enable TLS connection with Server side is
enabled by default.
|
No |
disableCustomTLSFirstByte
|
bool |
When TLS connections are enabled, 0x17 special bytes are
not sent. Default is. True . Cannot be compared with
vhostHTTPSPort when Configuration is true. Port reuse.
|
No |
|
TLSConfig
|
TLS protocol Configuration, embedded structure.
|
No |
AuthClientConfig
Field |
Type |
Description |
Required |
method |
string |
鉴权方式,可选值为 token 或 oidc,默认为 token。
|
No |
additionalScopes |
[]string |
鉴权信息附加范围,可选值为 HeartBeats 和 NewWorkConns
|
No |
token |
string |
在 method 为 token
时生效,Client需要设置一样的值才能鉴权通过。
|
No |
oidc |
AuthOIDCClientConfig
|
oidc Authentication Configuration.
|
No |
AuthOIDCClientConfig
Field |
Type |
Description |
Required |
clientID |
string |
|
No |
clientSecret |
string |
|
No |
audience |
string |
|
No |
scope |
string |
|
No |
tokenEndpointURL |
string |
|
No |
additionalEndpointParams |
map[string]string |
|
No |
Last modified November 15, 2023:
fix 404 (#71) (626ce4d)