chore: remove legacy proxyctl and mitm-redirect.sh scripts
Both are superseded by the zg binary and setup-linux.sh. Updated docs/mitm.md to reflect current setup flow.
This commit is contained in:
14
docs/mitm.md
14
docs/mitm.md
@@ -129,20 +129,16 @@ Events dispatched through `tokio::sync::mpsc` channels from MITM → API handler
|
||||
|
||||
## Setup
|
||||
|
||||
### UID-Scoped iptables (Classic Mode)
|
||||
### UID-Scoped iptables (Linux)
|
||||
|
||||
The `zerogravity-ls` user and iptables rules are created automatically by `setup-linux.sh`:
|
||||
|
||||
```bash
|
||||
# One-time setup — creates zerogravity-ls user + iptables rule
|
||||
sudo ./scripts/mitm-redirect.sh install
|
||||
|
||||
# Run proxy (standalone LS + MITM both enabled by default)
|
||||
RUST_LOG=info ./target/release/zerogravity
|
||||
./scripts/setup-linux.sh
|
||||
zg start
|
||||
|
||||
# Check intercepted usage
|
||||
curl -s http://localhost:8741/v1/usage | jq .
|
||||
|
||||
# Cleanup
|
||||
sudo ./scripts/mitm-redirect.sh uninstall
|
||||
```
|
||||
|
||||
### Headless Mode
|
||||
|
||||
Reference in New Issue
Block a user