mitmproxy-linux (Local Traffic Redirector for mitmproxy)

0.12.9 · active · verified Sat Apr 11

mitmproxy-linux is a component package within the broader mitmproxy ecosystem, currently at version 0.12.9, which was last released on January 30, 2026. It specifically provides the Linux traffic redirection capabilities for mitmproxy's 'local capture mode', leveraging eBPF technology to intercept traffic from specific applications without system-wide proxy settings. This package is not a standalone proxy but rather a backend dependency used by the main mitmproxy tools (mitmproxy, mitmweb, mitmdump) to enable advanced local interception features on Linux. The mitmproxy project itself has a regular release cadence, with the main library currently at version 12.2.1 as of November 24, 2025.

Warnings

Install

Imports

Quickstart

mitmproxy-linux facilitates the 'local capture mode' for the main mitmproxy application on Linux. To use it, you install `mitmproxy` (which includes or depends on `mitmproxy-linux`) and then run the `mitmproxy` or `mitmweb` command-line tools with the `--mode local` or `--mode local:<process_name>` flag. Root privileges (`sudo`) are required to load the eBPF program for local interception.

# To enable mitmproxy's local capture mode using mitmproxy-linux:
# Ensure mitmproxy is installed (pip install mitmproxy)
# Run mitmproxy with the local mode flag:
sudo mitmproxy --mode local

# To capture traffic from a specific application (e.g., curl):
sudo mitmproxy --mode local:curl

# Or, for the web interface:
sudo mitmweb --mode local

view raw JSON →