Re: [squid-users] Limit number of clients?

From: <b52@dont-contact.us>
Date: Wed, 12 Apr 2006 12:29:03 +0200 (CEST)

>>
>> Hi folks,
>>
>> I am interrested in limiting the number of clients which can use our
squid. I am not asking how to limit the connections of one ip address.
Well is the following possible?
>> I would like squid to answer lets say requests from 1000 ip addresses
or clients and redirect all clients above 1000 to a special "resource
limit"
>> page. The 1000 ips are official ips so they are all external.
>> After a given time lets say 300 seconds squid should remove this ip out of
>> the acceptlist so one new client can connect without the "resource limit"
>> page.
>>
>> Has someone a clue how to do this? Even without squid?
>> Any help is greatly appreciated.
>> Thank you, b52
>>
>>
>
> I can't see any reason , for organising a :
>
> - Random denial of service setup with SQUID.
>
> Why do you think this would be needed ?
>
> M
>
>

There is a webserver/database construction behind the squid where I am not
root on and they have a too much load problem on their database. I provide
several proxies in front of their webserver and because they are not able
to restrict the amount of clients I thought to do that with squid but I
don't have feedback about the load of their crap.
Well its not a random denial of service setup, It is first come first
served for X clients for Y seconds each. Every client more than X will be
asked to try it again later.
An Idea how to do that? I tried already iptables to count the sessions but
I don't know how to implement this...

Thanks, b52
Received on Wed Apr 12 2006 - 04:29:09 MDT

This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT