All pastes #153112 Raw Edit

Jhony_brown

public text v1 · immutable
#153112 ·published 2006-08-29 12:19 UTC
rendered paste body
esse é o meu squid.conf
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache_dir ufs /var/cache/squid 200 32 512
#Habilitar proxy transparente
      httpd_accel_host virtual
      httpd_accel_port 80
      httpd_accel_with_proxy on
      httpd_accel_uses_host_header on
no_cache deny QUERY
cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 500 MB
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#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
acl all src 0.0.0.0/0.0.0.0
#ips dos usuarios liberados
acl ip_liberados src "/etc/squid/conf/ip_liberados"
# usuarios liberados no msn
acl liberamsn src "/etc/squid/conf/ip_liberamsn"
#ips dos usuarios restritos (bloqueio total)
#acl ip_restrito src "/etc/squid/conf/ip_restrito"
#lista dos sites restritos para os usuarios restritos
acl ip_restrito_sites dstdomain "/etc/squid/conf/ip_restrito_sites"
#usuarios que acessam somente bancos
acl ip_bancos src "/etc/squid/conf/ip_bancos"
acl ip_bancos_sites dstdomain "/etc/squid/conf/ip_bancos_sites"
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 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
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 CONNECT method CONNECT
acl redelocal src 192.168.0.0/24
#acl redelocal1 src 10.0.0.0/24
#acls de bloqueio no squid
acl negasites url_regex -i "/etc/squid/conf/negasites"
acl negapalavras url_regex -i "/etc/squid/conf/negapalavras"
acl liberapalavra url_regex -i "/etc/squid/conf/liberapalavra"
acl spy url_regex -i "/etc/squid/spy/spylist"
acl block_msn url_regex -i "/etc/squid/conf/block_msn"
#acl msn dstdomain loginnet.passport.com
#acl msn1 dstdomain passport.net
#acl msn2 dstdomain msn.com
#acl msnmessenger url_regex -i gateway.dll



http_access allow manager localhost
http_access allow liberapalavra all
http_access allow ip_liberados
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny spy
#http_access deny msn
#http_access deny msnmessenger !liberamsn
#http_access deny msn1
#http_access deny msn2
http_access deny block_msn !liberamsn
http_access deny negasites
http_access deny negapalavras
http_access deny ip_bancos !ip_bancos_sites
#http_access deny ip_restrito
#http_access allow redelocal1
http_access allow redelocal
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /var/cache/squid
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
redirect_program /usr/local/squidclamav/bin/squidclamav
redirect_children 15
redirector_access deny localhost
#redirect_program /usr/local/squirm/bin/squirm
#redirect_children 10
error_directory /usr/local/squid/share/errors/Portuguese