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
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Cups: Mapear/listar todas as impressoras de outro Servidor CUPS de forma rápida e fácil
Criando uma VPC na AWS via CLI
Erro no upgrade: Sub-process /usr/bin/dpkg returned an error code (1) ... (3)
Falta pacotes de suporte ao sistema de arquivos (Gerenciador de discos... (6)