All pastes #797501 Raw Edit

squid.conf

public text v1 · immutable
#797501 ·published 2007-11-26 01:30 UTC
rendered paste body
http_port 80 transparent
http_port 81 transparent
http_port 88 transparent
http_port 8080 transparent
http_port 8088 transparent

cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 32 MB
maximum_object_size 2048 KB
fqdncache_size 0
cache_dir ufs /var/log/squid/cache 2048 16 256
access_log /var/log/squid/logs/access.log squid
cache_store_log none
log_fqdn on
dns_nameservers 127.0.0.1

refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	20%	4320

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl allowed_hosts src 10.0.1.0/24
acl allowed_hosts src 10.0.2.0/24
acl allowed_hosts src localhost
acl ads dstdom_regex "/etc/squid/ad_block.txt"

acl SSL_ports port 443
acl Safe_ports port 81
acl Safe_ports port 88
acl Safe_ports port 8080
acl Safe_ports port 8088
acl CONNECT method CONNECT


http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow allowed_hosts
http_access deny ads
http_access deny all

icp_access allow allowed_hosts
icp_access deny all

cache_mgr nospam@gmail.com
cache_effective_user nobody
coredump_dir /var/log/squid/cache