Skip to main content

5 min read

How to Use Proxy Chaining with Windows and Linux

proxy chaining

Proxy chaining means sending your traffic through two or more proxy servers in a row: your device connects to proxy 1, proxy 1 connects to proxy 2, and the last proxy connects to the website. This guide explains when proxy chaining is useful, how to set it up on Linux with ProxyChains and on Windows with Proxifier, and what it costs in speed and reliability.

Need a residential proxy for the end of your chain? Get a trial on QuickProxy for only $1.99.

What is proxy chaining

In a chain, each proxy knows only the hop before it and the hop after it. The website sees the IP address of the last proxy. Your own network sees only a connection to the first proxy.

Setup Path Typical reason
Single proxy You → proxy → website Change IP or location
Corporate + external proxy You → company proxy → residential proxy → website Your network only allows traffic out through its own proxy
Privacy chain You → proxy A → proxy B → website No single proxy sees both who you are and where you go

The most common real-world case is the second one: a company or school network forces traffic through its own proxy, and you need to reach an external proxy beyond it, for example a residential proxy in another country for testing.

What is Linux proxy chaining

On Linux (and macOS), the standard tool is ProxyChains-NG. It forces the TCP connections of a program through the proxies you list.

  1. Install it: sudo apt install proxychains4 on Debian and Ubuntu, or the proxychains-ng package on other systems.
  2. Edit the configuration file, usually /etc/proxychains4.conf, or a copy in your home folder.
  3. Choose a chain mode and list your proxies at the end of the file, in order.
  4. Run a program through the chain by putting proxychains4 in front of it.
strict_chain
proxy_dns
tcp_read_time_out 15000
tcp_connect_time_out 8000

[ProxyList]
# type  host                 port  user            password
http    10.0.0.5             3128
http    gate.quickproxy.io   8000  username-cc-de  password
proxychains4 curl https://api.ipify.org

The IP printed should be the last proxy’s, here a German residential IP.

Chain modes

  • strict_chain: uses every proxy in the listed order. If one is down, the connection fails. Best when the order matters, as with a company proxy first.
  • dynamic_chain: uses the listed order but skips proxies that don’t respond.
  • random_chain: picks a random set of proxies from the list for each connection.

Keep proxy_dns switched on so that domain names are resolved through the chain rather than by your local network. ProxyChains works with ordinary dynamically linked programs. It doesn’t work with statically linked binaries, which include many programs written in Go, and it handles TCP only.

What is Windows proxy chaining

Windows’ own proxy settings accept only one proxy, so they can’t build a chain. Use a tool that supports chains, such as Proxifier:

  1. Add each proxy under Profile → Proxy Servers: address, port, protocol (HTTPS or SOCKS5) and credentials.
  2. Open Proxy Chains, create a chain, and drag the proxies into it in the order you want.
  3. Under Proxification Rules, choose which applications use the chain, and leave everything else direct.
  4. Check the result on an IP-checking site in a browser that the rule covers.

For a single proxy on Windows, the built-in settings are enough. See proxy settings for browsers and operating systems.

Possible applications of proxy chaining

  • Getting out of a restricted network: chaining your company’s required proxy with an external proxy, where your IT policy allows it.
  • Testing from other countries: developers and QA teams behind a corporate proxy can still use residential IPs for web testing and app testing.
  • Separating trust: privacy-sensitive users, such as researchers and journalists, split what each provider can see. For strong anonymity, purpose-built tools such as Tor are designed for this and are usually a better choice than a home-made chain.
  • Security research: authorised penetration testers route tools through specific exit points.

The costs of chaining

  • Speed: every hop adds latency. Two well-placed proxies are fine for browsing; long chains aren’t. See proxy speed tips.
  • Reliability: in a strict chain, any proxy failing breaks the connection.
  • Not full anonymity: your browser fingerprint, cookies and logins identify you whatever the chain. See browser fingerprinting.
  • Trust: a chain is only as private as the providers in it. Avoid free, unknown proxies.

Final tips on proxy chaining

  1. Keep the chain short: two proxies, rarely three.
  2. Put proxies in a sensible geographic order, close to you first and close to the target last.
  3. Use sticky sessions on the residential exit for anything with a login. See rotating and sticky sessions.
  4. Test each proxy on its own before chaining them, so you know which hop fails. For error codes, see the most common proxy errors.
  5. Follow your organisation’s IT policy, and use chains only for lawful purposes.

Conclusion

Proxy chaining routes traffic through several proxies in sequence. On Linux, use ProxyChains-NG with a short strict or dynamic chain; on Windows, use a tool such as Proxifier, because the system settings take only one proxy. Its most practical use is combining a required company proxy with an external one. Expect slower connections, keep chains short, and remember that a chain hides your IP, not your identity.

Add a residential exit to your chain: start a $1.99 trial.

Questions and Answers

Q1: Is proxy chaining legal?

A1: Using several proxies is legal in most countries. What you do through them must also be legal, and on work networks you should follow your IT policy.

Q2: Can I set up proxy chaining in Windows settings?

A2: No. Windows accepts one proxy. Use a tool that supports chains, such as Proxifier.

Q3: Does proxy chaining make me anonymous?

A3: Not on its own. It hides your IP from the website, but fingerprints, cookies and accounts can still identify you.

Q4: How much does proxy chaining slow my connection?

A4: Each hop adds latency. With two nearby, good-quality proxies the difference is usually acceptable for browsing; long or distant chains are noticeably slower.

Related reading

Put the article into practice.

Spin up real residential IPs in 150+ countries. Pay once or subscribe — from $11.