Getting started

This checklist takes a fresh installation to a first inspected connection. Paths shown here are package defaults; container volume paths may differ.

1. Generate a signing CA

Run the certificate enrollment tool as root:

sudo sx_regencerts
sudo sx_certinfo_ca

Install only the public CA certificate on the test clients. Never distribute ca-key.pem. See Certificates for details.

2. Validate the configuration

The main configuration is /etc/smithproxy/smithproxy.cfg. Before starting or reloading, validate it:

sudo smithproxy --config-check-only

The common listener switches are:

settings = {
    accept_tproxy = TRUE;
    accept_redirect = TRUE;
    accept_socks = TRUE;
};

Enable only the listener families your deployment uses.

3. Start Smithproxy

For a package installation use its system service or the supplied control tool:

sudo sx_ctl start
sudo sx_ctl status

Traffic diversion is configured separately with sx_network; explicit proxy deployments do not require transparent diversion rules.

4. Connect to the CLI

sudo sx_cli

The CLI normally listens on TCP port 50000, so a direct connection is also possible:

telnet 127.0.0.1 50000

Useful first commands:

enable
show status
diag proxy session list
diag proxy session list active
show event list

Use ? and Tab for contextual help and completion. See the CLI guide.

5. Send a test connection

For SOCKS5:

curl --proxy socks5h://127.0.0.1:1080 https://example.com/

For HTTP CONNECT, enable the listener as described in Explicit proxy modes, then run:

curl --proxy http://127.0.0.1:3128 https://example.com/

Confirm the session using diag proxy session list 7 and check show event list if the connection fails.

6. Save configuration changes

CLI edits affect the running configuration first. After reviewing them, save and reload using the commands exposed by the active CLI context. The prompt marks unsaved changes; do not treat a successful runtime edit as persistent until it has been saved.