alessander
(usa CentOS)
Enviado em 01/12/2009 - 10:10h
ABAIXO CONFIGURAÇÃO DO MEU SQUID
___________________________________________________________________________
http_port 3128
visible_hostname proxy
acl all src 0.0.0.0/0.0.0.0
ie_refresh on
ftp_passive on
cache_mem 32 MB # Cache na memoria RAM
maximum_object_size_in_memory 64 KB # Tamanho maximo para colocar na memoria RAM
maximum_object_size 512 MB # Cache de disco
minimum_object_size 0 KB # Cache de disco
cache_swap_low 90 # Descartar aquivos antigos quando cache atingir o limite
cache_swap_high 95 # Idem acima
cache_dir ufs /var/spool/squid/cache 2048 16 256
#16 pastas com 256 subpastas
cache_access_log /var/log/squid/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
authenticate_program /usr/lib/squid/ncsa_auth /etc/squid/passwd
#BLOQUEIO DE INTERNET
#Bloqueio por IP
#acl bloq_ip src "/etc/squid/bloq_ip.txt"
#Bloqueio internet por MAC
#acl bloq_mac arp "/etc/squid/bloq_mac.txt"
# CRIA ACL LIBERA MSN
#acl LIBERA_MSN url_regex -i "/etc/squid/msn.txt"
#LIBERA SITES ESPECIFICOS
acl LIBERA_SITES url_regex -i "/etc/squid/url_liberadas.txt"
acl autenticados proxy_auth REQUIRED
acl acesso_total src "/etc/squid/acesso_total"
acl extensoes url_regex -i "/etc/squid/extensoes"
acl almoco time 12:03-13:20
acl ate_meia_noite time 18:05-23:59
acl madrugada time 00:00-07:55
acl palavras dstdom_regex "/etc/squid/palavras"
acl sites_proibido dstdomain "/etc/squid/sites_proibido"
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 53 # DNS
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 137 # smb
acl Safe_ports port 138 # smb
acl Safe_ports port 139 # smb
acl Safe_ports port 210 # wais
acl Safe_ports port 1521 # Oracle
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 631 # CUPS - Servidor de impressao
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl portas_MSN port 1863 #MSN
acl Safe_ports port 25 110 # SMTP, POP
acl purge method PURGE
acl CONNECT method CONNECT
acl diretoria src 192.168.1.150
#acl ips_bloqueados src 192.168.1.6 192.168.1.5
acl permitir_extensoes src 192.168.2.200
acl url_liberadas url_regex -i "/etc/squid/url_liberadas.txt"
http_access allow autenticados
http_access allow acesso_total
http_access allow diretoria
http_access allow url_liberadas
http_access allow permitir_extensoes
http_access deny extensoes
http_access deny almoco
http_access allow ate_meia_noite
http_access allow madrugada
http_access deny palavras
#http_access allow LIBERA_MSN
#http_access deny bloq_ip
http_access deny sites_proibido
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
#auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
auth_param basic program /usr/lib/squid/ncsa_auth
#acl autenticados proxy_auth REQUIRED
http_access allow autenticados
acl redelocal src 192.168.2.0/24
#http_access deny ips_bloqueados
http_access allow localhost
###http_access allow redelocal !maquinas_restritas
http_access allow redelocal
#icp_access allow all
http_access deny all
_____________________________________________________________________
OBRIGADO GALERA!