April 27, 2010

Squid 2.6Stable21 squid.conf di ClearOS51

Filed under: Uncategorized — bolpoint @ 2:15 pm

Kemarin waktu mengsetup clearOS51 Enterprise sebagai Proxy, performanya sangat bagus request hit ratios mencapai 90% karena penasaran saya lihat aja langsung di squid.conf
setingan defaulnya terlihat seperti dibawah:
#squid 2.6.STABLE21
#auth_param basic program /usr/lib/squid/squid_ldap_auth -b “ou=User,ou=Account,dc=bbwspj,dc=com”
acl all src
acl manager proto cache_object
acl localhost src
acl webconfig_lan src
acl webconfig_to_lan dst
acl to_localhost dst
acl SSL_ports port 443
acl SSL_ports port 81 83 10000
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 81 82 83 10000
#selalu menerima cachemgr akses dari localhost
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow webconfig_to_lan
http_access allow webconfig_lan
http_access deny all
icp_access allow
reply_body_max_size 0 allow all
http_port transparent
http_port transparent
http_port transparent
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid 10240 16 256
maximun_object_sizee 81920 KB
access_log /var/log/squid/access.log squid
url_rewrite_children 15
acl QUERY urlpatch_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
error_directory /etc/squid/errors

#Leave coredumps in the first cache dir
coredump_dir /var/spool/squid
follow_x_forwarded_for allow localhost


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: