diiegosantos90
(usa Debian)
Enviado em 28/03/2018 - 16:56h
#Liberando LocalHost
acl all src all
http_port 3128 transparent
acl manager proto cache_object
acl localhost src 127.0.0.1/32/255.255.255.255
cache_mem 128 MB -> PARÂMETRO NOVO
maximum_object_size 512 MB -> PARÂMETRO NOVO
minimum_object_size 0 KB -> PARÂMETRO NOVO
cache_swap_low 90 -> PARÂMETRO NOVO
cache_swap_high 95 -> PARÂMETRO NOVO
cache_dir aufs /var/spool/squid 2048 16 256 -> PARÂMETRO NOVO
# Portas Liberadas
acl SSL_ports port 443
acl SSL_ports port 563
acl SSL_ports port 873
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 631
acl Safe_ports port 873
acl Safe_ports port 901
acl Safe_ports port 7010
acl Safe_ports port 8080
acl Safe_ports port 4881
acl purge method PURGE
acl CONNECT method CONNECT
#Acesso LocalHost
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
# Ip Liberado Total
# Natalie Cabo
acl liberatotal src 10.0.0.116
http_access allow liberatotal
miss_access allow liberatotal
# Liberados Almoco
#acl liberadoalmoco src 192.168.2.101
#acl intervalo time MTWHF 12:00-13:00
#http_access allow liberadoalmoco intervalo
#miss_access allow liberadoalmoco intervalo
# UOL
# Roberta Financeiro
acl liberauol src 10.0.0.109
acl whitelist url_regex -i "/etc/squid/whitelist"
http_access allow liberauol whitelist
#BlackList
acl listanegra url_regex -i "/etc/squid/listanegra"
http_access deny listanegra
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#Ips Liberados
acl ipliberado src 10.0.0.0/24/255.255.255.0
http_access allow ipliberado
miss_access allow ipliberado
http_access allow localhost
http_access deny all
#Apontar todas as portas primeiramente para a do squid
http_port 10.0.0.1:3128
#Log de acesso e monitoramento
access_log /var/log/squid/access.log
hosts_file /etc/hosts
coredump_dir /var/spool/squid
#Fim