[squid-users] OT - myportname ACL

Alex Rousskov rousskov at measurement-factory.com
Mon Sep 6 19:28:43 UTC 2021


On 9/5/21 1:54 AM, Grant Taylor wrote:
> On 9/4/21 1:58 PM, Alex Rousskov wrote:
>> the best way is to name your ports and use the myportname ACL instead
>> of trying to match one of the many port numbers associated with
>> transparent connections, especially when Squid has a tendency to
>> "swap" source and destination addresses in that context.
> 
> Please forgive my ignorance.  Will you please provide an example of what
> you mean by "use the myportname ACL"?  --  I'm relatively new to Squid
> (4.x) after having not used it for about 15 years.


    http_port ... name=PortGettingGreenTraffic

    acl greenTraffic myportname PortGettingGreenTraffic

    whatever_directive ... greenTraffic

Alex.


More information about the squid-users mailing list