[squid-users] Working Squid Configuration, but needs some fat reduction

From: ALAA MURAD <alaamurad_at_gmail.com>
Date: Tue, 14 Feb 2012 16:26:42 +0300

Dear All,

First thanks for this great great open source project, I would really
appropriated if someone could look at my configuration and ensure that
my configuration is correct and clean.

We are doing a simple reverse proxy in our SSL :443 website. So far so
good, but sometimes I notice different kind of errors in the log file.

I'm running M$ Windows Server and Squid 2.7, my proxy is 94.168.1.112
and connecting to the web server as back to back at 94.168.1.2

I want :
* Reverse Proxy to keep working
* Redirector to keep working
* I don't want to server port 80 or any other ports only SSL
connection in this server.
* I don't want to cache anything

Again my squid is working but I feel that the configuration need some
tweaking (and fat reduction!).

Thanks in advance .

Here is my configurations :

https_port 443 cert=C:/Interceptor/cert/mycompany.cert
key=C:/Interceptor/cert/mycompany.key defaultsite=www.mysite.com
cache_peer 192.168.1.2 parent 443 0 no-query originserver ssl
sslflags=DONT_VERIFY_PEER name=mycompanysite
acl mycompanyserver dstdomain www.mysite.com
redirector_access allow mycompanyserver
redirect_children 20
redirect_rewrites_host_header on
redirect_program C:/java/bin/java.exe
-Djava.util.logging.config.file=C:/Interceptor/redirector/RedirectorLogging.properties
-jar C:/Interceptor/redirector/Redirector.jar
cache_peer_access mycompanysite allow mycompanyserver
http_access allow mycompanyserver
http_port 80 accel defaultsite=www.mysite.com
cache_peer 192.168.1.2 parent 80 0 no-query originserver login=PASS
#acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache
cache_dir ufs c:/squid/var/spool 10000 16 256
cache_mem 256 MB
maximum_object_size_in_memory 32 KB
logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st
"%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
access_log c:/squid/var/logs/access.log squid
cache_log c:/squid/var/logs/cache.log
cache_store_log c:/squid/var/logs/store.log
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 mydomain dstdomain mysite.com
acl myweb src 127.0.0.1
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 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 81 # 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
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 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 8080
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access allow purge myweb
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow all
http_access allow mydomain
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_group proxy
coredump_dir c:/squid/var/spool/squid
forwarded_for on
emulate_httpd_log on
redirect_rewrites_host_header on
buffered_logs on
never_direct allow all
cache deny all
Received on Tue Feb 14 2012 - 13:27:29 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 15 2012 - 12:00:03 MST