ivo.becker
(usa Debian)
Enviado em 29/03/2011 - 10:52h
LEMBRANDO, INSTALE O SSH PARA ACESSAR PELO PUTTY...
digite
apt-get install openssh-server
agora vamos para o Squid...
digite
apt-get install squid
confirme , pronto...
depois delete o arquivo squid.conf e faça outro... assim
digite
/etc/init.d/squid stop
rm /etc/squid/squid.conf
nano /etc/squid/squid.conf
copie para o arquivo as conf abaixo, ja alterei para seu uso... depois salve com CONTROL-O e saia com CONTROL-X ,
digite
squid -z
/etc/init.d/squid start
#### SQUID STABLE####
http_port 3128 transparent
visible_hostname #seu nome
dns_nameservers 208.67.222.222
dns_nameservers 208.67.220.220
#### SEM CACHE ####
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl semcache url_regex -i \.asx$ .asf$ .flv$ .mp4$ .mp3$ .mov$ .asp$ .avi$ .mpg$ .swf$
cache deny semcache
### OP. CACHE ###
cache_mem 380 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 12 MB
minimum_object_size 0 KB
cache_swap_low 80
cache_swap_high 85
cache_dir ufs /var/spool/squid 32820 24 320
########### REFRESH CACHE ################
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(exe|zip|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern ^ftp: 15 0% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 40% 2280
########### PORTAS E CONECTIONS ################
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 SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
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
##### REDE #####
acl rede src 192.168.10.0/24
####### LIBERA ACESSO A REDE E BLOQUEIA OS DEMAIS #######
http_access allow localhost
http_access allow rede
http_access deny all