Bloquear acesso a sites

1. Bloquear acesso a sites

secinformatica
secinfo26

(usa Ubuntu)

Enviado em 06/06/2012 - 16:16h

este é meu squid.conf, eu nao consigo bloquear os sites de jeito nenhum,ja fiz de varias formas, adicionei pelo webmin e nada,quero bloquear facebook,youtube etc nenhum site eu consigo bloquear,meu squid esta por autenticação.Tambem gostaria de saber uma forma de saber quem esta acessando o que na rede.

http_port 192.168.20.178:3128
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
auth_param basic children 5
auth_param basic realm sec info 26bipqdt Digite seu usuario e senha
auth_param basic credentialsttl 2 hour
auth_param basic casesensitive off
visible_hostname secinfor
cache_mgr webmaster@localhost
error_directory /usr/share/squid3/errors/Portuguese

hierarchy_stoplist cgi-bin ?
cache_mem 256 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
cache_dir ufs /var/spool/squid3 2040 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/squid3/access.log

acl localhost src 127.0.0.1/32
acl localnet src 192.168.20.0/24


#Autentica
acl usuarios proxy_auth REQUIRED
http_access allow usuarios


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 # mntps
acl Safe_ports port 591 # filemaker
acl Safe_ports port 633 # 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 # mntps
acl ssl_ports port 873 # rsync
http_access deny connect !SSL_ports

#sites bloqueados
acl bloqueados url_regex "//etc/squid3/sites/bloqueados.txt"

#Nega acesso ao sites de conteudo indeseajado
http_access allow localhost




http_access deny bloqueados
http_access deny all
cache_effective_user johny
cache_effective_group johny


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts