MASQUE¶
Get MASQUE configuration¶
Generate MASQUE configuration using the usque tool.
private-key¶
Required, base64-encoded ECDSA private key.
public-key¶
Required, base64-encoded ECDSA public key (server-side public key).
Note
Remove PEM header/footer markers such as -----BEGIN PUBLIC KEY-----, -----END PUBLIC KEY-----, and PEM line breaks \n.
ip¶
Local IPv4 address in CIDR format (e.g., 172.16.0.2/32).
ipv6¶
Local IPv6 address in CIDR format (e.g., fd00::2/128).
mtu¶
MTU size for the TUN device, defaults to 1280.
udp¶
Whether to enable UDP support, defaults to false.
ip-stack¶
Optional IP stack configuration.
ip-stack.mode¶
Available values: auto, gvisor, mips. The default value is auto. auto automatically selects the stack based on the current build: gVisor is used when compiled with gVisor support; otherwise, the mihomo IP stack (MIPS) is used.
ip-stack.congestion-controller¶
TCP congestion control algorithm. Available values: cubic, reno, bbr, bbr3. The default value is cubic.
This option has no effect when using the gVisor IP stack.
remote-dns-resolve¶
Whether to enable remote DNS resolution through the MASQUE tunnel.
dns¶
List of remote DNS servers, takes effect when remote-dns-resolve is enabled.
congestion-controller¶
Overrides the default congestion control algorithm. Disabled by default. Available values include bbr.
network¶
Optional. Defaults to quic. For masque-h2, set it to h2. For h3-l4proxy mode, set it to h3-l4proxy.
Note
h3-l4proxy mode currently does not support UDP.
handshake-timeout¶
Handshake timeout in seconds. The default value is 0, meaning only the outer connection timeout is used.