SK5_RJ
(usa Debian)
Enviado em 27/06/2013 - 17:21h
Buckminster escreveu:
Executa squid3 -k rotate e posta aqui a saída.
Olá Buckminster, nao subiu nada apenas aceitou o comando e mais nada!
http_port 3128 intercept
cache_mem 2500 MB
cache_dir aufs /var/spool/squid3 40000 16 256
visible_hostname SK
error_directory /usr/share/squid3/errors/Portuguese
cache_swap_low 96
cache_swap_high 98
maximum_object_size_in_memory 1 MB
maximum_object_size 500 MB
minimum_object_size 0 KB
access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
cache_store_log none
pid_filename /var/log/squid3/squid3.pid
mime_table /usr/share/squid3/mime.conf
memory_pools off
diskd_program /usr/lib/squid3/diskd
unlinkd_program /usr/lib/squid3/unlinkd
#
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#
refresh_pattern -i \.(gif|png|jpg|jpeg|ico|bmp)$ 260000 90% 260009 override-expire
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv|mpg|wma|ogg|wmv|asx|asf)$ 260000 90% 260009 override-expire
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff|pdf|uxx)$ 260000 90% 260009 override-expire
refresh_pattern -i \.index.(html|htm)$ 1440 90% 40320
refresh_pattern -i \.(html|htm|css|js)$ 1440 90% 40320
#fazer cache do windows update
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
refresh_pattern msgruser.dlservice.microsoft.com/.*.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
refresh_pattern update.microsoft.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
#cache de videos
#refresh_pattern -i \.(mp3|mp4|m4a|ogg|mov|avi|wmv|flv)$ 10080 90% 999999 ignore-no-cache override-expire ignore-private
#
# Youtube Cache completo ** [nao esta funcionando ainda]
#url_rewrite_program /etc/nginx/nginx.rb
#url_rewrite_host_header off
#acl youtube_videos url_regex -i ^http://[^/]+\.youtube\.com/videoplayback\?
#acl range_request req_header Range .
#acl begin_param url_regex -i [?&]begin=
#acl id_param url_regex -i [?&]id=
#acl itag_param url_regex -i [?&]itag=
#acl sver3_param url_regex -i [?&]sver=3
#cache_peer 192.168.1.0 parent 8081 0 proxy-only no-query connect-timeout=10
#cache_peer_access 192.168.1.0 allow youtube_videos id_param itag_param sver3_param !begin_param !range_request
#cache_peer_access 192.168.1.0 deny all
quick_abort_min 16 KB
request_header_max_size 20 KB
reply_header_max_size 20 KB
request_body_max_size 0 KB
#
acl SSL_ports port 443 563 1863 # https
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 z39.50
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
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
http_access allow manager localhost
http_access deny manager
http_access deny to_localhost
http_access allow localhost manager
http_access deny manager
#
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
#
#acl domain_cache-videos dstdomain -i "/etc/squid3/ACLs/domain_cache-videos"
acl permitido url_regex -i "/etc/squid3/permitido.txt"
acl restrito url_regex -i "/etc/squid3/restrito.txt"
acl libejava url_regex java.com
acl java browser Java/1.4 Java/1.5 Java/1.6 Java/1.7
acl coord src 192.168.1.4 192.168.1.7 192.168.1.5
acl localnet src 192.168.1.0/24
#
#cache allow domain_cache-videos
http_access allow permitido
http_access allow coord
http_access allow java
http_access allow libejava
http_access deny restrito
http_access allow localnet
http_access allow localhost
http_access deny all