mitmproxy/test/wg-test-client
Fabio Valentini 2d495c093c
add transparent server mode based on WireGuard (#5562)
* add mode spec for WireGuard mode

* add WireGuard server implementation

* remove coverage excludes

* simplify wireguard spec

* lint!

* remove superfluous tests

* bump to mitmproxy_wireguard 0.1.1

* proxy/test_mode_specs: remove unused import

* fix wireguard server mode

* WireGuard: move keyfile gen into `.start()`

This way any file format errors result in `.last_exception` being set.

* fixup UDP support

* bump to mitmproxy_wireguard v0.1.2

This release fixes TCP connections which were broken in v0.1.1.

* fix crash handler

* add simple test for WireGuard server instances

* bump to mitmproxy_wireguard v0.1.5 and fix launching wg-test-client

* fixups

 - monkeypatch `handle_client` instead of the handlers.
 - fix OS detection
 - ctx.log -> logging

* nits

* bump to mitmproxy_wireguard 0.1.6 for fixed test client

* move WireGuardDatagramTransport into dedicated module

this allows us to exclude it from individual coverage, which makes no sense.
Also improve type checking to make sure that it's a full replacement.

* cover WireGuardServerInstance.is_running property with tests

* enable specialized server instance creation

* test wireguard conf generation

* deduplicate tcp/udp handlers

* update CHANGELOG

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2022-09-18 17:15:15 +02:00
..
LICENSE add transparent server mode based on WireGuard (#5562) 2022-09-18 17:15:15 +02:00
README.md add transparent server mode based on WireGuard (#5562) 2022-09-18 17:15:15 +02:00
linux-x86_64 add transparent server mode based on WireGuard (#5562) 2022-09-18 17:15:15 +02:00
macos-aarch64 add transparent server mode based on WireGuard (#5562) 2022-09-18 17:15:15 +02:00
macos-x86_64 add transparent server mode based on WireGuard (#5562) 2022-09-18 17:15:15 +02:00
test.conf add transparent server mode based on WireGuard (#5562) 2022-09-18 17:15:15 +02:00
windows-x86_64.exe add transparent server mode based on WireGuard (#5562) 2022-09-18 17:15:15 +02:00

README.md

mitm-wg-test-client

This directory contains simple test client binaries built from https://github.com/decathorpe/mitmproxy_wireguard version v0.1.6. New versions of the test client binaries are published as release assets on GitHub.

The test binaries are used for sending WireGuard traffic from userspace in tests/mitmproxy/proxy/test_mode_servers.py:test_wireguard.