All pastes #191959 Raw Edit

Something

public text v1 · immutable
·published 2006-10-05 14:59 UTC
rendered paste body
#Porta Utilizada pelo Squid
http_port 192.168.0.1:3128 transparent
http_port 10.0.0.2:3128 transparent

visible_hostname squid

#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

#We recommend you to use the following two lines.
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

#
# hosts_file adicionado por Kenjiro
#
hosts_file /etc/hosts

pid_filename /var/log/squid/squid.pid

#Tamanho da memoria RAM utilizada pelo Squid
cache_mem 400 MB

#Tamanho do maior objeto da Cache
maximum_object_size 200096 KB

#Tamanho do menor objeto da Cache
minimum_object_size 0 KB

#Tamanho máximo de um objeto na memória
maximum_object_size_in_memory 64 KB

#Local onde são armazenados os dados
cache_dir ufs /var/squid-cache 25000 16 256

#Local onde são guardados os logs de acesso
cache_access_log /var/log/squid/access.log

#Local onde são guardados os logs da cache
cache_log /var/log/squid/cache.log

#Local onde são guardados os logs de gravacao da cache
cache_store_log /var/log/squid/store.log

 httpd_accel_no_pmtu_disc on

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 10.0.0.2/255.255.255.255 192.168.0.1/255.255.255.255 #192.168.1.2/2$
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 8443 22 22022
acl Safe_ports port 80                  # http
acl Safe_ports port 5190                # icq
acl Safe_ports port 21                  # ftp
acl Safe_ports port 20                  # ftp
acl Safe_ports port 22                  # ssh
acl Safe_ports port 25                  # smtp
acl Safe_ports port 443 563 8443        # 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

server_persistent_connections off

acl GAB src 192.168.0.0/255.255.255.0
acl ADMIN src 10.0.0.0/255.255.255.0

tcp_outgoing_address 192.168.2.2 ADMIN
tcp_outgoing_address 192.168.1.2 GAB
tcp_outgoing_address 192.168.2.2

http_access allow all