[squid-users] delay pool not workin

Amos Jeffries squid3 at treenet.co.nz
Fri Sep 22 15:12:34 UTC 2017


On 23/09/17 02:31, Alex Gutiérrez Martínez wrote:
> Could someone be so kind  to explain to me why my rules do not work on
> my delays pools?
> 
...
> 
> Thanks again Mr. Jeffries, i change my delay to:
> 
> acl navegación src 192.168.9.0/24
> 
> acl lento dstdomain "/etc/squid3/bloqueo/lento"   --> .youtube.com
> 
> acl sociales dstdomain "/etc/squid3/bloqueo/sociales"  --> .linkedin.com
> 
> acl correos dstdomain "/etc/squid3/bloqueo/correos" -->.mail.yahoo.com
> 
> acl extensiones urlpath_regex -i "/etc/squid3/bloqueo/listaextensiones" 
> --> \.mkv$
> 
> delay_pools 3
> 
> #Canal 1 extensiones.
> delay_class 1 1
> delay_parameters 1 32768/32768
> delay_access 1 allow extensiones !navegacion !lento !sociales !correos
> delay_access 1 deny all
> 
> #Canal 2 para usuarios.
> delay_class 2 1
> delay_parameters 2 65536/65536
> delay_access 2 allow navegacion !lento !sociales !correos !extensiones
> delay_access 2 deny all
> 
> #Canal 3 para cosas lentas.
> delay_class 3 1
> delay_parameters 3 8192/16384
> delay_access 3 allow lento sociales correos !navegacion !extensiones
> delay_access 3 deny all
> 
> But my sqstat shows the use of delay pool # 2, # 1 and # 3 are disable. 
> On youtube shows delay_pool=0.
> 
> I put the following configuration but I was unable to make it work. 
> Again only delay pool # 2 was the only who worked this time.


Pool #3 requires the domain name of a single transaction to 
simultaneously be *mail.yahoo.com AND *.linkedin.com AND *.youtube.com
  Obviously that is impossible, so nothing can match the line that allows.

Pool #1 should match a few things. But probably not what you are testing 
with.

I suggest you try to re-write your ACLs in a simpler way with less '!' 
(not) modifiers. The way you are compressing lots of things into each 
line is no faster than multiple lines, but much harder to understand 
what is going on.


Amos


More information about the squid-users mailing list