Ask Ubuntu 8.04 squid jarang HIT

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
rijanarko
Posts: 54
Joined: 09 Nov 2011, 00:57

Ask Ubuntu 8.04 squid jarang HIT

Postby rijanarko » 18 Aug 2014, 21:16

gan tolong pencerahannya
topologi
ubuntu proxy 10.04
...................|
inet - modem - mikrotik - ubuntu 8.04 back up - client (jarang HIT)
...................|
client (sudah bekerja normal) port 80 d belokkan ke proxy 10.04

modem dial dari mikrotik
ip mikrotik 192.168.88.11-ke client 192.168.87.1 - ke ubuntu
ip ubuntu proxy 10.04 192.168.87.2 1 nic
ip ubuntu 8.04 eth0 192.168.87.3 eth1 192.168.88.1 2 nic

configurasi squid yg pas untuk ubuntu 8.04 memang beda sama squid 10.04 kah?

ane nyoba pakai squid.conf punya 10.04 gak jalan sebagian
patren nya yg gak bisa

adakah yg kurang dengan squid.conf ane ini, koq jarang banget HIT
meskipun buka halaman yg sama berkali"?

berikut penampaknnya

#==================================$
# Proxy Server Versi 2.7.Stable3
# by th@opikdesign.com
#==================================$
#################################################################
# Port
#################################################################
http_port 3128 transparent
#icp_port 3130
icp_port 0
prefer_direct off
#################################################################
# Cache & Object
#################################################################
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100%

pipeline_prefetch on
vary_ignore_expire on
reload_into_ims on

icp_hit_stale on
query_icmp on
shutdown_lifetime 10 seconds

cache_mem 6 MB
cache_swap_low 98%
cache_swap_high 99%
#max_filedesc 8192
maximum_object_size 1024 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 4 bytes
ipcache_size 1024
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
#################################################################
# cache_dir
cache_dir aufs /home/proxy1 9000 21 256
cache_dir aufs /home/proxy2 9000 21 256
cache_dir aufs /home/proxy3 9000 21 256
cache_dir aufs /home/proxy4 9000 21 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
cache_swap_log /var/log/squid/swap.state
dns_nameservers /etc/resolv.conf
emulate_httpd_log off
hosts_file /etc/hosts
half_closed_clients off
negative_ttl 1 minutes
#################################################################
# Rules: Safe Port
#################################################################
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 873 # https snews rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 631 # cups
acl Safe_ports port 901 # SWAT
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 873 # rsync

acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports
#################################################################
# Refresh Pattern
#################################################################
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|mpg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(deb|rpm|exe|ram|bin|pdf|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(zip|gz|arj|lha|lzh|tar|tgz|cab|rar)$ 10080 95% 43200 override-expire ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js|php|asp|aspx|cgi) 1440 40% 40320
refresh_pattern . 0 20% 4320
#################################################################
# HAVP + Clamav
#################################################################
cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default
#################################################################
# HIERARCHY (BYPASS CGI)
#################################################################
hierarchy_stoplist cgi-bin ? .js .jsp
acl QUERY urlpath_regex cgi-bin \? .js .jsp
cache deny QUERY
#################################################################
# SNMP
#################################################################
snmp_port 3401
acl snmpsquid snmp_community public
snmp_access allow snmpsquid localhost
snmp_access deny all
#################################################################
# ALLOWED ACCESS
#################################################################
acl persegi src 192.168.88.0/24 ## Sesuaikan
http_access allow persegi
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow persegi
icp_access allow localhost
icp_access deny all
always_direct deny all
#################################################################
# Cache CGI & Administrative
#################################################################
cache_mgr k_celluler@yahoo.co.id
cachemgr_passwd 123 all
visible_hostname k-net.com
cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 14


terimakasih atas pencerahannya
secara ini buat back up kalo" proxy error
Last edited by rijanarko on 27 Feb 2016, 22:49, edited 1 time in total.
Reason: penambahan keterangan

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 14 guests