kepas
(usa Debian)
Enviado em 19/09/2013 - 00:52h
Segue o meu conf pra vc dá uma olhada.
Grato!!
http_port 3128
visible_hostname srv-gateway
error_directory /usr/share/squid3/errors/Portuguese/
cache_mem 512 MB
maximum_object_size_in_memory 2048 KB
maximum_object_size 512 MB
minimum_object_size 4 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 512 128 256
cache_access_log /var/log/squid3/access.log
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 # ou acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl purge method PURGE
acl CONNECT method CONNECT
acl redelocal src 192.168.1.0/24
http_access deny !redelocal
auth_param basic realm Digite sua senha de acesso
auth_param basic children 3
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd.squid3
acl usuarios proxy_auth REQUIRED
http_access allow usuarios
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access allow localhost
http_access allow redelocal
http_access deny all