linux-4ever
(usa CentOS)
Enviado em 30/07/2013 - 10:08h
Agora o squid.conf organizado... Mas ainda não funcionando o skype.. =/
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
visible_hostname coloradoo
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.2.0/24 # RFC1918 possible internal network
#acl localnet src fc00::/7 # RFC 4193 local private network range
#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl safe_ports port 23390
acl Safe_ports port 1024 #
acl Safe_ports port 443
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access allow manager
# Deny requests to certain unsafe ports
http_access allow !Safe_ports
acl numeric_IPs dstdom_regex ^(([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)|(\[([0-9af]+)?:([0-9af:]+)?:([0-9af]+)?\])):443
acl Skype_UA browser ^skype
http_access allow CONNECT localnet numeric_IPS Skype_UA
# Deny CONNECT to other than secure SSL ports
#http_access allow CONNECT SSL_ports
http_access deny CONNECT !SSL_ports
acl skype src "etc/squid3/acessos/numeric_IPS.txt"
acl admin src "/etc/squid3/acessos/admin.txt"
acl livre dstdomain "/etc/squid3/acessos/sites.txt"
acl liberados src "/etc/squid3/acessos/liberados.txt"
acl almoco time MTWHF 11:30-13:30
acl negados src "/etc/squid3/acessos/corsfab.txt"
acl manutencao src "/etc/squid3/acessos/corsman.txt"
acl temporario dstdomain "/etc/squid3/acessos/almoco.txt"
acl plus dstdomain "/etc/squid3/acessos/plus.txt"
acl man dstdomain "/etc/squid3/acessos/sitesman.txt"
acl xyz dstdomain .xyz.com.br
http_access allow localhost
http_access allow CONNECT localnet numeric_IPS Skype_UA skype
http_access allow admin
http_access allow negados comafal
http_access allow manutencao man
http_access deny manutencao
http_access deny negados
http_access deny liberados plus
http_access allow liberados
http_access allow localnet almoco temporario
http_access allow localnet livre
http_access deny localnet