2.11 Capture proxy
Translated from French; the French version prevails if the two differ.
In short. The capture proxy sits between a client (browser, application, script) and a service: it listens on a port on this computer, relays to the chosen destination (directly or through an SSH session) and shows each exchange, request and response, with its duration and size. It can hold a request so you can edit it before letting it through, follow WebSocket frames and capture raw TCP. It is a “reverse” proxy to a fixed destination: the client talks directly to the proxy's port.
Creating a proxy
“Proxy” in the sidebar (between Tunnels and API) → “New proxy…”:
| Field | Purpose |
|---|---|
| Name, type | HTTP / HTTPS, or raw TCP. |
| Entry port | Listening port on this computer. Listens on 127.0.0.1 by default; listening on the network requires confirmation. |
| Destination | HTTP: an http:// or https:// address (a base path is allowed). TCP: host:port, or tls://host:port to encrypt toward the destination. |
| SSH session | Optional: the destination is reached through this session and its jump hosts. |
| Certificate | Verified by Windows, or pinned by SHA-256 fingerprint. |
| Host header | The destination's, or the one sent by the client. |
| Redirects | Redirect addresses from the destination are rewritten to point to the proxy. |
Definitions are saved (without secrets); start and stop with one click, live counters.
The Proxy view
- Left column in two groups: capture proxies (status, badge for the mode or the detected protocol) and saved SOCKS5 / SOCKS4 / HTTP outbound proxies, with their details (create, edit, delete). Outbound proxies are stored without secrets; the password goes to the Windows vault. They are used by a session's right-click › Proxy (see 2.4 Tunnels, jump hosts and outbound proxy).
- Header: name, mode badge, “Detected protocol” badge, status, entry → via → destination path, counters.
- Client → server and server → client directions in distinct colors; each block is captured before being forwarded, so the order shown is the order of the exchanges.
Capture
- List of exchanges (time, method, path, color-coded status code, duration, size), with a filter; the last 300 are shown.
- Request and response details: headers, indented JSON body, form, text or hexadecimal, gzip / deflate / br decompression.
- Secrets masked: Authorization headers, cookies, API keys;
passwordandclient_secretfields and tokens in form or JSON bodies. “Reveal” shows them on demand; the hex view stays raw. - Actions: “Replay”, “Open in API client”, “Copy URL”, export to HAR 1.2 (secrets masked unless requested).
- “All” / 2xx / 4xx / 5xx / WebSocket filters; details in “Request” / “Response” / Hex / “Timeline” tabs; “Reveal secrets”.
- Responses are relayed as streams (downloads, SSE).
- In memory only: at most 2,000 exchanges and 1 MB per body; everything is cleared when the proxy stops.
Interception (HTTP mode)
- “Intercept” requests, with an optional filter on the path.
- The held request appears in a banner: “Let through”, “Edit and send…” (editable HTTP text: request line, headers, body), “Block (403)” (403 response to the client, nothing is sent) or “Let all through”.
- Edited or blocked exchanges are marked “(modified)” or “(blocked)”.
- Turning interception off or stopping the proxy releases the queue.
WebSocket
- The handshake is forwarded to the destination, then bytes flow in both directions.
- Frames (text, binary, ping, close) are read as they pass, timestamped and shown in a transcript (masked text or hexadecimal); the exchange shows the number of messages.
- Text frames are included in the HAR export.
Raw TCP
- For any protocol: each connection becomes an exchange, and blocks of bytes are captured in both directions (text or hexadecimal).
- TCP exchanges are not included in the HAR export (it is not HTTP).
Wireshark-style view
- List of connections, list of packets (No., time, direction, protocol, length, info), decoded tree and hex / ASCII dump.
- “Client → server” / “Server → client” / “Errors” filters, and a text filter. “Follow TCP stream” in ASCII or hexadecimal.
- “Decode as”: “Automatic”, “Raw data” or a decoder. Decoders included: Modbus/TCP (common functions, exceptions), MQTT 3.1.1 (CONNECT to DISCONNECT) and FTP; detection by signature and by port, messages reassembled across several segments.
- PCAP export (classic pcap format, synthetic Ethernet, IP and TCP headers), readable in Wireshark. No Wireshark or libpcap code is used.
- Secrets masked by default on screen and in exports (FTP PASS, MQTT username and password); in the bytes, they are replaced with “*” of the same length.
FTP
- “Command dialog” (PASS masked, 4xx/5xx replies highlighted, rewritten replies flagged) and transferred files, with a preview and “Save file…” (at most 1 MiB captured per file).
- The proxy rewrites PASV (227) and EPSV (229) replies to its own data ports; each channel is relayed to the destination host, through the SSH session if there is one. Active mode (PORT/EPRT) is not rewritten. After “234” (AUTH TLS), the stream is relayed as is: explicit FTPS goes through, without decoding.
- A mail “220” banner (SMTP, LMTP) is not mistaken for FTP.
What the proxy does not do
- It does not act as a general-purpose proxy for a browser (a proxy configured in the system, with a local certificate authority to decrypt HTTPS): this mode is not developed.
- It keeps nothing on disk, apart from explicit HAR or PCAP exports and “Save file…”.
A proxy that listens on the network without authentication lets any computer on the network reach the destination through your session. The Security tab flags it (“Capture proxies open to the network” card).
Plans
Plan required: Pro for capture and interception. In Discovery, the proxy relays and counts exchanges without recording them.