31 lines
1.6 KiB
Markdown
31 lines
1.6 KiB
Markdown
# netreplay
|
|
|
|
This program has two modes:
|
|
* recording proxy: relays trafic with or without TLS and record requests and responses in clear. It is a TLS termination thus a certificate is needed.
|
|
* trafic replay: run a client that sends the recorded requests, and a server that responds with the corresponding recorded responses. Responses are replaced with the same amount of random bytes for performance.
|
|
|
|
It relies on the server name extension in TLS (SNI). Requests without server name may not be recorded.
|
|
|
|
For experimental purpose. Do not use on an open network where security matters.
|
|
|
|
## Build
|
|
|
|
[Install Rust nightly.](https://rustup.rs)
|
|
|
|
Choose a cryptographic backend in `Cargo.toml`.
|
|
|
|
```bash
|
|
cargo build --release
|
|
```
|
|
|
|
## SSLKEYLOGFILE
|
|
|
|
The `SSLKEYLOGFILE` environment variable can be set to a file path to which the connection secrets will be exported, enabling decrypting the traffic in Wireshark.
|
|
|
|
## License
|
|
|
|
GNU AGPL v3, CopyLeft 2025-2026 Pascal Engélibert [(why copyleft?)](https://txmn.tk/blog/why-copyleft/)
|
|
|
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
|
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
|