rtbarreto
(usa Ubuntu)
Enviado em 16/01/2013 - 14:50h
Boa tarde galera beleza,
Estou com um problema, tenho um servidor de internet no debian 6, com o squid 3 para controle de acesso.
quando eu coloco o proxy para detectar altomaticamento as regras de bloqueio não fucionam, mais seu eu colocar o proxy manual ai funciona.
segue abaixo o meu squid3.conf
http_port 3128 transparent
acl all src
acl localnet src 192.168.1.0/24
acl manager proto cache_object
acl localhost src 127.0.0.0/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl SSL_ports port 443 # https
acl SSL_ports port 563 # https
acl SSL_ports port 873 # https
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 # wias
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
#Regras da INBRASC#
acl URL_Permitida dstdomain "/etc/squid3/regra/url_permitida"
acl Palavra_Bloqueada url_regex -i "/etc/squid3/regra/palavra_bloqueada"
acl URL_Bloqueada dstdomain "/etc/squid3/regra/url_bloqueada"
acl Download_Bloqueado url_regex -i "/etc/squid3/regra/download_bloqueado"
acl Regra_RH dstdomain "/etc/squid3/regra/regra_rh"
acl IP_Travado src "/etc/squid3/regra/ip_bloqueado"
acl Acesso_Total src "/etc/squid3/regra/acesso_total"
acl IP_RH src "/etc/squid3/regra/ip_rh"
http_access allow Acesso_Total
http_access deny IP_Travado
http_access deny Download_Bloqueado !IP_RH
http_access deny Regra_RH !IP_RH
http_access allow URL_Permitida
http_access allow manager localhost
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny URL_Bloqueada
http_access deny Palavra_Bloqueada
#http_access allow localnet
#http_access deny all
#always_direct allow all
#hierarchy_stoplist cgi-bin ?
access_log /var/log/squid3/access.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
acl apache rep_header Server ^Apache
hosts_file /etc/hosts
error_directory /usr/share/squid3/errors/Portuguese
dns_nameservers 200.204.0.10 200.204.0.138
#cache_mem 1024 MB
#maximum_object_size_in_memory 512 KB
#maximum_object_size 300 MB
#minimum_object_size 0 KB
#cache_swap_low 90
#cache_swap_high 95
cache_dir ufs /var/spool/squid3 4000 16 256
Agradeço desde ja a ajuda de sempre do pessoal do VOL