Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###################################################################################
- http_port 0.0.0.0:3130
- visible_hostname (external)zentyal.bahadircafe.com
- coredump_dir /var/spool/squid3
- cache_effective_user proxy
- cache_effective_group proxy
- #cache_mem 128 MB
- cache_mem 1024 MB
- cache_dir ufs /var/spool/squid3 1024 16 256
- #maximum_object_size 300 MB
- maximum_object_size 50 MB
- access_log /var/log/squid3/external-access.log squid
- cache_log /var/log/squid3/external-cache.log
- cache_store_log /var/log/squid3/external-store.log
- pid_filename /var/run/squid3-external.pid
- dns_nameservers 127.0.0.1
- append_domain .bahadircafe.com
- # refresh patterns
- # windows updates
- refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://.*\.download\.windowsupdate\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
- # linux updates
- refresh_pattern http://.*\.archive\.ubuntu\.com/ 0 80% 20160 reload-into-ims
- refresh_pattern http://(ftp|http)[0-9]*\.[a-z]+\.debian\.org/ 0 80% 20160 reload-into-ims
- 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
- # end refresh patterns
- url_rewrite_program /usr/bin/adzapper.wrapper
- acl_uses_indirect_client on
- # no cache domains acl
- acl from_localhost src 127.0.0.0/8 ::1
- acl to_localhost dst 127.0.0.0/8 ::1
- acl manager url_regex -i ^cache_object:// +i ^https?://[^/]+/squid-internal-mgr/
- acl SSL_ports port 443 # https, snews
- acl SSL_ports port 873 # rsync
- acl SSL_ports port 21 #ftp
- acl SSL_ports port 631 #cups over https
- 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 631 # cups
- acl Safe_ports port 777 # multiling http
- acl Safe_ports port 873 # rsync
- acl Safe_ports port 901 # SWAT
- acl CONNECT method CONNECT
- acl purge method PURGE
- follow_x_forwarded_for allow from_localhost
- log_uses_indirect_client on
- http_access allow manager to_localhost
- http_access deny manager
- http_access deny purge
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- http_access allow from_localhost
- # we use firewall to deny clients from the outside
- http_access allow all
- always_direct allow to_localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement