Fatof
(usa Debian)
Enviado em 01/02/2011 - 17:22h
Então, eu coloquei do jeito que vc me disse porém todo mundo me ligou reclamando que não estavam conseguindo navegar... auhauhauhauhau
Sim meu servidor está conectado diretamente na internet.
Aqui vai meu squid.conf:
#Mensagem de Erro
error_directory /usr/share/squid/errors/Portuguese
#
#Porta do Squid
http_port 3128 transparent
#
#Hostname
visible_hostname KelowServer
#
#Cache de Paginas e arquivos
cache_mem 512 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 50 MB
minimum_object_size 0 KB
cache_swap_low 75
cache_swap_high 80
cache_dir ufs /etc/squid/cache 10000 32 256
cache_access_log /etc/squid/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
#
#Politicas de Acesso
acl all src 192.168.0.0/24
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 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
#
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 usuariosliberados src "/etc/squid/arquivos/UsuariosLiberados"
http_access allow usuariosliberados
#
acl bloqueados url_regex -i "/etc/squid/arquivos/sites_bloqueados"
http_access deny bloqueados
#
acl extensions url_regex -i "/etc/squid/arquivos/extensions"
http_access deny extensions
#
acl palavras_proibidas dstdom_regex "/etc/squid/arquivos/palavras_proibidas"
http_access deny palavras_proibidas
#
acl RedeKelowSP src 192.168.0.0/24
http_access allow RedeKelowSP
http_access deny localhost
http_access allow all