jamesdean
(usa Outra)
Enviado em 16/01/2014 - 15:29h
Segue o squid.conf que tá no servidor.
# 1-WELCOME TO SQUID 3.0
# -----------------------------------------------------------------------------
# Squid Customizado em 28.03.2011
# 2-NETWORK OPTIONS
# -----------------------------------------------------------------------------
# 3-OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------
#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 \?
# 4-OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------------------------------------------------
cache_dir ufs /var/spool/squid 10000 16 256
maximum_object_size 100000 bytes
# 5-LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -----------------------------------------------------------------------------
# 6-OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# -----------------------------------------------------------------------------
#Recommended minimum configuration:
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
# 7-OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# 8-TIMEOUTS
# -----------------------------------------------------------------------------
# 9-ACCESS CONTROLS
# -----------------------------------------------------------------------------
#Recommended minimum configuration:
acl all src 192.168.169.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # 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
acl Safe_ports port 2095 # webmail
acl Safe_ports port 2092 # cpanel
acl Safe_ports port 995 # gmail
acl Safe_ports port 993 # gmail
acl Safe_ports port 587 # gmail
acl CONNECT method CONNECT
#Controles alternativos da rede
#acl url_liberado src "/etc/squid/sitesliberados"
acl bloqueado url_regex -i "/etc/squid/bloqueado"
acl
[*****] url_regex sexo
acl torrent url_regex torrent
acl utorrent url_regex utorrent
acl download urlpath_regex -i \.scr$ \.avi$ \.wmv$ \.mp4$ \.tor$ \.torrent$
acl iplibdown src "/etc/squid/iplibdown"
acl streaming rep_mime_type -i "/etc/squid/blockmime"
acl videomusic urlpath_regex -i \.aif$ \.aifc$ \.aiff$ \.asf$ \.asx$ \.avi$ \.au$ \.m3u$ \.med$ \.mp3$ \.m1v$ \.mp2$ \.mp2v$ \.mpa$ \.mov$ \.mpe$ \.mpg$ \.mpeg$ \.ogg$ \.pls$ \.ram$ \.ra$ \.ram$ \.snd$ \.wma$ \.wmv$ \.wvx$ \.mid$ \.midi$ \.rmi$ \.flv$
#Sintaxe das diretivas
http_access deny bloqueado !iplibdown
http_access deny
[*****] !iplibdown
http_access deny download !iplibdown
http_access deny torrent !iplibdown
http_access deny utorrent !iplibdown
http_access deny videomusic !iplibdown
http_reply_access deny streaming !iplibdown
#http_access allow url_liberado
#Recommended minimum configuration:
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
#acl our_networks src 192.168.1.0/24
acl redeca src 192.168.169.0/24
#http_access allow our_networks
http_access allow localhost
http_access allow redeca
# And finally deny all other access to this proxy
http_access deny all
# and finally allow by default
http_reply_access allow all
#Allow ICP queries from everyone
icp_access allow all
# 10-ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
cache_effective_user squid
cache_effective_user squid
# cache_effective_group squid
cache_effective_group squid
# none
visible_hostname cronos
# 11-OPTIONS FOR THE CACHE REGISTRATION SERVICE
# -----------------------------------------------------------------------------
# 12-HTTPD-ACCELERATOR OPTIONS
# -----------------------------------------------------------------------------
# 13-ICAP OPTIONS
# -----------------------------------------------------------------------------
# 14-MISCELLANEOUS
# -----------------------------------------------------------------------------
# 15-DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
# -----------------------------------------------------------------------------
#Default:
# relaxed_header_parser on
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
delay_pools 0