- Código: Selecionar todos
#not delet this line (Năo apague esta linha)
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
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
# cache na dysku (brazilfw) 1Gb
cache_dir ufs /usr/local/squid/var/cache 10240 16 256
maximum_object_size 1024 KB
cache_swap_low 50
cache_swap_high 90
#cache_access_log /usr/local/squid/var/logs/access.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl proibidos url_regex -i "/usr/local/squid/etc/proibe.flt"
acl filterneg dstdom_regex "/usr/local/squid/etc/filter.flt"
#acl accdirect dstdom_regex "/usr/local/squid/etc/direct.flt"
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.1/32
acl SSL_ports port 443 563
acl Safe_ports port 80 53
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 8180
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 901
#acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access allow PURGE localhost
#http_access deny purge
http_access deny proibidos
http_access deny filterneg
# odswiezanie obrazkow nie jestem pewien czy na brazilu to dziala
refresh_pattern -i (.*jpg$|.*gif$) 0 50% 28800
refresh_pattern -i (.*html$|.*htm|.*shtml) 0 20% 1440
refresh_pattern (http://.*/$) 0 20% 1440
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
connect_timeout 180 seconds
peer_connect_timeout 50 seconds
read_timeout 5 minutes
request_timeout 2 minutes
client_lifetime 1 day
half_closed_clients on
pconn_timeout 120 seconds
dead_peer_timeout 25 seconds
maximum_object_size 1024 KB
pipeline_prefetch on
forwarded_for off
#always_direct allow accdirect
#not delet this line and forward (Năo apague esta linha e a próxima)