All pastes #456440 Raw Edit

Unnamed

public text v1 · immutable
#456440 ·published 2007-04-24 20:30 UTC
rendered paste body
  GNU nano 1.2.4                                                              File: /etc/squid/squid.conf

# Basic ACLs
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/32
#acl ssl_ports port 443 563
acl safe_ports port 3128 8080


acl zope_servers src www.jornada.unam.mx
acl manager proto cache_object
acl connect method connect


# deny requests to unknown ports
http_access deny !safe_ports

acl accelerated_protocols proto http https
acl accelerated_domains dstdomain www.jornada.unam.mx
acl accelerated_ports myport 8080

http_access allow accelerated_domains accelerated_ports accelerated_protocols


# Purge access - zope servers can purge but nobody else
acl purge method PURGE
http_access allow zope_servers purge
http_access deny purge

# Reply access
http_reply_access allow all

# Cache manager setup - cache manager can only connect from localhost
# only allow cache manager access from localhost
http_access allow manager localhost
http_access deny manager
# deny connect to other than ssl ports
#http_access deny connect !ssl_ports

#mgr:info for localhost:
acl report src 132.247.1.32 www.jornada.unam.mx
http_access allow report


# ICP access - anybody can access icp methods
icp_access allow localhost

# And finally deny all other access to this proxy
http_access deny all


# CACHE PEERS
# ------------------------------------------------------------------------------