Configuration reference¶
Smithproxy uses a libconfig-style file, normally /etc/smithproxy/smithproxy.cfg. The runtime schema and CLI completion in the same build are the final authority; older package samples may contain accepted no-op fields preserved for migration.
Validate before reload:
sudo smithproxy --config-check-only
Top-level sections¶
| Section | Purpose |
|---|---|
settings |
listeners, workers, DNS, paths, logging, CLI, API and webhook settings |
debug |
global and per-subsystem diagnostic logging |
captures |
local file writer and remote GRE destination |
address_objects |
named IPv4/IPv6 CIDR objects |
port_objects |
named port ranges |
proto_objects |
named IP protocol numbers |
policy |
ordered connection-matching rules |
routing |
DNAT, upstream selection and load balancing |
tls_profiles |
interception, certificate and TLS validation behavior |
content_profiles |
capture, content filters, webhooks and JA4 options |
detection_profiles |
signature inspection behavior |
alg_dns_profiles |
DNS inspection settings |
features |
reusable policy features such as sink and access-request actions |
Core listener settings¶
| Key | Default/sample | Meaning |
|---|---|---|
settings.accept_tproxy |
TRUE |
Enable TPROXY listener family |
settings.accept_redirect |
TRUE |
Enable REDIRECT listener family |
settings.accept_socks |
TRUE |
Enable SOCKS listener family |
settings.accept_http_connect |
build-dependent | Enable HTTP CONNECT listener |
settings.plaintext_port |
"50080" |
Transparent plaintext TCP port |
settings.ssl_port |
"50443" |
Transparent TLS port |
settings.udp_port |
"50080" |
Transparent UDP port |
settings.http_connect_port |
"3128" |
Explicit HTTP CONNECT port |
settings.*_workers |
0 |
Automatic worker count; accepted ranges are schema/build dependent |
Disable unused listener families to reduce exposed surface and idle workers.
Management and logging¶
settings = {
cli = {
port = 50000;
enable_password = "";
};
log_level = 6;
log_file = "/var/log/smithproxy/messages.%s.log";
sslkeylog_file = "/var/log/smithproxy/sslkeylog.%s.log";
};
The HTTP API can be disabled globally and has its own port, access keys and PAM/group controls. Inspect effective runtime values with diag api info. Never bind CLI or API management to an untrusted interface without network-level restrictions.
HTTP API settings¶
| Key | Purpose |
|---|---|
settings.accept_api |
enable the API server |
settings.http_api.port |
HTTPS API port, default 55555 |
settings.http_api.keys |
keys accepted by /api/authorize |
settings.http_api.key_timeout |
session-token lifetime |
settings.http_api.key_extend_on_access |
refresh token lifetime while used |
settings.http_api.loopback_only |
restrict listeners to loopback by default |
settings.http_api.bind_address |
explicit IPv4 bind address |
settings.http_api.bind_interface |
bind through a selected interface/VRF |
settings.http_api.allowed_ips |
source-address allowlist; empty means unrestricted |
settings.http_api.pam_login |
enable PAM login when compiled with PAM |
settings.admin.group |
system group allowed to administer; empty means root |
Webhook settings¶
| Key | Purpose |
|---|---|
settings.webhook.enabled |
enable webhook emission |
settings.webhook.url |
HTTP(S) receiver URL |
settings.webhook.tls_verify |
verify receiver certificate; keep enabled |
settings.webhook.hostid |
override source identity; defaults to hostname |
settings.webhook.bind_interface |
select an interface/VRF for requests |
settings.webhook.api_override |
allow temporary target override via API |
settings.webhook.ping_interval |
proxy-state ping interval |
settings.webhook.nbr_update_interval |
periodic neighbor update interval |
settings.webhook.nbr_tag_refresh_age |
age before requesting neighbor-tag refresh |
settings.webhook.task_debug |
collect task debug metadata |
settings.webhook.task_debug_dump |
collect verbose task dumps; performance-sensitive |
Object model¶
Objects keep policy rules readable:
address_objects = {
lab = { type = "cidr"; value = "192.0.2.0/24"; };
example = { type = "fqdn"; value = "example.com"; };
};
port_objects = {
web_tls = { start = 443; end = 443; };
};
proto_objects = {
tcp = { id = 6; };
};
IPv4 and IPv6 require matching address objects. A policy that references only any does not automatically include any6.
Policies¶
Policies are ordered; first match wins. A representative rule is:
policy = (
{
name = "inspect lab TLS";
proto = "tcp";
src = [ "lab" ];
sport = [ "all" ];
dst = [ "any", "any6" ];
dport = [ "web_tls" ];
action = "accept";
tls_profile = "default";
content_profile = "observed";
detection_profile = "detect";
}
);
Use diag proxy policy list to inspect the runtime interpretation and detailed session output to see the matched policy index.
Content profiles¶
Important fields include:
| Field | Purpose |
|---|---|
write_payload |
enable capture for matched sessions |
write_format |
smcap, pcap/pcapng or aggregate pcap_single, subject to build support |
write_limit_client/server |
cap retained bytes per direction; 0 means unlimited |
webhook_enable |
allow content webhook processing |
webhook_lock_traffic |
serialize/block while waiting for content webhook |
ja4_tls_ch |
compute JA4 from ClientHello |
ja4_tls_ch_ignore_sni |
Smithproxy-specific SNI-independent JA4 variant |
ja4_tls_sh |
compute JA4S |
ja4_http |
compute JA4H |
Safe editing workflow¶
configure terminal
where
edit content_profiles
edit observed
set write_payload true
end
show config content_profiles
save config
execute reload
The exact edit, set, add, remove, move and toggle candidates are schema-driven. Use Tab and ?; do not copy a mutation command between unrelated configuration paths.
Deprecated compatibility keys¶
Some removed settings are still accepted so older files load, but are ignored and no longer emitted. Current examples include settings.tuning.proxy_thread_spray_min and settings.tuning.subproxy_thread_spray_bytes_min. Remove such fields during a reviewed migration rather than assuming they still tune runtime behavior.