secinfo26
(usa Ubuntu)
Enviado em 02/04/2013 - 10:18h
Estou querendo colocar limite de download na rede usei a acl #Download Limitado a 10megas
#acl reply_body_max_size 10mb, funciona só que nao abre paginas com mais de 10mb quero colocar esse bloqueio em tudo menos nas paginas de internet. e se tem como colocar limite de velocidade na rede ou para alguns usuarios.
meu squid:
#------------------Porta-----------------------------------
http_port xxxx:3128
#-----------------------Cache------------------------------
cache_mem 1000 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 10000 16 256
maximum_object_size 30000 KB
maximum_object_size_in_memory 40 KB
#----------------------------------------------------------
#------------------------Logs e configs---------------------
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
pid_filename /var/log/squid3/squid3.pid
mime_table /usr/share/squid3/mime.conf
cache_mgr secinfor26bipqdt@ymail.com
memory_pools off
diskd_program /usr/lib/squid3/diskd
unlinkd_program /usr/lib/squid3/unlinkd
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
quick_abort_max 16 KB
quick_abort_pct 95
quick_abort_min 16 KB
request_header_max_size 20 KB
reply_header_max_size 20 KB
request_body_max_size 0 KB allow html
acl html rep_mime_type text/html
#reply_body_max_size 0
#reply_body_max_size 100mb allow all !html
#----------------------------------------------------------
#------------------------Acls------------------------------
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl vlan24 src 192.x.x.0/24
acl vlan26 src 192.168.1.0/24
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 1863 # 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 CONNECT method CONNECT
#sites Bloqueados
acl bloqueados url_regex -i "/etc/squid3/bloqueados"
#Liberar por IP
acl ips_liberados src 192.168.1.10
#Bloqueio por Mac
#X:X:X:X:X:X - Isso significa o MAC do micro.
acl macs_liberados arp 00:1B:B9:C4:EB:A4
#Download Limitado a 10megas
#acl reply_body_max_size 10485760 allow all
#----------------------------------------------------------
#-----------------Controle de ACL--------------------------
http_access deny bloqueados
http_access allow ips_liberados
http_access allow macs_liberados
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#----------------------------------------------------------
cache_mgr webmaster
mail_program mail
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string off
visible_hostname teste
error_directory /usr/share/squid3/errors/Portuguese/