Proxy chaining is the practice of sending traffic through two or more proxy servers in a row, so each proxy forwards the request to the next one before the last proxy reaches the website. Each hop only sees the hop before it, and the website sees only the last proxy's IP address.
| Proxy chaining at a glance | |
|---|---|
| What it is | Two or more proxies used in sequence for one connection |
| What the website sees | The IP address of the last proxy in the chain |
| What each proxy sees | The hop before it and the hop after it |
| Common tools | proxychains-ng, curl's --preproxy option, upstream proxy settings in Squid and other proxy servers |
| Main costs | Extra delay per hop and one more point of failure per hop |
| Not the same as | Rotating proxies, which change the single exit IP per request |
How does proxy chaining work?
Proxy chaining works by having each proxy open a tunnel to the next proxy instead of to the website, until the last proxy in the chain makes the real request. With HTTP proxies, each hop uses the CONNECT method to open that tunnel.
- Your client connects to the first proxy and asks it to connect to the second proxy.
- The first proxy opens a tunnel to the second proxy and relays bytes through it.
- Your client, through that tunnel, asks the second proxy to connect to the website.
- The second proxy connects to the website and relays the response back along the chain.
We ran a two-hop chain in November 2026 with proxychains-ng 4.17 and two local HTTP proxies. The first proxy logged only CONNECT 127.0.0.1:8902, the address of the second proxy, while the second proxy logged CONNECT 127.0.0.1:3000, the destination. Neither hop saw both the client and the destination, which is the point of a chain.
Why do people chain proxies?
People chain proxies to meet network rules that require a specific outbound proxy, to route traffic by location, or to spread trust across more than one operator. Common setups:
- Corporate networks: an office or branch proxy forwards all traffic to a central upstream proxy, which Microsoft's web proxy chaining documentation describes for branch offices and departmental firewalls.
- Required office proxy plus an external proxy: a scraper inside a company network has to leave through the office proxy, then connects to a proxy provider for its exit IP address.
- Routing by destination: a branch office sends some sites through a local upstream proxy and others through a different one.
- Spreading trust: no single proxy operator sees both who you are and where you're going.
Tor applies the same idea with three relays and layered encryption, while an ordinary proxy chain adds no encryption of its own, as our comparison of proxy vs Tor explains.
What are the downsides of proxy chaining?
The downsides of proxy chaining are slower connections, more points of failure and more setup to maintain. Each one grows with every hop you add:
- Delay: every hop adds a network round trip, so a chain across continents is noticeably slower than one proxy.
- Failure: if any hop in a strict chain is down, the whole connection fails.
- Trust: each operator in the chain can log the traffic it relays, and plain HTTP traffic is readable at every hop.
- Complexity: credentials, ports and protocols have to line up at every hop, which makes errors harder to trace.
How do you chain proxies?
You chain proxies with a tool that knows the order of the hops, such as proxychains-ng on Linux and other Unix-like systems, curl's --preproxy option, or the upstream proxy setting in your proxy server. proxychains-ng hooks an app's network calls and sends them through the proxies listed in its config file, which supports HTTP, SOCKS4 and SOCKS5:
strict_chain
proxy_dns
[ProxyList]
http 192.0.2.10 8080
socks5 198.51.100.20 1080 user1 pass123proxychains-ng 4.17 wants an IP address for the first proxy in the list, and accepts a hostname only for later proxies in a strict chain with proxy_dns on. Then run any command through the chain:
proxychains4 -f ./proxychains.conf curl https://checkip.amazonaws.comFor a quick two-hop chain without extra software, curl can send traffic through a SOCKS proxy first and an HTTP proxy second:
curl --preproxy socks5://192.0.2.10:1080 -x http://proxy.example.com:8080 https://checkip.amazonaws.comWe tested both methods in November 2026 against local proxies and a local test page, using proxychains-ng 4.17 and curl 8.5.0, and both reached the destination through two hops.
What are strict, dynamic and random proxy chains?
Strict, dynamic and random proxy chains are the chain modes in proxychains-ng, and they decide what happens when a proxy in the list is down and which proxies get used. The default proxychains.conf describes four modes:
| Mode | How it uses the proxy list | If a proxy is down |
|---|---|---|
strict_chain |
Every proxy, in order | The connection fails |
dynamic_chain |
Every working proxy, in order | The dead proxy is skipped |
round_robin_chain |
chain_len proxies, taking turns through the list |
Skipped |
random_chain |
chain_len proxies picked at random |
Skipped |
In our test, a strict chain with a dead first proxy timed out and returned nothing, while a dynamic chain with the same list skipped the dead proxy and completed through the second one.
Is proxy chaining the same as rotating proxies?
No, proxy chaining is not the same as rotating proxies: chaining sends one connection through several proxies in a row, while rotating proxies send each request through a single proxy whose exit IP address changes between requests. For web scraping, rotation is what spreads requests across many IP addresses, and an extra hop only adds delay.
Rayobyte proxies accept HTTPS traffic through CONNECT on port 8000 or 1080 on every product, so they can sit behind an office proxy that allows CONNECT to those ports, per the protocols docs.
Rayobyte's rotating proxies change the IP address on each request, and residential proxies use IP addresses from home internet connections. Our guide to IP rotation explains how rotation works, and what a proxy server is covers the basics.