Saya menggunakan koneksi internet speedy untuk kebutuhan kantor. Saat
ini saya menggunakan squid sebagai proxy server. Problemnya adalah
squid tersebut memperlambat proses browsing (kalau tidak melewati
squid relatif lebih cepat). Problem sering terjadi ketika mengakses
yahoo (TCP_MISS/502)

berikut file conf squid saya
http_port 10.8.9.9:65530

icp_port 0
hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_mem 64 MB
cache_dir ufs /data/squid/cache 256 16 256
cache_access_log /data/squid/log/access.log
cache_store_log /data/squid/log/store.log

mime_table /etc/squid/mime.conf
pid_filename /var/run/squid.pid
log_fqdn off

dns_nameservers 10.8.9.119 222.124.204.34
hosts_file /etc/hosts

auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

request_header_max_size 20 KB
request_body_max_size 1024 KB

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 pacomnet src 10.8.9.0/24
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 563
acl Safe_ports port 80          # http
#acl Safe_ports port 21         # ftp
acl Safe_ports port 443 563     # https, snews
#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 CONNECT method CONNECT


acl waktudownload time 08:00-17:02
acl directconn dstdomain yahoo.com
no_cache deny directconn

acl porn url_regex -i "/etc/squid/acl/porn"
acl noporn url_regex -i "/etc/squid/acl/noporn"

always_direct deny all

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow noporn
http_access deny porn
http_access allow pacomnet
http_access allow localhost
http_access deny all

http_reply_access allow all

icp_access deny all


reply_header_max_size 20 KB
reply_body_max_size 4096000 allow waktudownload


cache_mgr [EMAIL PROTECTED]
cache_effective_user squid
cache_effective_group squid

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

logfile_rotate 5
forwarded_for on

coredump_dir /var/spool/squid



--jo--
http://vblade.blogspot.com
What you Think and what you Feel and what Manifests is always a Match

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke