Show HN: Oproxy – controlla e modifica il traffico di rete direttamente dal browser
Sintesi redazionale: URL dell'articolo: https://github.com/sauravrao637/oproxy URL dei commenti: https://news.ycombinator.com/item?id=48431079 Punti: 17 # Commenti: 1. Fonte originale: https://github.com/sauravrao637/oproxy
<p>oproxy is a local HTTP, HTTPS, HTTP/3, WebSocket, and SOCKS5 proxy for inspecting, replaying, and modifying traffic from browsers, CLIs, mobile apps, API clients, services, and test suites.</p><p>It runs a web UI, API, and optional AI assistant on the same local listener, so you can capture traffic, inspect requests and responses, replay requests, mock upstreams, rewrite traffic, throttle responses, and export reproducible snippets without changing application code.</p><p>The Assistant is an OpenAI-compatible control-plane client: it can inspect current proxy state through allowlisted tools and prepare traffic/configuration changes as reviewable confirmation cards.</p><p>Security note: HTTPS interception requires trusting a local oproxy root CA. Install that CA only on machines and browsers you control, keep the generated private key safe, and do not expose the admin UI without a strong token.</p><p>- Capture HTTP and HTTPS traffic, with MITM support for HTTPS.<br>- Inspect headers, bodies, status, timing, tags, notes, JWTs, GraphQL, gRPC metadata, and WebSocket frames.<br>- Replay captured requests or edit them in Compose.<br>- Export captures as HAR, cURL, Fetch, or Python snippets.<br>- Modify traffic with rules, mocks, map-local/map-remote, access rules, throttling, breakpoints, DNS overrides, Lua scripts, and upstream proxy chaining.<br>- Use the Assistant to inspect sessions, understand proxy state, and prepare confirmed changes through an OpenAI-compatible chat model.<br>- Run from Docker, Docker Compose, or source.</p><p>```<br>docker run --rm \<br>--name oproxy \<br>-p 127.0.0.1:8080:8080 \<br>-p 127.0.0.1:1080:1080 \<br>-p 127.0.0.1:8443:8443/udp \<br>-e OPROXY_BIND_HOST=0.0.0.0 \<br>-e OPROXY_MITM_ENABLED=true \<br>-e OPROXY_HTTP3_ENABLED=true \<br>-e OPROXY_HTTP3_PORT=8443 \<br>-e OPROXY_ALLOW_REMOTE_ADMIN=true \<br>-e OPROXY_ADMIN_TOKEN=change-me-to-a-strong-secret \<br>-v oproxy-certs:/app/certs \<br>-v oproxy-storage:/app/storage \<br>ghcr.io/sauravrao637/oproxy:latest<br>```</p><p>Open `http://127.0.0.1:8080`</p><p>and sign in with the token.</p><p>Docker bridge networking needs `OPROXY_BIND_HOST=0.0.0.0`</p><p>. The command above still publishes ports only on host loopback. Change `OPROXY_ADMIN_TOKEN`</p><p>before real use.</p><p>`docker compose up --build`</p><p>The checked-in Compose file enables MITM, HTTP/3 on UDP `8443`</p><p>, persistent certs/state, and a healthcheck.</p><p>Requirements: Rust 1.85+, Node.js 22+, and Yarn via Corepack.</p><p>```<br>corepack enable<br>yarn --cwd src/design install --frozen-lockfile<br>yarn --cwd src/design build<br>cargo run --release<br>```</p><p>Open `http://127.0.0.1:8080`</p><p>.</p><p>`curl -x http://127.0.0.1:8080 http://example.com`</p><p>The request appears in the Sessions view.</p><p>For HTTPS:</p><p>```<br>curl http://127.0.0.1:8080/admin/ca -o oproxy-ca.crt<br>curl --cacert oproxy-ca.crt -x http://127.0.0.1:8080 https://example.com<br>```</p><p>For browser HTTPS capture, configure the browser or OS to use `127.0.0.1:8080`</p><p>as the HTTP and HTTPS proxy, then import the CA from `http://127.0.0.1:8080/admin/ca`</p><p>.</p><p>- Getting started<br>- Docker<br>- HTTPS MITM<br>- Assistant<br>- Configuration<br>- Security<br>- Troubleshooting<br>- Architecture<br>- Contributing</p><p>oproxy is licensed under the MIT License.</p>
