[squid-users] Re: Problems with maxconn

From: Xavier Cabrera <xavierc@dont-contact.us>
Date: Mon, 29 Aug 2005 15:49:59 -0500

Thanks for your answer...

I want to limited the number of connections to a webpage www.foo.com per
IP address, for example i want to user only connect 5 times to a webpage
per day.

acl badguy 192.168.1.2/255.255.255.255
acl toomuch maxconn 5
acl foodotcom dstdomain .foo.com
acl timelimit time SMTWHFA 08:00-23:00

http_access deny badguy toomuch foodotcom timelimit

Is this can work?

In cache.log i see this:

2005/08/26 17:01:54| aclMatchAclList: checking maxconn
2005/08/26 17:01:54| aclMatchAcl: checking 'acl maxconn maxconn 2'
2005/08/26 17:01:54| aclMatchAclList: no match, returning 0

Thanks!

Xavier C.

Joost de Heer wrote:

>Xavier Cabrera said:
>
>
>>Hello i try to use maxconn acl but there is not block for the ip
>>configured.... Can anyone hellpme whit this issue?
>>
>>
>
>Define what you want to do. You only limit the number of concurrent
>sessions, not the number of browsers.
>
>Joost
>
>
Received on Mon Aug 29 2005 - 14:50:06 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Sep 01 2005 - 12:00:03 MDT