You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpjail can run as a standalone proxy server without executing any commands. This is useful when you want to proxy multiple applications through the same httpjail instance. The server binds to localhost (127.0.0.1) only for security.
195
+
196
+
```bash
197
+
# Start server with default ports (8080 for HTTP, 8443 for HTTPS) on localhost
# Output: Server running on ports 8080 (HTTP) and 8443 (HTTPS). Press Ctrl+C to stop.
208
+
209
+
# Configure your applications to use the proxy:
210
+
export HTTP_PROXY=http://localhost:8080
211
+
export HTTPS_PROXY=http://localhost:8443
212
+
curl https://github.com # This request will go through httpjail
213
+
```
214
+
215
+
**Note**: In server mode, httpjail does not create network isolation. Applications must be configured to use the proxy via environment variables or application-specific proxy settings.
216
+
178
217
## TLS Interception
179
218
180
219
httpjail performs HTTPS interception using a locally-generated Certificate Authority (CA). The tool does not modify your system trust store. Instead, it configures the jailed process to trust the httpjail CA via environment variables.
@@ -201,16 +240,9 @@ How it works:
201
240
202
241
Notes and limits:
203
242
204
-
- Tools that ignore the above env vars will fail TLS verification when intercepted. For those, either add tool‑specific flags to point at `ca-cert.pem` or run with `--no-tls-intercept`.
243
+
- Tools that ignore the above env vars will fail TLS verification when intercepted. For those, add tool‑specific flags to point at `ca-cert.pem`.
205
244
- Long‑lived connections are supported: timeouts are applied only to protocol detection, CONNECT header reads, and TLS handshakes — not to proxied streams (e.g., gRPC/WebSocket).
206
245
207
-
### Disable TLS Interception
208
-
209
-
```bash
210
-
# Only monitor/block HTTP traffic
211
-
httpjail --no-tls-intercept --allow ".*" -- ./app
212
-
```
213
-
214
246
## License
215
247
216
248
This project is released into the public domain under the CC0 1.0 Universal license. See [LICENSE](LICENSE) for details.
0 commit comments