ailtsantz
(usa Ubuntu)
Enviado em 10/03/2015 - 08:25h
Bom dia pessoal, estou implementando uma nova regra no squid para controle de banda, porém essa nova delay_poll não funciona. Alguém pode me ajudar?
Segue parte do meu squid.conf
#acl radios_1mb src "/etc/squid/acls/radios_1mb"
#acl radios_2mb src "/etc/squid/acls/radios_2mb"
acl radios2mb src 192.168.5.200
#############################################
acl nti src 192.168.0.0/24
acl roteadores src 192.168.1.0/24
acl saf src 192.168.2.0/24
acl bolsafamilia src 192.168.1.210 192.168.1.217 192.168.1.219 192.168.1.220 192.168.1.221 192.168.1.222
acl msn_sites dstdom_regex -i messenger.msn.com messenger.hotmail.com chat.msn.com msgr.hotmail.com messenger.com
acl msn_porta port 1863
acl msn_rep_mime rep_mime_type -i ^application/x-msn-messenger
acl msn_req_mime req_mime_type -i ^application/x-msn-messenger
acl webmessengers dstdom_regex -i meebo messenger
acl arquivos_de_programas urlpath_regex \.exe$ \.pif$ \.src$ \.msi$
acl arquivos_de_midia urlpath_regex \.mp3$ \.mp4$ \.ogg$ \.wav$ \.avi$ \.mpg$ \.mpeg$ \.rmvb$ \.flv$ \.mkv$ \.ogv$
acl aplicativos_programas rep_mime_type -i ^application/octet-stream ^application/zip ^application/x-wais-source ^application/vnd.ms-powerpoint
acl aplicativos_multimidia rep_mime_type -i ^video/+ ^audio/+
acl manager proto cache_object
acl localhost src 127.0.0.1
acl all src all
acl cari src 192.168.0.1 192.168.1.1 127.0.0.1
#acl clientes src 192.168.0.0/16
acl purge method PURGE
acl CONNECT method CONNECT
acl Safe_ports port 80 83 # http
acl Safe_ports port 99 # http para doem.org.br
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 5222-5223 # Jabber - GTalk
acl Safe_ports port 8080-8081 # Tomcat
#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 10000 # Webmin
acl Safe_ports port 448 # Lync
acl Safe_ports port 3478 # Lync
acl Safe_ports port 5061 # Lync
acl Safe_ports port 8057 # Lync
acl Safe_ports port 49152-65535 # Lync
acl Safe_ports port 5020 # Sistemas
acl SSL_ports port 443 # https
#acl SSL_ports port 563 # snews
#acl SSL_ports port 873 # rsync
#acl SSL_ports port 10000 # Webmin
acl SSL_ports port 5061 # Lync
acl SSL_ports port 8057 # Lync
#########################################
http_access allow localhost
http_access deny CONNECT !SSL_ports
http_access deny !Safe_ports
http_access allow purge localhost
http_access deny purge
http_access allow manager localhost
http_access allow manager cari
http_access deny manager
http_access allow sites_liberados_sem_download
http_access deny redes_sociais
http_access allow all
cache_mem 64 MB
# maximum_object_size_in_memory 16 KB
maximum_object_size 200 MB
# memory_replacement_policy lru
quick_abort_min -1 KB
cache_dir diskd /var/spool/squid/cache01 10240 16 256
cache_dir diskd /var/spool/squid/cache02 10240 16 256
cache_dir diskd /var/spool/squid/cache03 10240 16 256
cache_dir diskd /var/spool/squid/cache04 10240 16 256
cache_dir diskd /var/spool/squid/cache05 10240 16 256
# maximum_object_size 20480 KB
access_log /var/log/squid/access.log squid
useragent_log /var/log/squid/agent.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
balance_on_multiple_ip on
delay_pools 5
delay_class 1 1 # de radios
delay_class 2 2 # sistemas
delay_class 3 2 # usuarios
delay_class 4 1 # usuarios privilegiados
delay_class 5 2 # radios_2mb
# Radios 2mb
delay_parameters 5 -1/-1 250000/250000
delay_access 5 allow radios2mb
# Rádios terão no máximo 128Kbs juntas
delay_parameters 1 63000/256000
# Sistemas terão 1Mb reservado
delay_parameters 2 256000/3000000 128000000/1000000
# Usuários terão 6Mb reservados, 3Mbs para cada rede, e 1Mb para cada usuário
#delay_parameters 3 1000000/6000000 32000/64000
delay_parameters 3 2000000/10000000 64000/192000
# susuários privilegiados até 2Mb juntos
delay_parameters 4 1000000/3000000
#delay_parameters 3 -1/-1 24576/24576
delay_access 1 allow sites_de_radio_para_quem_pode
delay_access 2 allow sistemas
delay_access 3 deny sites_de_radio_para_quem_pode
delay_access 3 deny sistemas
delay_access 3 allow all
delay_access 4 allow pcs_sem_controle_da_banda
delay_access 4 allow bolsafamilia
delay_access 4 deny all
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
cache_effective_user proxy
cache_effective_group proxy
client_db on
coredump_dir /var/cache/squid
http_port 3128
http_port 8080
http_port 8081 transparent
cache_mgr dtic
visible_hostname servidor
#error_directory /usr/share/squid-langpack/pt-br
error_directory /etc/squid/pt-br
hosts_file /etc/hosts
dns_nameservers 127.0.0.1 8.8.8.8