Re: [squid-users] limit conn

From: Juraj Sakala <juraj.sakala@dont-contact.us>
Date: Mon, 25 Jun 2007 08:53:41 +0200

Tek Bahadur Limbu wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, 25 Jun 2007 12:02:01 +0700
> "ArioS" <christian@wanxp.com> wrote:
>
>
>> Dear,
>>
>>
>> Is it possible to apply limit conn in squid ? ex : i want to limit only
>> accept 10 connection each ip.
>>
>>
>
> Hi ArioS,
>
> I don't think that Squid can limit connections based on individual IPs. However from this FAQ below, you can limit the number of connnections based on a network.
>
> http://wiki.squid-cache.org/SquidFaq/SquidAcl#head-1860f23748bd13d5c26b127a78559d1b068835f9
>
Yes it can, you just need specify IP address instead of network adress
for example

acl losers src 1.2.3.1/32
acl 5CONN maxconn 5
http_access deny 5CONN losers

> Which OS are you running Squid? If on Linux, I think you can limit connections per IP using IPTABLES. In BSDs, you can do that with PF.
>
> As always, Google is your friend!
>
>
> Thanking you...
>
>
>
>> Thx b4
>>
>>
>>
>
>
> - --
>
>
> With best regards and good wishes,
>
> Yours sincerely,
>
> Tek Bahadur Limbu
>
> (TAG/TDG Group)
> Jwl Systems Department
>
> Worldlink Communications Pvt. Ltd.
>
> Jawalakhel, Nepal
>
> http://www.wlink.com.np
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (FreeBSD)
>
> iD8DBQFGf2HOVrOl+eVhOvYRArwAAJ4tkv9mvOUcQmV4vthzMhGKrMB+IgCeKr4f
> TRonUIe2iRzaHoJk6WfMsb8=
> =alS8
> -----END PGP SIGNATURE-----
>
Received on Mon Jun 25 2007 - 00:53:24 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:04 MDT