Follow us on...
Follow us on G+ Follow us on Twitter Follow us on Facebook Watch us on YouTube
Register
Results 1 to 1 of 1
  1. #1
    Status
    Offline
    Abduls Albattamy's Avatar
    Newbie
    Join Date
    Jun 2012
    Posts
    31
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0

    Cache tidak Terikod, Ukuran selalu berubah

    [ASK] mas Komandan FMI ane nak tanya

    Kenapa dalam squid ane [cachenya] tidak mau tersimpan?
    Misalnya saya cek [ df -h ] tertera space yang tertera 1200MB.
    Tapi selang beberapa menit saya cek ulang [ df -h ] kok malah berubah menjadi 90MB/Berkurang ukuran cachenya.

    * Muncul juga TCP_DENIED , padahal LAN sudah saya masukan di aclnya

    Mohon pencerahanya mas komandan . Tanks

    berikut Squid.conf dan beserta Topologinya :

    Tip

    #---------------------------------------------------------------#
    # Port
    #---------------------------------------------------------------#

    http_port 3128 transparent
    icp_port 3130
    prefer_direct off

    #---------------------------------------------------------------#
    # Mengatasi Facebook Blank setelah login
    #---------------------------------------------------------------#

    server_http11 on

    #---------------------------------------------------------------#
    # Cache & Object
    #---------------------------------------------------------------#

    cache_mem 150 MB
    cache_swap_low 98
    cache_swap_high 99
    max_filedesc 8192
    maximum_object_size 128 MB
    minimum_object_size 0 KB
    maximum_object_size_in_memory 128 KB

    ipcache_size 4096
    ipcache_low 98
    ipcache_high 99
    fqdncache_size 4096
    cache_replacement_policy heap LFUDA
    memory_replacement_policy heap GDSF

    #----------------------------------------------------------------#
    # cache_dir <type> <Directory-Name> <Space in Mbytes> <Level1> <Level2> <options>
    #----------------------------------------------------------------#
    cache_dir aufs /cache 100 16 256

    #cache_dir aufs /proxy/cache1 12000 28 256
    #cache_dir aufs /proxy/cache2 12000 28 256
    #cache_dir aufs /proxy/cache3 12000 28 256
    #cache_dir aufs /proxy/cache4 12000 28 256
    #cache_dir aufs /proxy/cache5 12000 28 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 180.131.145.145 180.131.144.144 208.67.222.222
    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 20 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 10000 # webmin
    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 Safe_ports port 110 # POP3
    acl Safe_ports port 25 # SMTP
    acl Safe_ports port 2095 2096 # webmail from cpanel
    acl Safe_ports port 2082 2083 # cpanel

    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

    #tambahan
    acl store_rewrite_list urlpath_regex \/(get_video\?|videodownload\?|videoplayback.*id)


    #---------------------------------------------------------------#
    # Refresh Pattern
    #---------------------------------------------------------------#

    #youtube's videos - tambahan
    refresh_pattern (get_video\?|videoplayback\?|videodownload\?) 5259487 99999999% 5259487 override-expire ignore-reload ignore-private negative-ttl=0

    # pictures & images
    refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private
    refresh_pattern -i \.(xml|html|htm|js|txt|css|php)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth

    #sound, video multimedia
    refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
    refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private

    # files
    refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth
    refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth
    refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth

    # -- refresh pattern for specific sites -- #
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod ignore-no-cache
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 28800 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 50% 2880 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern -i http://[^a-z\.]*onemanga\.com/? 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth
    refresh_pattern ^ 720 100% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-auth

    #default option
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
    refresh_pattern . 0 20% 4320

    #---------------------------------------------------------------#
    # SNMP
    #---------------------------------------------------------------#

    snmp_port 3401
    acl snmpsquid snmp_community public
    snmp_access allow snmpsquid localhost
    snmp_access deny all

    #---------------------------------------------------------------#
    # ALLOWED ACCESS
    #---------------------------------------------------------------#

    acl ProxyServer src 192.168.100.0/24
    acl LAN src 192.168.2.0/24
    http_access allow hotspot
    http_access allow ProxyServer
    http_access allow LAN
    http_access allow localhost
    http_access deny all
    http_reply_access allow all
    icp_access allow hotspot
    icp_access allow ProxyServer
    #icp_access allow PulsaServer
    icp_access allow localhost
    icp_access deny all
    always_direct deny all

    Click here to enlarge

    Click here to enlarge
    Last edited by Abduls Albattamy; 11-03-2013 at 17:04.

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 25-12-2012, 09:39
  2. Kenapa Ya Dns speedy saya di mikrotik selalu berubah
    By anggun rante in forum General Networking
    Replies: 6
    Last Post: 25-11-2012, 17:39
  3. [ASK] Space/size pemakaian cache selalu Berubah
    By Rila Marila in forum General Networking
    Replies: 0
    Last Post: 21-10-2012, 11:49
  4. Gimana supaya MAC Address tidak berubah ?
    By paul_hap in forum Wireless Networking
    Replies: 2
    Last Post: 26-04-2011, 14:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •