LinuxCommandLibrary

proxychains

Route TCP connections through proxy servers

TLDR

Run command through proxy

$ proxychains [command]
copy
Run curl through proxy
$ proxychains curl [url]
copy
Use specific config
$ proxychains -f [config.conf] [command]
copy
Quiet mode
$ proxychains -q [command]
copy

SYNOPSIS

proxychains [options] command [args]

DESCRIPTION

proxychains forces TCP connections through proxy servers (SOCKS4/5, HTTP). It hooks network calls using LD_PRELOAD to redirect traffic transparently.
Useful for anonymization and bypassing network restrictions.

PARAMETERS

-q

Quiet mode.
-f file
Use specific config file.

EXAMPLES

$ # Run through proxy
proxychains curl http://example.com

# SSH through proxy
proxychains ssh user@host

# nmap through Tor
proxychains nmap -sT target

# Quiet mode
proxychains -q wget http://example.com/file
copy

CONFIGURATION

$ # /etc/proxychains.conf
strict_chain
proxy_dns

[ProxyList]
socks5 127.0.0.1 9050
http   192.168.1.1 8080
copy

CHAIN TYPES

$ strict_chain  - All proxies in order
dynamic_chain - Skip dead proxies
random_chain  - Random proxy order
round_robin   - Cycle through proxies
copy

CAVEATS

Only TCP supported. UDP and ICMP not proxied. Some apps detect LD_PRELOAD.

HISTORY

proxychains was originally written by haad and later forked as proxychains-ng by rofl0r with improvements.

SEE ALSO

tor(1), torsocks(1), socat(1), tsocks(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community