renato_hateen
(usa Fedora)
Enviado em 03/01/2012 - 16:47h
Squid Renato
http_port 3128 intercept
visible_hostname Proxy
cache_mgr renato@cpiengenharia.com.br
error_directory /usr/share/squid/errors/pt-br
hierarchy_stoplist cgi-bin ?
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
cache_dir ufs /var/spool/squid 2048 16 256
#Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 360 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_log /var/log/squid/access.log
acl localhost src 127.0.0.1/32
acl localnet src 192.168.0.0/24
acl manager proto cache_object
http_access allow manager localhost
http_access deny manager
acl purge method PURGE
http_access allow purge localhost
http_access deny purge
acl safe_ports port 21 #FTP
acl safe_ports port 70 #gopher
acl safe_ports port 80 #http
acl safe_ports port 210 #wais
acl safe_ports port 280 #http-mgmt
acl safe_ports port 443 #https
acl safe_ports port 488 #gss-http
acl safe_ports port 563 #nntps
acl safe_ports port 591 #filemaker
acl safe_ports port 631 #cups
acl safe_ports port 777 #multiling http
acl safe_ports port 873 #rsync
acl safe_ports port 901 #swat
acl safe_ports port 1863 #msn
acl safe_ports port 5190 #msn
acl safe_ports port 1025-65535 #unregisteres ports
http_access deny !safe_ports
acl CONNECT method CONNECT
acl SSL_ports port 443 #https
acl SSL_ports port 563 #nntps
acl SSL_ports port 873 #rsync
http_access deny CONNECT !SSL_PORTS
# Acessos da rede
#liberar almoco
acl almoco time 12:00-13:59
http_access allow almoco
#MSN
acl msn url_regex -i /gateway/gateway.dll
acl Negar_msn dstdomain "/etc/squid/msn.txt"
acl Negar_msn2 url_regex "/etc/squid/msn2.txt"
acl nomsn.txt url_regex -i "/etc/squid/nomsn.txt"
acl msn.txt dstdomain "/etc/squid/nomsn.txt"
acl msn1 rep_mime_type -i ^application/x-msn-messenger$
acl msn_port port 1863
acl msn_port2 port 5223
acl serv_msn dst 200.46.110.0/24
acl serv_msn dst 64.4.13.0/24
acl msn_port3 port 1080
http_access deny msn_port3
http_access deny msn_port
http_access deny msn_port2
http_access deny serv_msn
http_access deny msn1
http_access deny Negar_msn
http_access deny Negar_msn2
http_access deny msn
http_access deny nomsn.txt
header_access Accept-Encoding deny msn.txt
#SITES
acl sites dstdomain "/etc/squid/sites"
http_access deny sites
#LIBERAR POR IP
#acl libera src 192.168.0.148
#http_access allow libera
#SITES DO GOVERNO
acl governo.txt dstdomain "/etc/squid/governo.txt"
http_access allow governo.txt
#PALAVRAS
acl palavras url_regex -i "/etc/squid/palavras"
http_access deny palavras
#EXTENÇÔES
acl extencoes urlpath_regex -i "/etc/squid/extencoes"
http_access deny extencoes
#bloqueio da rede interna
http_access allow localnet
http_access allow localhost
http_access deny all