
defabio
(usa Ubuntu)
Enviado em 05/01/2010 - 14:51h
Olá, estou usando o ubuntu 9.10 desktop, e estou tentando bloquear alguns sites pelo squid,mas não está bloqueando, vou postar abaixo meu squid.conf
http_port 3128 transparent
visible_hostname ubuntu
acl all src 172.17.2.0/255.255.0.0
acl manager proto cache_object
acl localhost src 127.0.0.0/8
acl SSL_ports port 443 563
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 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 Safe_ports port 25 # smtp
acl Safe_ports port 110 # pop3
acl sitesbloqueados dstdomain "/etc/squid/sites/sitesbloqueados"
http_access deny sitesbloqueados
no arquivo sitesbloquedos está:
globo.com
www.globo.com
e não está bloqueando, oq está errado?
tbm redirecionei a porta 80
iptables -t nat -A PREROUTING -s 172.17.2.0/255.255.0.0 -p tcp --dport 80 -j REDIRECT --to-port 3128
Grato.