blom selesai nih kasus ane, mohon koreksi suhu & master :
nih konfigurasi squid ane
Code:
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl blok src 192.168.88.49
acl blok src 192.168.88.14
acl blok src 192.168.88.15
acl blok src 192.168.88.16
acl husin src 192.168.88.0/24
acl SSL_ports port 443
acl Safe_ports port 80 # 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 CONNECT method CONNECT
http_access allow manager localhost
http_access deny blok
http_access deny manager
http_access allow husin
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
# Ganti nama_pc menjadi nama atau ip pc yang diinstal squid
http_port 192.168.88.50:3128
#http_port act-as-origin http11
server_http11 on
hierarchy_stoplist cgi-bin ?
cache_mem 6 MB
cache_swap_low 98
cache_swap_high 99
ipcache_size 2048
ipcache_low 98
ipcache_high 99
maximum_object_size_in_memory 1 KB
maximum_object_size 20 MB
cache_dir aufs /cache1 20000 46 256
cache_dir aufs /cache2 20000 46 256
cache_dir aufs /cache3 20000 46 256
cache_dir aufs /cache4 20000 46 256
cache_dir aufs /cache5 20000 46 256
cache_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
#redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
#redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(class|css|js|gif|jpg)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(jpe|jpeg|png|bmp|tif)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(tiff|mov|avi|qt|mpeg)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(mpg|mpe|wav|au|mid)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire
refresh_pattern -i \.(asp|acgi|pl|shtml|php3|php)$ 2 20% 4320 reload-into-ims
refresh_pattern -i \.google\.co\.id$ 1440 100% 3500 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.co\.id$ 1440 100% 3500 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \.mail\.yahoo$ 1440 100% 3500 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern -i \? 2 20% 4320 reload-into-ims
refresh_pattern -i cgi-bin 2 20% 4320 reload-into-ims
refresh_pattern . 960 90% 43200 reload-into-ims
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
icp_hit_stale on
query_icmp on
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on
cache_mgr ada.deh@gmail.com
cachemgr_passwd 123456 all
client_db off
cache_effective_user proxy
cache_effective_group proxy
memory_pools off
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
icp_port 0
htcp_port 0
dns_nameservers 192.168.88.1
coredump_dir /var/spool/squid
terima kasih banyak.