Re: [squid-users] Squid allow only 2 max connections per IP

From: Amos Jeffries <[email protected]>
Date: Wed, 15 Aug 2007 01:08:21 +1200

Chris Robertson wrote:
> eXtremer wrote:
>> Here is my config:
>>
>> #Recommended minimum configuration:
>> acl all src 0.0.0.0/0.0.0.0
>> acl manager proto cache_object
>> acl localhost src 127.0.0.1/255.255.255.255
>> acl to_localhost dst 127.0.0.0/8
>> acl SSL_ports port 443 563 444
>> acl Safe_ports port 80 # http
>> #acl Safe_ports port 21 # ftp
>> acl Safe_ports port 443 563 # https, snews
>> #acl Safe_ports port 70 # gopher
>> #acl Safe_ports port 210 # wais
>> #acl Safe_ports port 1025-65535 # unregistered ports
>> #acl Safe_ports port 280 # http-mgmt
>> #acl Safe_ports port 488 # gss-http
>> #acl Safe_ports port 591 # filemaker
>> #acl Safe_ports port 777 # multiling http
>> acl CONNECT method CONNECT
>>
>> #-------------Conectiuni maxime per IP-------------
>> acl maxcon maxconn 2
>>
>> #--------------Reteaua 145------------------
>> acl 145a src "/etc/squid/allow/145a.allow" acl 145b src
>> "/etc/squid/allow/145b.allow"
>>
>> acl 145c src 192.168.41.200/32
>> #-----------------------Restrictions-----------------------
>>
>> #---Restrictie ptr conectiuni maxime----
>> http_access deny maxcon all
>>
>
> The "all" here should be the first acl referenced on the line or it will
> prevent your deny_info message from being shown.
>
> e.g. "http_access deny all maxcon"
>
>> deny_info ERR_MAXCON maxcon
>>

That sounds a lot like a bug.

Amos
Received on Tue Aug 14 2007 - 07:08:29 MDT

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