Visitor Configuration

Detailed configuration description for frp visitors.

VisitorBaseConfig

FieldTypeDescriptionRequired
namestringVisitor name.Yes
typestringVisitor type. Options are stcp, sudp, xtcp.Yes
enabled*boolWhether this visitor is enabled, default is true. Set to false to disable this visitor, allowing individual control over each visitor’s enabled state.No
transportVisitorTransportVisitor network layer configuration.No
secretKeystringSecret key. The secret key between server and access side must be consistent for the access side to access the server.No
serverUserstringUsername that the proxy to be accessed belongs to. If empty, defaults to current user.No
serverNamestringName of the proxy to be accessed.Yes
bindAddrstringLocal address that visitor listens on. By accessing the listened address and port, connect to the remote proxy service.No
bindPortintLocal port that visitor listens on. If set to -1, means no need to listen on physical port, usually can be used as fallback for other visitors.Yes
pluginVisitorPluginOptionsVisitor plugin configuration for extending visitor functionality. Different plugin types correspond to different configurations.No

VisitorTransport

FieldTypeDescriptionRequired
useEncryptionboolWhether to enable encryption functionality. When enabled, communication content between this proxy and the server will be encrypted. If frpc has enabled global TLS, this parameter is not needed.No
useCompressionboolWhether to enable compression functionality. When enabled, communication content between this proxy and the server will be compressed.No

STCPVisitorConfig

FieldTypeDescriptionRequired
VisitorBaseConfigBase configuration.Yes

SUDPVisitorConfig

FieldTypeDescriptionRequired
VisitorBaseConfigBase configuration.Yes

XTCPVisitorConfig

FieldTypeDescriptionRequired
VisitorBaseConfigBase configuration.Yes
protocolstringTunnel underlying communication protocol. Options are quic and kcp, default is quic.No
keepTunnelOpenboolWhether to keep tunnel open. If enabled, will periodically check tunnel status and try to keep it open.No
maxRetriesAnHourintNumber of attempts to open tunnel per hour, default value is 8.No
minRetryIntervalintMinimum interval time for retrying to open tunnel, in seconds, default is 90s.No
fallbackTostringName of other visitor to fallback to.No
fallbackTimeoutMsintFallback to other visitor after connection establishment exceeds this time (ms).No
natTraversalNatTraversalConfigNAT traversal configuration.No
Last modified January 4, 2026: add docs for v0.66 (#106) (191a9bc)