Repository navigation
v0.1.0
Initial Release
Transparent proxy for macOS that intercepts TCP traffic redirected by pf and forwards it through an upstream HTTP CONNECT proxy.
Features
- pf integration —
DIOCNATLOOKioctl for original destination recovery - SNI extraction — Reads hostnames from TLS ClientHello
- DNS interception — Optional DNS forwarder with IP→domain mapping
- Daemon mode — Run in background with PID file and log file
- Anchor-based pf rules — Safe, non-destructive firewall setup
Quick Start
sudo ./trans_proxy --upstream-proxy 127.0.0.1:1082 --dns-listen 0.0.0.0:5353 -d
sudo scripts/pf_setup.sh en0 8443 5353Binary
trans_proxy-v0.1.0-darwin-arm64.zip— macOS ARM64 binary with setup/teardown scripts