
Copy Paste Juga sehh konfig squidnya, cuman ada beberapa yg dirubah…; jikalau ada saran²nya pls correct yah…
# WELCOME TO SQUID 2.6.STABLE1
# —————————-
# NETWORK OPTIONS
# —————————————————————————–
http_port 3128 transparent
icp_port 3130 transparent
# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# —————————————————————————–
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
# OPTIONS WHICH AFFECT THE CACHE SIZE
# —————————————————————————–
cache_mem 256 MB
cache_swap_low 99
cache_swap_high 99
maximum_object_size 100 MB
maximum_object_size_in_memory 32 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# —————————————————————————–
cache_dir ufs /cache/cache1 2000 16 256
cache_dir ufs /cache/cache2 2000 16 256
cache_dir ufs /cache/cache3 2000 16 256
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
mime_table /usr/share/squid/mime.conf
pid_filename /var/run/squid.pid
log_fqdn off
client_netmask 255.255.255.0
# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# —————————————————————————–
ftp_passive on
ftp_sanitycheck on
hosts_file /etc/hosts
diskd_program /usr/lib/squid/diskd_daemon
# OPTIONS FOR TUNING THE CACHE
# —————————————————————————–
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern .gif 4320 50% 43200
refresh_pattern .jpg 4320 50% 43200
refresh_pattern .tif 4320 50% 43200
refresh_pattern .png 4320 50% 43200
refresh_pattern .jpeg 4320 50% 43200
refresh_pattern .exe 4320 50% 43200
refresh_pattern .swf 4320 50% 43200
refresh_pattern .pdf 4320 50% 43200
refresh_pattern .3gp 4320 50% 43200
refresh_pattern .mp3 4320 50% 43200
refresh_pattern .bin 4320 50% 43200
refresh_pattern ^http://*.friendster.com/.* 720 100% 4320
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yahoo.*/.* 720 100% 4320
refresh_pattern ^http://*.yimg.*/.* 720 100% 4320
refresh_pattern ^http://*.gmail.*/.* 720 100% 4320
refresh_pattern ^http://*.google.*/.* 720 100% 4320
refresh_pattern ^http://*.korea.*/.* 720 100% 4320
refresh_pattern ^http://*.akamai.*/.* 720 100% 4320
refresh_pattern ^http://*.windowsmedia.*/.* 720 100% 4320
refresh_pattern ^http://*.googlesyndication.*/.* 720 100% 4320
refresh_pattern ^http://*.plasa.*/.* 720 100% 4320
refresh_pattern ^http://*.telkom.*/.* 720 100% 4320
refresh_pattern ^http://*.multiply.*/.* 720 100% 4320
refresh_pattern ^http://id.mail.yahoo.com/.* 720 100% 4320
refresh_pattern ^ftp: 10080 95% 40320 reload-into-ims override-lastmod
refresh_pattern . 0 20% 4320 reload-into-ims override-lastmod
quick_abort_min 0 KB
quick_abort_max 0 KB
# ACCESS CONTROLS
# —————————————————————————–
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl notsex url_regex -i “/etc/squid/notsex”
acl sex url_regex -i “/etc/squid/sex”
no_cache deny SEX
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.0.1-192.168.0.99/255.255.255.255
acl pusat src 192.168.0.100/255.255.255.255
acl kabel src 192.168.1.0/24
acl lab2 src 192.168.2.0/24
acl kuri src 192.168.0.202/255.255.255.255
acl erwin src 203.130.244.19/255.255.255.255
cache deny QUERY
http_access allow notsex all
http_access deny sex all
http_access allow our_networks
http_access allow localhost
http_access allow kabel
http_access allow pusat
http_access allow lab2
http_access allow kuri
http_access allow erwin
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr erwinpasali@gmail.com
visible_hostname www.smanpat.net
httpd_accel_no_pmtu_disc on
always_direct allow all
icon_directory /usr/share/squid/icons
coredump_dir /var/spool/squid
ie_refresh on
Recent Comments