Traffic capture¶
Smithproxy can record traffic after policy selection, including plaintext application data from intercepted TLS sessions. Capture is controlled by both the global captures section and the content profile selected by a policy.
Sensitive output
Capture files and SSL key logs may contain credentials, cookies and private application data. Restrict filesystem permissions, retention and remote collector access.
Global destinations¶
Example local and remote capture settings:
captures = {
local = {
enabled = TRUE;
dir = "/var/smithproxy/data";
file_prefix = "";
file_suffix = "";
pcap_quota = 100;
format = "pcap_single";
};
remote = {
enabled = FALSE;
tun_type = "gre";
tun_dst = "192.0.2.20";
tun_ttl = 1;
};
};
pcap_quota controls rollover for the aggregate capture. Keep remote capture disabled until the destination and routing have been verified.
Enable capture in a content profile¶
content_profiles = {
observed = {
write_payload = TRUE;
write_format = "pcap_single";
write_limit_client = 0;
write_limit_server = 0;
};
};
Reference observed from the intended policy. Do not enable capture globally unless every matching connection should be retained.
Supported profile format names include legacy smcap, pcap/pcapng for per-session capture and pcap_single for the rotating aggregate writer. Prefer PCAP/PCAPNG for new integrations. Format names and aliases can differ by release; use the configuration schema and CLI completion on the running build.
Verify capture¶
diag proxy session list active
diag writer stats
show event list
Then inspect the configured capture directory. Use Wireshark or tshark for PCAP/PCAPNG files. The separate pplay tool can export flows into editable scripts and replay TCP, TLS, UDP or SCTP application payloads.
Remote GRE export¶
GRE export is useful for a dedicated analysis workstation. Ensure the path accepts GRE, scope the destination address narrowly and treat the exported plaintext as sensitive. Current development builds can select GRE SPQ1 or PCAPNG-oriented export for native multi-flow records.
SSL key log¶
settings.sslkeylog_file controls NSS-compatible TLS key logging for supported TLS paths. Protect this file like captured plaintext. It can be loaded in Wireshark to decrypt a corresponding wire capture.
Operational guidance¶
- apply client/server byte limits where full payloads are unnecessary;
- monitor disk space and writer statistics;
- rotate and expire captures outside Smithproxy as part of normal operations;
- disable content capture while troubleshooting unrelated behavior;
- validate timestamps and interface placement before relying on a capture as evidence.