ProxyChains-NG
$ proxychains4 Community Med Riskproxychains4 (ProxyChains-NG) hooks TCP socket and DNS calls via LD_PRELOAD / DYLD_INSERT_LIBRARIES so tools lacking proxy support route through SOCKS4, SOCKS5, or HTTP proxies (proxychains4 -q -f proxychains.conf curl ...). Pass -q to keep wrapped stdout clean for JSON parsing; does not affect statically linked Go/Rust binaries or macOS SIP-protected system tools.
brew install proxychains-ng Injects libproxychains4 into local child processes to redirect TCP sockets; MCP servers cannot intercept libc connect() calls of arbitrary CLI binaries.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Runs non-interactively and offers -q quiet mode to avoid polluting wrapped command stdout, though -f config file is required and no structured diagnostics exist.
-qsuppresses[proxychains]stdout/stderr noise- Requires
proxychains.confconfiguration file
Redirects child process TCP connections without root privileges, though proxychains.conf stores proxy passwords in plaintext and inherits the wrapped binary's side effects.
- No root needed; plaintext proxy credentials in
proxychains.conf
macOS/Linux only; macOS System Integrity Protection blocks hooks on /usr/bin/* binaries and statically linked Go binaries ignore LD_PRELOAD.
- macOS SIP and static binaries bypass dynamic library preloading
Useful shim for legacy dynamically linked tools that ignore ALL_PROXY/HTTPS_PROXY environment variables.
- Supports SOCKS4, SOCKS5, HTTP proxies, and
proxy_dns
Maintained community fork (rofl0r/proxychains-ng) under GPL-2.0.
- Community repo
rofl0r/proxychains-ng
README and commented proxychains.conf template explain chain modes (strict_chain, dynamic_chain, random_chain).
- README and sample
proxychains.conf
Security, Auth & Guardrails
Reads proxy host, port, and optional plaintext username/password from proxychains.conf (~/.proxychains/proxychains.conf or -f <file>).
Free, GPL-2.0 open-source C utility.
# ProxyChains-NG Agent Rules - Always pass `-q` when wrapping JSON-producing CLIs so `[proxychains]` banner lines do not corrupt stdout. - Specify `-f <path>` explicitly and note that macOS SIP (`/usr/bin/*`) and static Go binaries bypass `LD_PRELOAD`/`DYLD_INSERT_LIBRARIES` hooks.
Agent-Ready Command Recipes
Safe Read-Only Queries
proxychains4 -q -f proxychains.conf curl -fsSL https://ifconfig.me
Suppresses ProxyChains banner output with -q and routes curl TCP/DNS traffic through proxychains.conf.
Strengths for Agents
- +
-qflag suppresses banner noise so wrapped tools still emit clean stdout. - + Works without root privileges on dynamically linked Linux/macOS binaries.
Caveats & Pitfalls
- ! Silently fails to intercept statically linked binaries (many Go tools) and macOS SIP-protected
/usr/bin/*commands. - ! Stores any proxy username/password in plaintext inside
proxychains.conf.