#PROXY TRANSPARENTE http_port 3128 #http_port 3128 transparent #http_port 192.168.80.1:3128 transparent #http_port 3128 intercept -> #Testado anteriormente sem sucesso. #http_port 3128 transparent -> #Testado anteriormente sem sucesso. error_directory /usr/share/squid3/errors/Portuguese #HOSTNAME visible_hostname SERVIDOR #E-MAIL cache_mgr sergio.abraao@yahoo.com.br #USUÁRIO E GRUPO DOS ARQUIVOS E PROCESSOS DO SERVIÇO cache_effective_user proxy #ACESSO LOG cache_log /var/log/squid3/cache.log #DECLARAÇÃO DE ACLS PARA LIBERAÇÃO DE PORTAS acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https 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 purge method PURGE acl CONNECT method CONNECT # BLOQUEIO DE SITES acl video urlpath_regex .wma$ .asf$ .mov$ mpg$ .mpeg$ .avi$ acl audio urlpath_regex .mp3$ .wav$ .mid$ acl palavrasproibidas dstdom_regex "/etc/squid3/palavrasproibidas" acl PalavrasBloqueadas dstdomain "/etc/squid3/palavras" acl SitesBloqueados url_regex "/etc/squid3/sitesbloqueados" ################## ##USO DE REGRAS## ################## http_access allow !Safe_ports http_access deny CONNECT !SSL_ports ################## #LINKS DO BLOQUEIO# ################## http_access deny PalavrasBloqueadas http_access deny SitesBloqueados http_access deny palavrasproibidas http_access deny audio http_access deny video # Only allow cachemgr access from localhost http_access allow localhost manager http_access deny manager http_access allow all cache_swap_high 95 cache_swap_low 90 #CACHE SQUID cache_mem 256 MB