Skip to content

Test your real workload on 1 TB of free traffic, until December 11.Claim 1 TB free

What Is Proxy Chaining?

Proxy chaining sends traffic through two or more proxies in a row. Each hop sees only its neighbors, and the website sees the last proxy's IP address.

Shafayat HossainPublished 5 min read

Rayobyte is the proxy and scraping network priced for the AI era. We own our residential network and run heavy compute on bare metal, so Residential Proxies cost from $0.0095/GB.Start free trial

AI made it possible to use far more of the web than anyone collected before.Read the full thesis

On this page 6 sections
  1. How does proxy chaining work?
  2. Why do people chain proxies?
  3. What are the downsides of proxy chaining?
  4. How do you chain proxies?
  5. What are strict, dynamic and random proxy chains?
  6. Is proxy chaining the same as rotating proxies?

Residential Proxies from $0.0095/GB.

We own our residential network and run heavy compute on bare metal, so collecting more costs less.

Start free trial

Free trial on self-serve products · No credit card

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.

  1. Your client connects to the first proxy and asks it to connect to the second proxy.
  2. The first proxy opens a tunnel to the second proxy and relays bytes through it.
  3. Your client, through that tunnel, asks the second proxy to connect to the website.
  4. 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 pass123

proxychains-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:

Bash
proxychains4 -f ./proxychains.conf curl https://checkip.amazonaws.com

For a quick two-hop chain without extra software, curl can send traffic through a SOCKS proxy first and an HTTP proxy second:

Bash
curl --preproxy socks5://192.0.2.10:1080 -x http://proxy.example.com:8080 https://checkip.amazonaws.com

We 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.

Share this post

// written by

Shafayat Hossain

Product Marketing Manager

Shafayat Hossain is the Product Marketing Manager at Rayobyte.

// faq

Frequently asked questions

Does proxy chaining make you anonymous?

Proxy chaining makes it harder for any single proxy to link you to your destination, but it doesn't make you anonymous on its own. A plain proxy chain adds no encryption, so every hop can read unencrypted traffic, and logging in to an account or a distinctive browser setup can still identify you to the website.

How many proxies should be in a chain?

Most proxy chains need only two proxies, such as a required office proxy followed by an external proxy. Each extra proxy adds delay and another point of failure, and in a strict chain one dead proxy breaks the whole connection. Add a third hop only when a specific network or trust requirement calls for it.

Does proxy chaining slow down your connection?

Yes, proxy chaining slows down your connection, because every proxy in the chain adds at least one network round trip and its own processing time. Two proxies in the same region add little delay, while proxies on different continents can add hundreds of milliseconds to each request. Keep chains short and pick hops close to each other.

What is an upstream proxy?

An upstream proxy is the next proxy in a chain, the one a proxy server forwards its requests to instead of contacting websites directly. Squid calls it a parent proxy. Companies set an upstream proxy so branch-office or departmental proxies send all internet traffic through one central proxy for filtering, caching and logging.

Collect more. Spend less.

The proxy and scraping network priced for the AI era.

// self-serve

Start in minutes

Every self-serve product has a free trial, and no credit card is needed.

Start free trial
// for teams

Talk to sales

Sales offers volume pricing below our published rates, custom plans and a direct line to the people who run the network.

Contact sales

AI made it possible to use far more of the web than anyone collected before. Read the full thesis