Re: [squid-dev] squid to assign dedicated ip to clients behind same network/router

2018-06-17 Thread Amos Jeffries
[ this dev list is not appropriate for proxy usage questions. Please
address questions and requests for help using Squid to the squid-users
mailign list. ]


On 12/06/18 07:48, desis wrote:
> 
> I have successfully installed squid server (On Centos) .. My servers has

Which version of Squid on what version of CentOS.

Squid versions older than the 3.5 series are not supported by us. AFAIK
the problem you describe does not happen with a correctly configured
Squid-3.5.


> five ip addresses . I have configured all 5 ip addresses for squid... so
> clients can connect with any ip address and with tcp_outgoing_address client
> will get same ip address from which ip address he is connecting.
> 
> But the problem is all my clients are behind a same router and having the
> same public ip address.

The joys of NAT and IPv4-only networks.

The only real solution to that is to upgrade your network such that it
does not NAT clients into the same IP address. You may require IPv6 to
achieve that.


> 
> Now the problem is .. Let see client one use server 1.1.1.0 ip address to
> connect squid first, he is getting server 1.1.1.0 ip address for his public
> ip.
> 
> Now Client two using server 2.2.2.0 ip address to connect squid , he is
> getting server 2.2.2.0 ip adddress for his public ip ...
> 
> But at this moment client's one public ip address is changing to 2.2.2.0 .

There is nothing Squid can do about a *client* IP address. All it can do
it *request* the OS to use certain outgoing IP on its own connections.


Going forward you need to be aware that HTTP is a multiplexing protocol.
Any connection between proxy and a server can be used by any client who
needs content from that server.

This is how HTTP is designed to work. To multiplex connections and
maximize pipeline efficiencies, in order to reduce the pressures of port
number consumption. Without it proxies can flood the network with
short-lived TCP connections and consume all available ports on every
machine along the traffic path.


Amos
___
squid-dev mailing list
squid-dev@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-dev


Re: [squid-dev] Squid test-suite / benchmarks

2018-06-17 Thread Amos Jeffries
On 17/06/18 20:36, Stoica Bogdan Alexandru wrote:
> Hi all,
> 
> 
> I’ve asked the same questions on the squid-user distribution list, but
> perhaps is better to ask the developers.
> 
>  
> 
> We’re a small research team interested in benchmarking Squid for a
> research project.
> 
> In short, we would like to exercise as much code as possible (i.e., good
> code coverage).
> 
> Do you have any suggestions on the which benchmarks to use? Or, even
> better, is there anything that Squid uses internally that can be shared
> for research?

The internal testing is pretty much what Alex and I already mentioned on
squid-users.

Others on the list may have extra ideas. Though if you don't get any
reply than this you're not being ignored, just means none has any better
ideas.


Cheers
Amos
___
squid-dev mailing list
squid-dev@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-dev


[squid-dev] Squid test-suite / benchmarks

2018-06-17 Thread Stoica Bogdan Alexandru
Hi all,

I've asked the same questions on the squid-user distribution list, but perhaps 
is better to ask the developers.

We're a small research team interested in benchmarking Squid for a research 
project.
In short, we would like to exercise as much code as possible (i.e., good code 
coverage).
Do you have any suggestions on the which benchmarks to use? Or, even better, is 
there anything that Squid uses internally that can be shared for research?

Thanks a lot for your help!

___
squid-dev mailing list
squid-dev@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-dev