Re: ACL with the same name

Alex Rousskov <[email protected]> Thu, 17 Apr 2025 00:22:27 +0300
Newsgroups gmane.comp.web.squid.general
Message-ID <196407b5638.282b.0fa0e86c8d2ee43f749db760f8bca319@measurement-factory.com>
On April 16, 2025 23:19:13 Francesco Chemolli <[email protected]> wrote:

> acl SSL_ports port 82
> acl SSL_ports port 443
> acl SSL_ports port 563
>
> is exactly the same as:
>
> acl SSL_ports port 82 443 563
>
>
> ACLs with the same name need to be of the same type, and they get appended


To be more precise, their conditions are ORed.

For more information, see the following wiki page, especially its Notes 
section:
https://wiki.squid-cache.org/SquidFaq/SquidAcl


HTH,

Alex.


>
>
> On Wed, Apr 16, 2025 at 5:48 PM Renzo Marengo <[email protected]> wrote:
>>
>> I don't understand what happens if I have multiple acl with same name, e.g. 
>> (only for educational purposes)
>>
>> acl SSL_ports port 82           # ImageScope - Anatomia Patologica
>> acl SSL_ports port 443          # https
>> acl SSL_ports port 563          # news
>>
>> http_access deny CONNECT !SSL_ports
>>
>> SSL_port includes last acl that is 563 or all ports ?
>> Wheh http_access directive is processed, all 3 SSL_ports acl are scanned ? 
>> Or only the last one is  checked ?
>> _______________________________________________
>> squid-users mailing list
>> [email protected]
>> https://lists.squid-cache.org/listinfo/squid-users
>
>
>
> --
>    Francesco
> _______________________________________________
> squid-users mailing list
> [email protected]
> https://lists.squid-cache.org/listinfo/squid-users




_______________________________________________
squid-users mailing list
[email protected]
https://lists.squid-cache.org/listinfo/squid-users