williamcosta
(usa Slackware)
Enviado em 29/06/2011 - 16:09h
Pessoal, não estou conseguindo configurar o Squid, ja usei e pesquisei todos tutorial sobre ele por aqui, mais não consigo bloquear nada, baixei o squid do Slackbuilds.org.O meu squid.conf está assim no meu slack:
----------------------------//----------------------------
http_port 3128
visible_hostname servidor
#cache_mgr meue-mail@gmail.com
#error_directory /usr/share/squid/errors/Portuguese
#configurar o cache
hierarchy_stoplist cgi-bin ?
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
cache_dir ufs /var/log/squid/cache 2048 16 256
refresh_pattern ^ftp: 360 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
access_log /var/log/squid/logs/access.log
#controle de acesso
acl localhost src 127.0.0.1/32
acl localnet src 192.168.0.0/24
acl manager proto cache_object
http_access allow manager localhost
http_access deny manager
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 80 # http
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 563 # nntps
acl Safe_ports port 591 # filemaker
acl Safe_ports port 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # unregistered ports
http_access deny !Safe_ports
acl connect method CONNECT
acl SSL_ports port 443 # https
acl SSL_ports port 563 # nntps
acl SSL_ports port 873 # rsync
http_access deny connect !SSL_ports
acl words url_regex -i "/etc/squid/words"
http_access deny words
http_access allow localnet
http_access allow localhost
http_access deny all
----------------------------//----------------------------
Criei o arquivo "/etc/squid/words" e coloquei nele as palavras que eu queria bloquear, como por exemplo: twitter.
Startei o squid, aparecei isso:
root@Slackware:/etc/squid# /etc/rc.d/rc.squid start
Creating swap directories: /usr/sbin/squid -z
Starting Squid: /usr/sbin/squid -F
root@Slackware:/etc/squid#
aparentemente normal, mais qdo vou testar no meu navegador o site do twitter,não bloqueia, a me ajudem ae?
Fonte que usei para configurar:
http://blog.cesar.augustus.nom.br/instalando-o-servidor-squid-no-linux.html