sonecao
(usa Ubuntu)
Enviado em 30/11/2010 - 14:45h
Fiz aqui mas não funcionou não. Veja bem como esta meu squid.
http_port 3128
visible_hostname proxy
#CACHE
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 2048 16 256
cache_access_log /var/log/squid/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl all src 192.168.1.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
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
#ATIVANDO SQUIDGUARD
redirect_program /usr/bin/squidGuard
redirect_children 8
redirector_bypass on
#BLOQUEIA MSN
acl negar_msn dstdomain "/etc/squid/bloqueio/bloquear_msn"
acl msn url_regex -i /gateway/gateway.dll
http_access deny negar_msn
http_access deny msn
#AUTENTICAÇÃO DE USUARIOS
auth_param basic realm Squid
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
acl autenticados proxy_auth REQUIRED
acl evilasio proxy_auth "/etc/squid/usuarios/evilasio"
acl total url_regex -i "/etc/squid/bloqueio/total"
acl extban url_regex -i "/etc/squid/bloqueio/extban"
http_access deny total
http_access deny extban
http_access allow evilasio !total !extban
acl carlos proxy_auth "/etc/squid/usuarios/carlos"
acl parcial url_regex -i "/etc/squid/bloqueio/parcial"
http_access allow parcial
http_access deny carlos !parcial
acl cristiano proxy_auth "/etc/squid/usuarios/cristiano"
acl restrito url_regex -i "/etc/squid/bloqueio/restrito"
http_access allow restrito
http_access deny cristiano !restrito
http_access allow autenticados total
http_access allow autenticados parcial
http_access allow autenticados restrito
acl redelocal src 192.168.1.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
deny_info
http://192.168.1.1/bloqueado1.html extban
deny_info
http://192.168.1.1/bloqueado1.html total
deny_info
http://192.168.1.1/bloqueado1.html parcial
deny_info
http://192.168.1.1/bloqueado1.html restrito