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
Título: Descobrindo o IP externo da VPN no Linux
Armazenando a senha de sua carteira Bitcoin de forma segura no Linux
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Encontre seus arquivos facilmente com o Drill
Mouse Logitech MX Ergo Advanced Wireless Trackball no Linux
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
Alternar as janelas clicando na barra de tarefas (4)
qual tipo de interface linux para processador do tipo apu (9)
Agora temos uma assistente virtual no fórum!!! (244)
Ubuntu 22.04 / Bluethooth - Falha na conexão BlueZ | Não conecta caixa... (6)