thearlindo
(usa Debian)
Enviado em 03/11/2010 - 15:39h
Salve, Salve galera do vol..
Estou tentando limitar o tamanho do download dos usuarios da minha rede, mas o problema é que não funciona segue ai meu squid:
##### SQUID ECOFIBRA ######
#http_port 127.0.0.1:3128
http_port 3128 transparent
cache_mem 128 MB
cache_dir ufs /var/spool/squid/ 500 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/log/squid/squid.pid
cache_swap_low 95
cache_swap_high 98
maximum_object_size 16384 KB
maximum_object_size_in_memory 20 KB
visible_hostname ecofibra
cache_effective_user proxy
cache_effective_group proxy
dns_nameservers 127.0.0.1
error_directory /usr/share/squid/errors/Portuguese/
####### Configurações de Proxy Transparente ######
#####httpd_accel_host virtual
#####httpd_accel_port 80
#####httpd_accel_with_proxy on
#####httpd_accel_uses_host_header on
###### Proxy Autenticado
#auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/local/squid/etc/senhas_squid
#auth_param basic children 10
#auth_param basic realm Digite sua senha de Acesso a Internet
##### Autenticacao AD
#auth_param basic program /usr/local/squid/libexec/msnt_auth
#auth_param basic children 4
#auth_param basic realm Acesso restrito.
####### configurações de acls para o servidor #######
#acl localhost src 127.0.0.1/255.255.255.255
acl REDE_INTERNA src 192.168.0.0/24
acl all src 0.0.0.0/0.0.0.0
acl msn url_regex -i gateway/gateway.dll
acl sites_livres src "/etc/squid/acl/sites_livres.acl"
acl sites_proibidos url_regex -i "/etc/squid/acl/sites_proibidos.acl"
#acl sites_negados url_regex "/etc/squid/acl/sites_negados.acl"
acl diretoria src "/etc/squid/acl/ip_diretoria.acl"
acl proibidos src "/etc/squid/acl/ip_proibido.acl"
acl almoco time 13:11-13:12
acl safe_ports port 5017
acl html rep_mime_type text/html
reply_body_max_size 0 allow html
reply_body_max_size 10MB allow all
###### diretivas de acesso ############################
http_access allow sites_livres
http_access allow diretoria
http_access deny proibidos
http_access allow almoco
http_access deny sites_proibidos
#http_access allow localhost
http_access allow REDE_INTERNA
http_access allow safe_ports
#http_access allow avg
#http_access allow avg2
http_access deny all