Docker¶
Docker is useful for evaluation and isolated labs. Transparent interception still modifies host networking and normally requires host networking plus elevated network capabilities; a container boundary does not remove that risk.
Quick evaluation¶
docker run --rm -it \
--shm-size 512m \
astibal/smithproxy:latest
This is ephemeral. Configuration, logs, certificates and captures disappear with the container.
Persistent directories¶
Persist at least:
/etc/smithproxy— configuration and signing keys;/var/log/smithproxy— logs and optional SSL key log;/var/smithproxy/data— default capture output in the current sample configuration.
Example:
docker volume create smithproxy-etc
docker volume create smithproxy-log
docker volume create smithproxy-capture
docker run --rm -it \
--name smithproxy \
--network host \
--shm-size 512m \
-v smithproxy-etc:/etc/smithproxy \
-v smithproxy-log:/var/log/smithproxy \
-v smithproxy-capture:/var/smithproxy/data \
astibal/smithproxy:latest
Verify paths against the selected image tag; older images may use /var/local/smithproxy.
Transparent deployments¶
TPROXY/REDIRECT requires host netfilter and routing setup. Apply diversion rules on the host, grant only the capabilities actually required and avoid --privileged where a narrower setup works. Prevent the proxy's own upstream connections from being redirected back into Smithproxy.
For a first test, prefer SOCKS5 or HTTP CONNECT. These paths require no host packet diversion and are easier to troubleshoot.
Image age and source builds¶
Container tags can lag behind master. Check the image publication date and runtime version before expecting development features such as HTTP CONNECT or experimental QUIC. For exact source control, build from the repository Docker definitions or use a native source build.