cat /etc/proxychains4.confThe config file. The proxy list at the bottom defines the chain; add `socks5 127.0.0.1 1080` to use a SOCKS proxy from chisel or SSH.
Forces any program’s TCP traffic through a chain of SOCKS or HTTP proxies — the standard way to run tools across a SOCKS pivot.
sudo apt install proxychains4cat /etc/proxychains4.confThe config file. The proxy list at the bottom defines the chain; add `socks5 127.0.0.1 1080` to use a SOCKS proxy from chisel or SSH.
set dynamic_chain in the configDynamic chain skips dead proxies; strict_chain requires every proxy in order; random_chain picks a random subset.
set proxy_dns in the configResolves DNS through the proxy so internal names work and you do not leak lookups.
proxychains <command>Routes a command’s TCP connections through the configured proxy chain.
Example
proxychains curl http://172.16.0.10proxychains -q <command>Quiet mode, without the per-connection output.
Example
proxychains -q firefoxproxychains nmap -sT -Pn -n <target>Scans through the proxy. Use -sT (full connect) and -Pn, since SOCKS cannot carry raw SYN or ICMP.
Example
proxychains nmap -sT -Pn -n 172.16.0.0/24proxychains -f <conf> <command>Uses an alternate config file.
Example
proxychains -f ./custom.conf crackmapexec smb 172.16.0.10ssh -D <port> <user>@<host> then use socks5 127.0.0.1 <port>SSH dynamic forwarding provides a SOCKS proxy that proxychains can use directly.
Example
ssh -D 1080 user@pivotA fast TCP/UDP tunnel over HTTP secured with SSH, in a single Go binary — used to build SOCKS proxies and port forwards through firewalls during pivoting.
A modern tunneling tool that exposes internal networks through a lightweight TUN interface — pivot without proxychains, using normal routing.
OpenSSH: secure remote login, key management, file transfer and port forwarding — local, remote and dynamic SOCKS tunnels.
A transparent proxy that tunnels a whole subnet over a plain SSH connection, with DNS support and no special software on the remote host.