Bom dia a todos!
Estou precisando urgentemente dar uma melhorada no meu squid. Vejo que ele anda meio lento... Eu preciso criar 3 grupos, sendo um diretoria, outro gerentes e o outro é para os colaboradores da nossa empresa.
O primeiro grupo, diretoria, estou precisando criar uma regra no qual eles naveguem a 2 megas, e baixem qualquer coisa a 100kbps, o segundo grupo naveguem a 1 mega e baixem a 100kbps, o terceiro grupo navegue a 600kbps e baixa aquivos a 50kbps.
Ou seja, preciso limitar a essa navegação para alguns.
abaixo esta meu squid.conf
####################################################SQUID.CONF###############################################
http_port 3128 transparent
visible_hostname lacqua
cache_mem 300 MB
maximum_object_size_in_memory 512 KB
maximum_object_size 4000 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 10000 16 256
cache_access_log /var/log/squid/access.log
error_directory /usr/share/squid/errors/pt-br
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl redelocal src 150.149.148.0/24
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
###############################################################CONTROLE DE ACESSO LACQUA###########################################################################
acl admin src "/etc/squid/ip-acesso-total"
acl diretoria arp "/etc/squid/mac_diretoria"
acl parcial src "/etc/squid/ip-acesso-parcial"
acl permitir src "/etc/squid/liberado"
acl sites url_regex "/etc/squid/site"
acl downloads url_regex -i "/etc/squid/download"
acl streaming rep_mime_type ^video/x-ms-asf
[ATE TENTEI, MAS SEM SUCESSO]
delay_pools 2
delay_class 1 2
delay_paramenters 1 -1/-1 -1/-1
delay_access 1 allow diretoria
delay_class 2 2
delay_parameters 2 131000/131000 16000/16000
delay_access 2 allow parcial
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow admin
http_access allow diretoria
http_access allow permitir
http_reply_access deny streaming
http_access deny downloads
http_access deny sites
http_access allow parcial
http_access allow localhost
http_access deny redelocal
http_access deny all