All pastes #153482 Raw Edit

Someone

public text v1 · immutable
#153482 ·published 2006-08-29 17:09 UTC
rendered paste body
#SQUID CONFIGURADO 100%

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

maximum_object_size_in_memory 64 KB

maximum_object_size 16 MB
minimum_object_size 0 KB

cache_swap_low 90
cache_swap_high 95

cache_dir ufs /var/spool/squid 2048 16 256

cache_access_log /var/log/squid/access.log
visible_hostname tokaimportados

# FTP anonimo:
ftp_user anonymous@anonymous.com.br

refresh_pattern ^ftp:  15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern .  15 20% 2280

#CAIXAS
acl site dstdom_regex "/etc/squid/sites_caixa"
acl somente arp 00:11:2F:40:EB:74 00:D0:09:B1:73:DF
http_access deny somente !sites_caixa

#Finaceiro
acl site dstdom_regex "/etc/squid/site_financeiro"
acl somente_2 arp 00:15:F2:E8:AA:AA
http_access deny somente_2 !site_financeiro

#Notebook


#BLOQUEIO DE DOWNLOADS
#acl download url_regex -i .com$ .pif$ .exe$ .avi$ .mp3$ .mpeg$ .mpg$ .rm$ .wma$ .wmv$ .asx$ .cab$ .src$

#http_access deny download
http_access deny mac_proibido 
http_access allow liberado
#http_access allow negar
http_access deny proibidos !liberado
http_access deny somente somente_2 !site 
acl redelocal src 10.0.0.0/24
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 SSL_ports port 443 563
acl SSL_ports port 1863     # GAIM MSN
acl SSL_ports port 25533    # RADIO UOL
acl SSL_ports port 5190     # GAIM ICQ
acl Safe_ports port 80      # http
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 3456    # ReceitaNET
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 1863    # GAIM MSN
acl Safe_ports port 488     # gss-http
acl Safe_ports port 591     # filemaker
acl Safe_ports port 777     # multiling http
acl Safe_ports port 901     # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

http_access allow redelocal
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 localhost
http_access deny all

httpd_accel_host 10.0.0.1
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on