pardalz
(usa Debian)
Enviado em 22/02/2010 - 15:18h
Vish... olha amigo, nao estou tentando te tirar do serio nao, mas fiz desse jeito ae e ainda continua entrando normal... será que vc não adicionou alguma regra no seu firewall nao?
olha o jeito q eu deixei meu squid.conf
http_port 3128 transparent
acl QUERY urlpath_regex cgi-bin \?
dns_nameservers 200.225.197.34 200.225.197.37
visible_hostname maggi.william@gmail.com
#################
# Cache-Options #
#################
no_cache deny QUERY
#cache_dir ufs /var/spool/squid 400 16 256
cache_mem 94 MB
maximum_object_size 32000 KB
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
access_log /var/log/squid/access.log squid
#########
# ACL's #
#########
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl https_port 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 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
##################
# Personalizadas #
##################
acl ip_total src "/etc/squid/rules/ip_total"
acl ip_liberados src "/etc/squid/rules/ip_liberados"
acl ip_bloqueados src "/etc/squid/rules/ip_bloqueados"
acl url_bad dstdomain "/etc/squid/rules/url_bad"
acl url_ok dstdomain "/etc/squid/rules/url_ok"
acl bad_word url_regex "/etc/squid/rules/bad_word"
acl files urlpath_regex .scr$ .divx$ .div$ .tix$ .qt$ .mpeg$ .mpg$ .mov$ .bat$ .com$ .mp4$ .exe$ .zip$ .rar$ .iso$ .wma$ .wmv$ .mp3$ .rmvb$ .avi$ .flv$ .rm$
acl files_bloqueados src "/etc/squid/rules/download"
acl acesso_direto dstdomain "/etc/squid/rules/acesso_direto"
#acl portamsn port 1863 569 1080
#acl HOST_MSN src 192.168.0.0/24
#acl Negar_MSN dstdomain "/etc/squid/msn/msn"
#acl Negar_MSN2 url_regex "/etc/squid/msn/msn2"
#acl msn url_regex -i gateway.dll
acl msn_liberado src 192.168.0.10 #"/etc/squid/msn/liberados"
#acl MSNall req_mime_type -i ^application/x-msn-messenger$
acl msn url_regex passport.com #svcs.microsoft.com
acl msn url_regex gateway.dll #PresenceIM.dll
##################
# Access Control #
##################
#http_access deny portamsn
http_access deny msn
http_access allow msn_liberado
#http_access deny HOST_MSN
#http_access deny https_port
#http_access deny Negar_MSN
#http_access deny Negar_MSN2
#http_access deny portamsn
#http_access allow msn_liberado
#http_access deny MSNall
#http_access deny msn
#http_access allow ip_total
#http_access allow url_ok
#http_access deny files
#http_access deny url_bad
#http_access deny bad_word
#http_access deny ip_bloqueados
#http_access allow ip_liberados
#http_access deny files
#http_access allow files_bloqueados
#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
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
error_directory /usr/share/squid/errors/Portuguese
E eu ainda comentei todas as minhas outras regras, só para testar...
aguardo!