ProxyChains: TCP connection proxy redirection tool
Force TCP connections through chained SOCKS/HTTP proxies via LD_PRELOAD.
Learn more about proxychains
ProxyChains is a Unix utility that redirects TCP connections through proxy servers by hooking network-related libc functions in dynamically linked programs. It works by preloading a shared library that intercepts calls to connection functions, allowing traffic to be routed through SOCKS4a, SOCKS5, or HTTP proxies. The tool supports proxy chaining, mixing different proxy types in sequence, and includes built-in DNS resolution through proxies. It operates only on dynamically linked binaries that share the same libc as the ProxyChains installation, and requires no modifications to target applications.

Proxy chain mixing
Supports combining multiple proxy types in a single chain, such as SOCKS5 followed by HTTP followed by SOCKS4, allowing flexible routing through heterogeneous proxy infrastructure.
Dynamic DNS resolution
Performs DNS lookups through the proxy chain rather than locally, enabling access to resources only resolvable from within the proxy network and supporting Tor onion addresses.
Transparent application proxification
Uses libc function interception to redirect connections without requiring application-level proxy support or source code modifications, working with unmodified binaries like telnet, nmap, and other network tools.
import ctypes
import os
# Preload ProxyChains library to intercept network calls
os.environ['LD_PRELOAD'] = '/usr/lib/libproxychains.so.3'
import requests
# All requests will now route through configured proxies
response = requests.get('https://api.ipify.org?format=json')
print(f"Public IP: {response.json()['ip']}")Top in Networking
Related Repositories
Discover similar tools and frameworks used by developers
nginx-proxy-manager
Web UI for Nginx reverse proxy and SSL management.
tailscale
Zero-config mesh VPN with daemon and CLI tools.
rippled
Peer-to-peer consensus node for XRP Ledger network.
jitsi-meet
WebRTC video conferencing with self-hosting and embeddable SDKs.
kong
Lua-based reverse proxy with pluggable architecture.