quemsoueu
(usa Fedora)
Enviado em 23/03/2011 - 09:45h
Pois é eu não sou especialista em squid, e não foi eu quem configurou como eu faço isso sem quere ser chato.
meu squid ta assim
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 512 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 102400 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 32 KB
cache_dir ufs /var/spool/squid 1000 16 256
access_log /var/log/squid/access.log squid
mime_table /usr/share/squid/mime.conf
pid_filename /var/run/squid.pid
ftp_user queops@queopsimobiliaria.com.br
ftp_list_width 32
ftp_passive on
dns_nameservers 200.204.0.10 200.204.0.138
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/usuarios
auth_param basic children 5
auth_param basic realm Servidor de Proxy Squid
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
negative_ttl 5 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 1 minute
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
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 liberados url_regex -i "/etc/squid/liberados"
http_access allow liberados
acl msncontatos dstdomain contacts.msn.com
acl msncontatos2 urlpath_regex contacts.msn.com
acl msn urlpath_regex -i gateway.dll
acl msnd dstdomain messenger.msn.com gateway.messenger.hotmail.com byrdr.omega.contacts.msn.com contacts.msn.com local-bay.contacts.msn.com by2.storage.msn.com
acl msn1 req_mime_type application/X-msn-messenger
http_access allow msnd
http_access allow msncontatos
http_access allow msncontatos2
http_access allow msn
http_access allow msn1
#acl semlogin dst 200.234.213.204 200.234.213.131 200.219.228.226 200.219.228.227 200.219.228.228 74.55.123.98 195.154.148.36 74.55.123.123 195.154.89.145
#http_access allow semlogin
#### Computador Velbras
acl velbras src 201.63.34.128/29
#acl velbras src 200.101.33.88
#http_access allow velbras
#### Rede Local
acl redelocal src 192.168.0.0/24
#http_access allow redelocal
#### Autenticacao de Usuarios
acl login proxy_auth REQUIRED
#### Sites bloqueados
acl bloqueados url_regex -i "/var/www/html/sas/sitesbloqueados/bloqueados"
#### Controle de Acesso
http_access allow velbras login !bloqueados
#### Controle de Acesso
http_access allow redelocal login !bloqueados
#####################################################
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_user proxy
cache_effective_group proxy
cache_mgr contato@allanlima.com
visible_hostname proxy.queopsimobiliaria.com.br
unique_hostname proxy.queopsimobiliaria.com.br
append_domain .queopsimobiliaria.com.br
icon_directory /usr/share/squid/icons
error_directory /usr/share/squid/errors/Portuguese
coredump_dir /var/spool/squid