Skip to content

Commit

Permalink
mitmproxy-linux: add build dependency section
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils authored Jan 12, 2025
1 parent 07e4935 commit 8e09914
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions mitmproxy-linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@ This package contains the following precompiled binaries for Linux:
- `mitmproxy-linux-redirector`: A Rust executable that redirects traffic to mitmproxy via eBPF.


## Build Dependencies

This package requires the following software to build (via https://aya-rs.dev/book/start/development/#prerequisites):

- Rust nightly.
- [bpf-linker]: `cargo install --locked bpf-linker`

## Redirector Development Setup

1. Install [bpf-linker](https://github.com/aya-rs/bpf-linker): `cargo install --locked bpf-linker`
2. Run `pip install -e .` to install `mitmproxy_linux` as editable.
1. Install build dependencies (see above).
2. Install mitmproxy_linux as editable: `pip install -e .`
3. Run something along the lines of `mitmdump --mode local:curl`.
You should see a `Development mode: Compiling mitmproxy-linux-redirector...` message.


[bpf-linker]: https://github.com/aya-rs/bpf-linker

0 comments on commit 8e09914

Please sign in to comment.