Sous proxy / Integrations / Proxychains

Proxy in proxychains-ng: config and launch

We put a Sous proxy into proxychains.conf the way the proxychains-ng config itself requires: type, IPv4, port, login, password. And why a program might still bypass the proxy.

SOCKS4SOCKS5HTTPLogin and passwordRotation and sticky
Proxychains · proxy
socks5
203.0.113.10
10000
user123
••••••
✓ IP: Germany, residentialSave

Why use a proxy in Proxychains

proxychains-ng is a utility for Linux, BSD, macOS and Haiku. It hooks libc network functions via LD_PRELOAD and sends a dynamically linked program's TCP connections into a SOCKS4a, SOCKS5 or HTTP proxy. It doesn't proxy UDP or ICMP.

What to pick

Take SOCKS5 credentials with a login: proxychains-ng supports auth for socks (user/pass) and http (basic), but SOCKS5 suits any TCP program. Rotation for scraper scripts; sticky for long sessions like ssh or git so the connection doesn't drop on an IP change.

Residential

from $0.6 / GB

Home ISP addresses. The main choice for accounts and protected sites.

VIP

$2 / GB

Hand-picked clean IPs, faster and more stable than regular residential.

Mobile

$4 / GB

Carrier IPs, for platforms that check addresses strictly.

Step-by-step setup

Button names are given exactly as they appear in Proxychains.

  1. Build proxychains-ng or install the package

    Per the README: ./configure --prefix=/usr --sysconfdir=/etc, then make and sudo make install. sudo make install-config puts a sample proxychains.conf in /etc.

  2. Decide which config it will read

    Search order: the file from PROXYCHAINS_CONF_FILE or the -f flag, then ./proxychains.conf, then ~/.proxychains/proxychains.conf, and only then /etc/proxychains.conf. A file in your home folder is handiest for your own proxy.

  3. Turn the proxy host into IPv4

    The config comment says plainly that [ProxyList] accepts only numeric IPv4 addresses. Look up the host's IP with getent hosts and use it.

  4. The [ProxyList] line: socks5 IP port login password

    Values separated by spaces or tabs, not colons. Comment out the default sample, socks4 127.0.0.1 9050 for Tor, or traffic goes there. Since 4.14 you can also write socks5://user:pass@ip:port.

  5. strict_chain for one proxy

    strict_chain is on by default: all listed proxies in order, all must be alive. With several sticky sessions where dead ones should be skipped, use dynamic_chain; to cycle, round_robin_chain or random_chain with chain_len.

  6. Keep proxy_dns on

    The default config has proxy_dns on: DNS queries go through the proxy and the program gets an internal address from remote_dns_subnet. If a program crashes with it, the README suggests disabling proxy_dns or using IPs.

  7. Launch: proxychains4 program

    Put proxychains4 before the command, e.g. proxychains4 curl. For another config use -f with the file path. quiet_mode in the config silences the library's own output.

  8. Check the IP before real work

    The authors advise visiting a what-is-my-IP service first to make sure your address isn't shown. Compare the answer with /en/tools/my-ip/ without the proxy.

Code example

Put in your own HOST, PORT, LOGIN and PASSWORD from the bot or the dashboard.

bash
# Host IP from your export: ProxyList needs IPv4
getent hosts <host from your export>

# ~/.proxychains/proxychains.conf
strict_chain
proxy_dns
remote_dns_subnet 224

[ProxyList]
# type  ip  port  login  password
socks5 203.0.113.10 10000 user123 secret

# run
proxychains4 curl -s https://api.ipify.org

Common errors

The issues people most often bring to support.

!

A Python or Perl script bypasses the proxyThe README explains: modules loaded via dlopen() escape the hook. For scripts set the proxy in the library itself, e.g. in requests.

!

Complains about a [ProxyList] lineThere's probably a hostname. The config accepts only numeric IPv4; use the address from getent hosts.

!

Traffic goes somewhere other than your proxyThe default socks4 127.0.0.1 9050 line is still in [ProxyList]. Comment it out.

!

System programs aren't proxied on macOSSIP gets in the way. The README suggests copying the program's binary to your home folder and running it from there.

!

UDP traffic doesn't workproxychains-ng supports only TCP. For UDP you need a program with its own SOCKS5 support.

Need a proxy for Proxychains?

Residential, VIP and mobile IPs. HTTP and SOCKS5, pay per GB, 1 GB free to try.

FAQ

How is proxychains-ng different from proxychains 3.x?

It continues the project: remote DNS without the dig script, new chain modes, fixes. The old DNS behaviour can be restored with proxy_dns_old.

Can I do it without root?

Yes. Install once, then keep the config in ~/.proxychains/ or pass it with -f.

Will HTTP credentials do?

Yes, the http type in [ProxyList] supports basic auth. But SOCKS5 is more reliable for arbitrary TCP programs.

Can I chain several proxies?

Yes, proxychains-ng chains different types. For one Sous proxy it's not needed; an extra hop only adds latency.