flsouza01
(usa Ubuntu)
Enviado em 19/02/2016 - 14:51h
Obrigado pela rápida resposta:
O Squid foi reiniciado usando o comando sudo restart squid3
Abaixo segue o squid.conf
http_port 3128
visible_hostname FIREWALL
#error_directory /usr/share/squid3/errors/pt-br
cache_mem 128 MB
cache_swap_low 85
cache_swap_high 95
maximum_object_size 5048 KB
minimum_object_size 110 KB
cache_dir ufs /var/spool/squid3 1024 16 128
error_directory /usr/share/squid3/errors/pt-br
log
cache_access_log /var/log/squid3/access.log
#ACL
acl local src 127.0.0.1/32
acl rede src 15.191.0.0/24;
acl rede src 15.191.1.0/24;
acl msndll url_regex -i /gateway/gateway.dll
acl dominios_bloqueados url_regex -i "/etc/squid3/controle/dominios_bloqueados.txt"
acl streaming rep_mime_type -i "/etc/squid3/controle/aplicativo.txt"
acl proibir_musica urlpath_regex -i "/etc/squid3/controle/audio_block.txt"
acl liberados url_regex -i "/etc/squid3/controle/dominios_liberados.txt"
#acl liberados dstdomain -i "/etc/squid3/controle/dominios_liberados.txt"
# GRUPOS
acl grupo_negado src "/etc/squid3/grupos/grupo_negado.txt"
acl grupo_restrito src "/etc/squid3/grupos/grupo_restrito.txt"
acl grupo_livre src "/etc/squid3/grupos/grupo_livre.txt"
#################################################
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 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl Safe_ports port 25 # portas altas
acl Safe_ports port 110 # portas altas
acl Safe_ports port 1194 # portas altas
acl Safe_ports port 995 # portas altas
acl Safe_ports port 465 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
# Controle de Banda
delay_pools 1
delay_class 1 2
delay_parameters 1 102400000/102400000 102400000/102400000
delay_access 1 allow rede
# Regras
http_access allow local
http_access allow liberados
#http_reply_access allow liberados
#http_reply_access allow grupo_livre
http_access allow grupo_livre
#http_reply_access deny streaming
#http_reply_access deny proibir_musica
http_access deny dominios_bloqueados
http_access allow rede grupo_restrito
http_access allow !Safe_ports