topic
Verified 2026-09-18

MASQUE and CONNECT-UDP

MASQUE uses HTTP/3 extended CONNECT to proxy UDP datagrams through an authorized intermediary.

Treat a MASQUE tunnel as a privileged network capability: authenticate the client, restrict destinations and ports, cap bandwidth and lifetime, and prevent access to loopback, metadata, and private networks.

httpprotocolhttp3masqueproxysecurity

Reference (http)

CONNECT target.example:443 HTTP/3
Capsule-Protocol: ?1
Datagram-Flow-Id: 0

Treat a MASQUE tunnel as a privileged network capability: authenticate the client, restrict destinations and ports, cap bandwidth and lifetime, and prevent access to loopback, metadata, and private networks.

Common mistakes

  • Allowing arbitrary destinations, trusting a client-supplied authority, or forgetting that a tunnel can bypass ordinary HTTP egress filters.
Permalink: https://merginit.com/reference/http/masque-connect-udp