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
Aprenda a Gerenciar Permissões de Arquivos no Linux
Como transformar um áudio em vídeo com efeito de forma de onda (wave form)
Como aprovar Pull Requests em seu repositório Github via linha de comando
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)
Gravação de tela com temporizador
Usar uma VM dentro do meu notebook como firewall para um dispositivo e... (0)
Eu tive esse erro aqui depois de de baixar o HyprLand Ubuntu na versão... (1)
Como fazer boot em img do debian 12.img da web? (11)