Enviado em 25/06/2013 - 17:49h
Pessoal, tenho instalado ubuntu 13.04 com squid3
http_port 8080
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid3/access.log
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 500 MB
maximum_object_size 256000 KB
cache_dir ufs /var/cache/squid3 500 16 256
# Identificaç de usuario
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/ACLS/passwd
auth_param basic children 5
auth_param basic realm "Servidor linux"
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern http://windowsupdate.microsoft.com/ 0 80% 2060 reload-into-ims
# Declarando as ACLS
acl usuarios-liberados proxy_auth "/etc/squid3/ACLS/usuarios-liberados"
acl usuarios-bloqueados proxy_auth "/etc/squid3/ACLS/usuarios-bloqueados"
#acl usuarios-liberados proxy_auth REQUIRED
acl sites-bloqueados dstdom_regex -i "/etc/squid3/ACLS/sites-bloqueados"
acl palavras.negar url_regex -i "/etc/squid3/ACLS/palavras.negar"
acl mess url_regex -i .passport.com
acl sites-permitir url_regex -i "/etc/squid3/ACLS/sites-liberados"
acl proibido url_regex "/etc/squid3/ACLS/palavras.negar"
acl extensoes url_regex -i "/etc/squid3/ACLS/extensoes-negar"
#acl all src 192.168.0.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/32
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 1025-65535 # unregistered ports
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 3060 #
acl Safe_ports port 7434 #
acl Safe_ports port 10000 # webmin
acl CONNECT method CONNECT
###bloqueado ACLS
http_access allow sites-permitir
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow usuarios-liberados
http_access deny proibido all
http_access deny sites-bloqueados
http_access deny extensoes !sites-permitir
http_access allow usuarios-bloqueados
http_access deny all
icp_access allow all
cache_mgr danilo@heytec.com.br
error_directory /usr/share/squid3/errors/Portuguese
Como escolher o melhor escalonador de CPU para melhorar o desempenho da máquina
Curiosidade sobre DOOM Guy e Isabelle de Animal Crossing
Inicializando servidor Ubuntu na AWS e rodando apache em Container
Instalando TeamViewer no Debian 12
Conheça o Octopi, outro frontend para o Pacman com acesso ao AUR (Arch Linux e derivados)
Terminal transparente no Debian 12 com interface i3wm usando Xfce4-Terminal e Compton
Após atualização do Ubuntu 22.04.4 LTS perdi a instalação da placa de ... (3)
Não consigo iniciar o Linux normalmente (5)
Notebook com Ubuntu 22.04.4 se reinicia após curtos períodos. (3)