Build from source

Source builds are the recommended way to evaluate current master, including features newer than the published packages.

Supported environment

Smithproxy targets recent Linux distributions and a C++17 toolchain. CI currently covers Ubuntu 22.04 and 26.04, with distro sanity checks and Docker build definitions for Debian 11/12 and Ubuntu 20.04/22.04/24.04. Architecture and optional feature support depend on available libraries.

Clone with submodules

git clone --recursive https://github.com/astibal/smithproxy.git
cd smithproxy

For an existing checkout:

git submodule update --init --recursive

Smithproxy uses the socle submodule. A checkout with a missing or mismatched submodule is not a valid source tree.

Install dependencies

The repository provides distro-aware helpers:

sudo tools/linux-deps.sh

Review scripts before running them as root. On unsupported distributions, use the matching Docker build definitions under tools/docker/0.9/build/ as a dependency reference.

Build

tools/linux-build.sh

For development or custom feature flags, configure a separate CMake build directory rather than modifying generated files in the source tree.

Validate

Run the available test targets for the selected build and validate the default configuration before deployment:

smithproxy --config-check-only

QUIC requires a compatible OpenSSL QUIC implementation. A successful core build does not necessarily enable the experimental QUIC listener.

Upgrade workflow

  1. Back up /etc/smithproxy, certificate keys and any local service overrides.
  2. Fetch the desired commit or release tag and update submodules.
  3. Build and run tests before replacing the installed binary.
  4. Validate configuration against the new schema.
  5. Restart in a maintenance window and inspect events, sessions and capture writers.

Do not copy an old sample configuration over a newer migrated configuration.