
Enviado em 18/03/2015 - 13:51h
Boa tarde a todos,http_port 80
# http_port 3128 transparent (caso seja transparente)
visible_hostname SRV-RA-02-LNX-PROXY
#client_netmask 255.255.255.0 (Desabilitando a máara de rede, aparecerá IP que no access.log)
dns_nameservers 180.188.188.2
dns_nameservers 180.188.223.33
dns_nameservers 180.188.180.2
dns_nameservers 180.188.223.42
# Configuracoes de cache, dono, logs, errors
cache_effective_user squid
cache_effective_group squid
cache_mem 128 MB
cache_dir diskd /etc/squid/cache 10000 32 256 Q1=64 Q2=72
cache_access_log /etc/squid/logs/access.log
cache_log /etc/squid/logs/cache.log
cache_store_log /etc/squid/logs/store.log
error_directory /usr/share/squid/errors/Portuguese
# Atualizaç do cache
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic children 5
auth_param basic realm PMJ-BA Proxy
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# IP's da rede local com tudo liberado
#acl ip_diretoria src "/etc/squid/ip_diretoria"
#http_access allow ip_diretoria
# IP's da rede local bloqueados
#acl ip_bloqueado src "/etc/squid/ip_bloqueado"
#http_access deny ip_bloqueado
# Site bloqueado por domío
#acl dominio_bloqueado dstdomain "/etc/squid/dominio_bloqueado"
#http_access deny dominio_bloqueado
# Regras de bloqueio de site por palavras (ex: o termo put estáloqueado, porém a palavra deputado pode ser acessada)
#acl palavra url_regex -i "/etc/squid/palavras_negadas"
#acl palavras_permitidas url_regex -i "/etc/squid/palavras_permitidas"
#http_access deny palavra !palavras_permitidas
# ACL's da rede local
acl REDE_INTERNA src 10.12.0.0/16
acl REDE_INTERNA src 10.29.0.0/16
acl REDE_INTERNA src 10.120.0.0/16
acl REDE_INTERNA src 192.168.208.0/24
acl REDE_INTERNA src 192.168.209.0/24
acl REDE_INTERNA src 172.30.0.0/16
acl REDE_INTERNA src 10.30.0.0/16
acl REDE_INTERNA src 10.128.0.0/16
# ACL global e portas
#acl all src all
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/32
acl Safe_ports port 10000 # webmin
acl Safe_ports port 631 # cups
acl Safe_ports port 901 # samba
acl SSL_ports port 443 563 1834 1863 4242 8443 # SSL
acl Safe_ports port 80 8080 # 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 1025-65535 # unregistered ports
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 CONNECT method CONNECT
# Validaç das redes local
http_access allow REDE_INTERNA
http_access allow Safe_ports
http_access allow manager localhost
http_access deny manager
#http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access deny all !REDE_INTERNA
icp_access deny all !REDE_INTERNA
Cirurgia para acelerar o openSUSE em HD externo via USB
Void Server como Domain Control
Modo Simples de Baixar e Usar o bash-completion
Monitorando o Preço do Bitcoin ou sua Cripto Favorita em Tempo Real com um Widget Flutuante
Atualizar Linux Mint 22.2 para 22.3 beta
Jogar games da Battle.net no Linux com Faugus Launcher
Como fazer a Instalação de aplicativos para acesso remoto ao Linux
Conky, alerta de temperatura alta (5)
Instalação do cosmic no archlinux (0)
Formas seguras de instalar Debian Sid [RESOLVIDO] (14)









