Skip to content

MASQUE ​

Use service-issued keys and addresses, not ordinary HTTP proxy credentials. h3-l4proxy requires its matching service and does not support UDP; set udp to false for that mode.

Node example ​

Merge this node into the configuration’s proxies list. Replace example addresses, identities, and credentials. If you rename Node, update group references too.

yaml
proxies:
  - name: Node
    type: masque
    server: proxy.example.com
    port: 443
    private-key: YOUR_BASE64_EC_PRIVATE_KEY
    public-key: SERVER_BASE64_PUBLIC_KEY
    ip: 10.10.0.2/32
    network: h3
    udp: true

Protocol fields ​

FieldHow to configure it
private-keyService-issued Base64 SEC1 EC private key in DER form, not a WireGuard key.
public-keyRemote Base64 ECDSA public key in PKIX DER form.
ip / ipv6Client tunnel addresses, optionally in CIDR form.
networkh3 or h2 for IP tunnels; h3-l4proxy selects a different forwarding mode.
sni / mtuService TLS name and tunnel MTU.
remote-dns-resolve / dnsDNS servers for destination resolution inside this outbound.
ip-stackThe network stack inside this node. Starting with Clash for iOS and iPadOS 1.0.14, macOS 1.0.16, and tvOS 1.0.17, there is one network stack: mode set to auto, gvisor, or mips connects as usual and runs on it, and the app notes that the setting has no effect. congestion-controller picks TCP congestion control: cubic (default), reno, or bbr; bbr3 runs as bbr.

Groups and rules · Common fields · TLS · Transports

Reference: mihomo.