eslih
(usa Debian)
Enviado em 10/12/2013 - 16:29h
Posta o seu squid.conf, quem sabe é apenas algum erro que impossibilita o funcionamento correto...
Quais configurações você tentou usar no squid.conf?
De qualquer forma, segue um arquivo de configuração bem simples:
http_port 192.168.0.1:3128 transparent
visible_hostname squid.esli-nux.com
cache_mem 256 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 700 MB
minimum_object_size 16 KB
cache_swap_low 90
cache_swap_high 95
cache_dir aufs /var/spool/squid 3270 8 128
cache_access_log /var/log/squid/access.log
cache_store_log none
coredump_dir none
cache_mgr ti@esli-nux.com
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl redelocal src 192.168.0.0/16
acl SSL_ports port 443 563 12121
acl Safe_ports port 80 # http
acl Safe_ports port 21 20 # ftp
acl Safe_ports port 443 563 12121 # 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 53 # DNS
acl Safe_ports port 3000 # obbplus
acl Safe_ports port 8800 #
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
# Acesso Total
acl libera_tudo src "/etc/squid/acl/freenet"
http_access allow libera_tudo
### Bloqueio total acl bloqnet src "/etc/squid/acl/bloqnet"
http_access deny bloqnet
# Gerencia
acl gerencia src "/etc/squid/acl/gerencia"
#sites liberados
acl sites_liberados url_regex -i "/etc/squid/lists/sites_liberados"
http_access allow sites_liberados
# sites bloqueados
acl sites_bloqueados url_regex -i "/etc/squid/lists/sites_bloqueados"
http_access deny sites_bloqueados !gerencia
acl sites_bloqueados_path urlpath_regex -i "/etc/squid/lists/sites_bloqueados"
http_access deny sites_bloqueados_path !gerencia
#http_access deny bloqnet
http_access allow localhost
http_access allow redelocal
http_access deny all