ferreiraa
(usa Ubuntu)
Enviado em 07/01/2011 - 15:46h
Pessoal estou usando esta regra para bloquear alguns sites e extencoes listadas em horarios especificos.
Só que existem usuarios que querem bloqueio a sites de conteudo Adulto por exemplo em tempo integral.
Como fazer isto para determinado Ip. 192.168.0.2 não ter acesso a sites listados sem afetar os demais usuarios da rede?
Ex:
acl IP_ESPECIFICO src 192.168.0.2
acl sites url_regex -i "/etc/squid/sites"
acl ctrl_bloq time 16:00-23:00
http_access deny sites ctrl_bloq
http_access allow sites !IP_ESPECIFICO
Meu squid/Thundercache
#===================================================================#
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl con_clients dst 0.0.0.0/0
acl purge method PURGE
acl CONNECT method CONNECT
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 # 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 Safe_ports port 1863 # MSN
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
#===================================================================#
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow manager localhost con_clients
http_access deny manager all
#===================================================================#
icp_access allow purge localhost con_clients
icp_access deny purge all
#===================================================================#
acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
cache deny thunder_lst
cache_peer 192.150.10.2 parent 8080 0 proxy-only no-digest
dead_peer_timeout 2 seconds
cache_peer_access 192.150.10.2 allow thunder_lst
cache_peer_access 192.150.10.2 deny all
Desde já agradeço.