1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/wireproxy/README.md
2024-04-22 16:56:56 +08:00

34 lines
899 B
Markdown

wireproxy
=========
[wireproxy][1] is a completely userspace application that connects to a
wireguard peer, and exposes a socks5/http proxy or tunnels on the machine.
```bash
$ docker compose up -d
$ curl -x socks5h://127.0.0.1:1080 ipinfo.io
$ curl -x 127.0.0.1:3128 ipinfo.io
$ curl 127.0.0.1:9080/metrics
```
Click [here][2] to get a free wireguard account.
You can run a self-hosted wireguard server quickly with [mitmproxy][3]
```bash
$ mitmdump --mode wireguard --flow-detail 4
... client connect
... DNS QUERY (A) ipinfo.io
... << 34.117.186.192
... client connect
... server connect 34.117.186.192:80
... GET http://34.117.186.192/
... << 200 OK 254b
... client disconnect
... server disconnect 34.117.186.192:80
```
[1]: https://github.com/pufferffish/wireproxy
[2]: https://opentunnel.net/wireguard/
[3]: https://docs.mitmproxy.org/stable/concepts-modes/#wireguard-transparent-proxy