Enviado em 20/03/2015 - 16:16h
Eu aqui novamente apanhando...##############
## INICIO ##
##############
## ERROS EM PT-BR ##
#error_directory /usr/share/squid/errors/pt-br
## PORTA SQUID ##
http_port 3128
## HOSTNAME ##
visible_hostname galaxia
###########################################
####################
## AUTENTICAÇÃO ##
####################
#auth_param basic program /usr/lib64/squid/ncsa_auth
auth_param basic program /usr/lib64/squid/pam_auth
auth_param basic children 5
auth_param basic realm Ao digitar minha senha declaro que estou ciente sobre os termos de uso da internet
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
###########################################
#######################
## REGRAS DE CACHE ##
#######################
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 10240 16 256
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 20% 2280
refresh_pattern . 15 20% 2280
###########################################
#####################
## LOG DE ACESSO ##
#####################
#cache_access_log /var/log/squid/access.log
access_log /var/log/squid/access.log squid
###########################################
#####################
## REGRAS GERAIS ##
#####################
#acl all src all #versões antigas
#acl all src 0.0.0.0/0.0.0.0 #versões antigas
acl manager proto cache_object
acl localhost src 127.0.0.1
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
###########################################
#########################
## BLOQUEIOS PADRÕES ##
#########################
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
###########################################
acl usuarios proxy_auth REQUIRED
################################
## Liberar de sites por URL ##
################################
#acl sitespermitidos url_regex -i "/etc/squid/sitespermitidos"
#http_access allow sitespermitidos
###########################################
#######################################
## Liberar por palavras permitidas ##
#######################################
#acl palavraspermitidas dstdom_regex "/etc/squid/palavraspermitidas"
#http_access deny palavraspermitidas
###########################################
#################################
## Bloqueio de sites por URL ##
#################################
acl sitesproibidos url_regex -i "/etc/squid/sitesproibidos"
http_access deny sitesproibidos
###########################################
##########################################
## Bloqueio de downloads por extensão ##
##########################################
#acl downloadsproibidos url_regex -i \.exe \.torrent \.avi \.mp3
acl downloadsproibidos url_regex -i "/etc/squid/downloadsproibidos"
http_access deny downloadsproibidos
###########################################
#######################################
## Bloqueio por palavras proibidas ##
#######################################
acl palavrasproibidas dstdom_regex "/etc/squid/palavrasproibidas"
http_access deny palavrasproibidas
###########################################
##########################
## CONTROLE DE ACESSO ##
##########################
acl redelocal src 192.168.1.0/24
#http_access allow redelocal
http_access deny sitesproibidos
http_access deny downloadsproibidos
http_access deny palavrasproibidas
http_access allow usuarios
http_access allow localhost
http_access allow redelocal
###########################################
###########
## FIM ##
###########
http_access deny all
###########################################
error_directory /usr/share/squid/errors/pt-br
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
Instalar e Configurar o Slackware Linux em 2025
Como configurar os repositórios do apt no Debian 12 em 2025
Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Muitas dificuldades ao instalar distro Linux em Notebook Sony Vaio PCG-6131L (VPCEA24FM)
Slackpkg+ (Slackpkg Plus) está de volta!
Como dividir duas janelas igualmente e lado-a-lado na sua tela
Configurando o Conky para iniciar corretamente no sistema
3 configurações básicas que podem melhorar muito a sua edição pelo editor nano
Pedagogia no brasil não passa de alfabetização por m4sturbação mental (1)
compilação samba 4.22 rock linux 9.5 (3)
Erro de segmentação «Segmentation fault (core dumped)» ao retornar obj... (7)