Visitor Configuration
frp Visitor Detailed Configuration description of。
VisitorBaseConfig
Field |
Type |
Description |
Required |
name |
string |
Visitor Name. |
Yes |
type |
string |
Visitor type. Available values are stcp, sudp, xtcp.
|
Yes |
transport |
VisitorTransport
|
Visitor network layer Configuration.
|
No |
secretKey |
string |
Key, Server side.
The key of the access side needs to be consistent with that of the access side before the access
side can access the Server side.
|
No |
serverUser |
string |
Proxy to be accessed.
The user name to which it belongs, if empty, defaults to the current user.
|
No |
serverName |
string |
The name of the proxy to access. |
Yes |
bindAddr |
string |
visitor
The local address of the listener, connected to the remote Agent by accessing the listener's
address and port.
The service.
|
No |
bindPort |
int |
The local port that visitor listens on, if the.
-1, indicating that there is no need to listen on the physical port, which can usually be used
as another visitor.
Fallback.
|
Yes |
VisitorTransport
Field |
Type |
Description |
Required |
useEncryption |
bool |
Whether to enable the encryption function, after enabling the Agent and Server side.
All communications between them will be encrypted if global is enabled by frpc.
TLS, you no longer need to enable this parameter.
|
No |
useCompression |
bool |
Whether to enable the compression function, after enabling the Agent and Server side.
The content of communication between them will be compressed and transmitted.
|
No |
STCPVisitorConfig
SUDPVisitorConfig
XTCPVisitorConfig
Field |
Type |
Description |
Required |
|
VisitorBaseConfig
|
Basic Configuration. |
Yes |
protocol |
string |
Tunnel underlying communication protocol, optional quic and kcp, default is quic.
|
No |
keepTunnelOpen |
bool |
Whether to keep the tunnel open, if so, periodically check the tunnel status and try to keep it
open.
|
No |
maxRetriesAnHour |
int |
The number of attempts to open the tunnel per hour, the default is 8.
|
No |
minRetryInterval |
int |
The minimum interval for retrying to open the tunnel, in seconds, defaults to 90s.
|
No |
fallbackTo |
string |
The name of the other visitor that you rolled back to.
|
No |
fallbackTimeoutMs |
int |
How long (ms) after the connection is established, fall back to another visitor.
|
No |
Last modified November 15, 2023:
fix 404 (#71) (626ce4d)