RE: [squid-users] limiting the number of simultaneous clientconnections

From: Robert Collins <robert.collins@dont-contact.us>
Date: Mon, 21 May 2001 17:40:29 +1000

Without checking the source, IIRc it's

acl someuser src 1.2.3.4
acl twoconn maxconn 2

http_access deny someuser twoconn

max conns only match when you have that many or more connections, so to
limit someone you can either use
http_access allow !twoconn
or
http_access deny twoconn

Rob
 

> -----Original Message-----
> From: claude [mailto:ubik@telecomsm.multiarea.ro]
> Sent: Monday, May 21, 2001 5:42 PM
> To: Colin Campbell
> Cc: squid-users@squid-cache.org
> Subject: Re: [squid-users] limiting the number of simultaneous
> clientconnections
>
>
> I did that, but the client gets now "access denied" even if
> i've specified
> 2 max conns, and even if the client has only one connection
> to squid...
>
> > > Thanks, it's acl aclname maxconn number, but how can I
> specify the client
> > > here ? I tried acl already_defined_src_acl maxconn 1, but
> I get parse
> > > error. How can I specify the client's IP in this acl definition ?
> >
> > You need, for example
> >
> > acl someuser src 1.2.3.4
> > acl one maxconn 1
> >
> > http_access allow someuser one
> >
> > (I think)
> > Colin
> >
> >
>
>
Received on Mon May 21 2001 - 01:49:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:12 MST