deusvan
(usa Ubuntu)
Enviado em 24/03/2010 - 15:14h
Galera estou com dificuldades em colocar meu squid pra funcionar corretamente, preciso de ajuda, por favor analisem o meu squid.conf .....
Ubuntu 9.10 Server - Squid 2.7
# WELCOME TO SQUID 2.7.STABLE6
# ----------------------------
#
#Recommended minimum configuration:
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl MAD time 0:00-8:00
acl MAN time 8:01-11:59
acl MID time 12:00-14:00
acl TAR time 13:16-17:59
acl NOI time 00:01-04:00
acl FULL time 00:00-23:59
acl download url_regex -i "/etc/squid/download.txt"
acl liberados url_regex -i "/etc/squid/liberados.txt"
acl messenger url_regex -i "/etc/squid/messenger.txt"
acl faturamento url_regex -i "/etc/squid/faturamento.txt"
acl cobranca url_regex -i "/etc/squid/cobranca.txt"
acl financeiro url_regex -i "/etc/squid/financeiro.txt"
acl comercial url_regex -i "/etc/squid/comercial.txt"
acl atendimento url_regex -i "/etc/squid/atendimento.txt"
acl diretoria url_regex -i "/etc/squid/diretoria.txt"
acl contabilidade url_regex -i "/etc/squid/contabilidade.txt"
acl hospital url_regex -i "/etc/squid/hospital.txt"
acl ti src 192.168.0.60 192.168.0.61 192.168.0.62
acl msn src 192.168.0.30 192.168.0.40 192.168.0.41 192.168.0.42 192.168.0.60 192.168.0.61 192.168.0.62 192.168.0.70
acl fat src 192.168.0.70 192.168.0.71 192.168.0.72 192.168.0.73 192.168.0.74
acl cob src 192.168.0.50 192.168.0.51
acl fin src 192.168.0.30 192.168.0.32 192.168.0.33
acl com src 192.168.0.20 192.168.0.22
acl atend src 192.168.0.40 192.168.0.41 192.168.0.42
acl dir src 192.168.0.80 192.168.0.81 192.168.0.82
acl cont src 192.168.0.90 192.168.0.91
acl hosp src 192.168.0.100
http_access deny download !leberados !messenger !faturamento !cobranca !financeiro !comercial !atendimento !diretoria !contabilidade !hospital
http_access allow liberados !messenger !faturamento !cobranca !financeiro !comercial !atendimento !diretoria !contabilidade !hospital
http_access allow msn messenger !liberados !faturamento !cobranca !financeiro !comercial !atendimento !diretoria !contabilidade !hospital
http_access allow fat faturamento !liberados !messenger !cobranca !financeiro !comercial !atendimento !diretoria !contabilidade !hospital
http_access allow cob cobranca !liberados !messenger !faturamento !financeiro !comercial !atendimento !diretoria !contabilidade !hospital
http_access allow fin financeiro !cobranca !liberados !messenger !faturamento !comercial !atendimento !diretoria !contabilidade !hospital
http_access allow com comercial !financeiro !cobranca !liberados !messenger !faturamento !atendimento !diretoria !contabilidade !hospital
http_access allow atend atendimento !comercial !financeiro !cobranca !liberados !messenger !faturamento !diretoria !contabilidade !hospital
http_access allow dir diretoria !atendimento !comercial !financeiro !cobranca !liberados !messenger !faturamento !contabilidade !hospital
http_access allow cont contabilidade !diretoria !atendimento !comercial !financeiro !cobranca !liberados !messenger !faturamento !hospital
http_access allow hosp hospital !contabilidade !diretoria !atendimento !comercial !financeiro !cobranca !liberados !messenger !faturamento
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
http_access allow all
http_access allow ti
http_access allow localhost
http_access deny all !ti
http_access allow localhost
http_access deny all
icp_access allow all
http_port 3128 transparent
visible_hostname unimed317
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log
acl QUERY urlpath_regex cgi-bin \?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache
cache deny QUERY
broken_vary_encoding allow apache
hosts_file /etc/hosts
coredump_dir /var/spool/squid