Squid設定メモ

--- squid.conf.o        2010-03-31 16:46:04.000000000 +0900
+++ squid.conf  2011-11-25 21:18:24.000000000 +0900
@@ -275,6 +275,8 @@
 #auth_param basic realm Squid proxy-caching web server
 #auth_param basic credentialsttl 2 hours
 #auth_param basic casesensitive off
+auth_param basic realm Squid proxy-caching web server
+auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/htpasswd.txt

 #  TAG: authenticate_cache_garbage_interval
 #      The time period between garbage collection across the username cache.
@@ -587,6 +589,7 @@
 acl Safe_ports port 591                # filemaker
 acl Safe_ports port 777                # multiling http
 acl CONNECT method CONNECT
+acl homeuser proxy_auth REQUIRED

 #  TAG: http_access
 #      Allowing or Denying access based on defined access lists
@@ -634,6 +637,7 @@

 # And finally deny all other access to this proxy
 http_access allow localhost
+http_access allow homeuser
 http_access deny all

 #  TAG: http_access2
@@ -918,7 +922,8 @@
 #      visible on the internal address.
 #
 # Squid normally listens to port 3128
-http_port 3128
+#http_port 3128
+http_port 8080

 #  TAG: https_port
 #      Usage:  [ip:]port cert=certificate.pem [key=key.pem] [options...]
@@ -2790,6 +2795,9 @@
 #
 #Default:
 # none
+header_access X-Forwarded-For deny all
+header_access Via deny all
+header_access Cache-Control deny all

 #  TAG: header_replace
 #      Usage:   header_replace header_name message
@@ -4276,6 +4284,7 @@
 #
 #Default:
 # forwarded_for on
+forwarded_for off

 #  TAG: cachemgr_passwd
 #      Specify passwords for cachemgr operations.