
Enviado em 23/02/2017 - 10:21h
Olá pessoal. Configurei aqui um servidor squid e coloquei algumas regras no arquivo squid3/squid.conf.#proxy transparente-------------------------------------------------------------------------------------------------------------------------------------------
http_port 3128 transparent
visible_hostname gnu
cache_mem 456 MB
maximum_object_size_in_memory 10 MB
maximum_object_size 700 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir aufs /dev/shm 300 20 512
cache_access_log /var/log/squid3/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
#acl manager proto cache_object
#acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
# Palavras Liberadas:
acl liberadas url_regex -i "/etc/squid3/palavras/liberadas"
http_access allow liberadas
acl bloqueadas url_regex -i "/etc/squid3/palavras/bloqueadas"
http_access deny bloqueadas
acl redelocal src 10.0.0.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
#regras controle de banda MACS---------------------------------------------------------------------------------------------------------------------------------
acl 1mega arp "/etc/squid3/velocidade/1mega.txt"
acl 3mega arp "/etc/squid3/velocidade/3mega.txt"
acl 5mega arp "/etc/squid3/velocidade/5mega.txt"
acl 7mega arp "/etc/squid3/velocidade/7mega.txt"
acl 10mega arp "/etc/squid3/velocidade/10mega.txt"
acl full arp "/etc/squid3/velocidade/full.txt"
delay_pools 6
delay_class 1 2
delay_class 2 2
delay_class 3 2
delay_class 4 2
delay_class 5 2
delay_class 6 2
delay_access 1 allow 1mega
delay_access 2 allow 3mega
delay_access 3 allow 5mega
delay_access 4 allow 7mega
delay_access 5 allow 10mega
delay_access 6 allow full
delay_parameters 1 -1/-1 102400/102400
delay_parameters 2 -1/-1 307200/307200
delay_parameters 3 -1/-1 512000/512000
delay_parameters 4 -1/-1 896000/896000
delay_parameters 5 -1/-1 1280000/12800000
delay_parameters 6 -1/-1 -1/-1 -1/-1
Cirurgia para acelerar o openSUSE em HD externo via USB
Void Server como Domain Control
Modo Simples de Baixar e Usar o bash-completion
Monitorando o Preço do Bitcoin ou sua Cripto Favorita em Tempo Real com um Widget Flutuante
[Resolvido] VirtualBox can't enable the AMD-V extension
Como verificar a saúde dos discos no Linux
Como instalar , particionar, formatar e montar um HD adicional no Linux?
Como automatizar sua instalação do Ubuntu para desenvolvimento de software.
Quais os códigos mais dificeis que vcs sabem fazer? (3)
Fiz uma pergunta no fórum mas não consigo localizar (14)
Upscaling com imagem cortada no monitor secundário ao usar iGPU Multi ... (1)
Não consigo instalar distro antiga no virtualbox nem direto no hd (7)
Servidor Ubuntu 24.04 HD 500 não tenho espaço na \home\adminis... [RES... (8)









