I
I
Igor2013-10-23 10:22:46
linux
Igor, 2013-10-23 10:22:46

How to forward connections from different clients sequentially to different chains of proxy servers?

I apologize for such a title of the question, but I could not formulate more precisely.

Situation: Ubuntu Server 13.04. Should redirect HTTP traffic from different clients through different proxy chains.

What do I mean by proxy chain and why are they different.

On the same server, there is a Squid proxy, which should perform some kind of censorship of HTTP traffic for all clients.
After this manipulation, the traffic should go to the remote proxy. This remote proxy is different for each client.

Those. the scheme of work is as follows:

IP_client_ 1 ->Squid_ubuntu_server->dst_proxy_ 1

IP_client_ 2 ->Squid_ubuntu_server->dst_proxy_ 2

IP_client_ 3->Squid_ubuntu_server->dst_proxy_ 3

And so on.

And, of course, clients should get back the result of working with a proxy.

Question: how to set it all up? I understand that you need to use iptables to redirect traffic. But I still have some confusion in my head about how to send traffic after Squid to the right proxy, depending on the client's address.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alukardd, 2013-10-23
@Alukardd

iptables has nothing to do with it ... You
register all parent proxies through the cache_peer directive . And then you can determine which client through which proxy will go further using the cache_peer_access directive .
There are enough implementation examples on the internet, so you can tweak the settings to suit your needs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question