Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [ASK] kenapa 100% MISS

    Scheduled Pinned Locked Moved Indonesian
    4 Posts 2 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      debula
      last edited by

      ;D  ;D izinkan newbe ganteng ini menanyakan keanehan pada proxynya

      hardware :
      prosesor amd athlon XII
      ram 1gb (hihihi)
      HD 320 gb
      1 lancard tunggal

      ini squid confignya

      # Do not edit manually !
      http_port 192.168.11.2:3128 transparent 
      http_port 127.0.0.1:80 transparent 
      icp_port 0
      
      pid_filename /var/run/squid.pid
      cache_effective_user proxy
      cache_effective_group proxy
      error_directory /usr/local/etc/squid/errors/English
      icon_directory /usr/local/etc/squid/icons
      visible_hostname localhost
      cache_mgr admin@localhost
      access_log /var/squid/logs/access.log
      cache_log /var/squid/logs/cache.log
      cache_store_log none
      shutdown_lifetime 0 seconds
      # Allow local network(s) on interface(s)
      acl localnet src  192.168.11.0/255.255.255.0
      forwarded_for transparent
      via off
      uri_whitespace strip
      dns_nameservers 202.134.0.155 8.8.8.8 127.0.0.1 
      
      cache_mem 8 MB
      maximum_object_size_in_memory 4 KB
      memory_replacement_policy heap GDSF
      cache_replacement_policy heap LFUDA
      cache_dir coss /var/squid/coss 50 max-size=4096 block-size=512
      cache_dir aufs /var/squid/cache 10 16 256 min-size=4096
      minimum_object_size 0 KB
      maximum_object_size 50 MB
      offline_mode off
      cache_swap_low 90
      cache_swap_high 95
      
      # No redirector configured
      
      # Setup some default acls
      acl all src 0.0.0.0/0.0.0.0
      acl localhost src 127.0.0.1/255.255.255.255
      acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 88 3128 1025-65535
      acl sslports port 443 563 88
      acl manager proto cache_object
      acl purge method PURGE
      acl connect method CONNECT
      acl partialcontent_req req_header Range .*
      acl mallware url_regex "/usr/local/etc/squid/mallware.url"
      acl conficker url_regex "/usr/local/etc/squid/conficker.url"
      
      #acl dynamic urlpath_regex cgi-bin \?
      include /usr/local/etc/squid/tunning.conf
      acl allowed_subnets src 192.168.10.0/24 10.0.0.0/24 192.168.11.0/24 
      #cache deny dynamic
      http_access allow manager localhost
      
      # Allow external cache managers
      acl ext_manager_1 src 127.0.0.1 
      http_access allow manager ext_manager_1
      
      http_access deny mallware
      http_access deny conficker
      http_access deny manager
      http_access allow purge localhost
      http_access deny purge
      http_access deny !safeports
      http_access deny CONNECT !sslports
      
      # Always allow localhost connections
      http_access allow localhost
      
      quick_abort_min 32 KB
      quick_abort_max 128 KB
      quick_abort_pct 75
      range_offset_limit 0 MB
      request_body_max_size 0 allow all
      reply_body_max_size 0 deny all
      
      # Custom options
      zph_mode tos
      zph_local 0x30
      zph_parent 0
      zph_option 136
      
      # Allow local network(s) on interface(s)
      http_access allow localnet
      http_access allow allowed_subnets
      
      # Default block all to be sure
      http_access deny all
      
      

      saya bingung kenapa gak ada aktivitas HIT sama sekali di access.log nya..

      1 Reply Last reply Reply Quote 0
      • K
        kaptenhook
        last edited by

        itu proxynya udah running berapa hari om??? coba diporting dimari juga squidclient -p 80 mgr:info nya

        barangkali nanti dibawah bisa dibantu temen temen yang ahli urusan cumi-cumi  ;D ;D ;D ;D

        1 Reply Last reply Reply Quote 0
        • D
          debula
          last edited by

          sebenarnya saya masih bingung di bagian ini

          cache_mem 8 MB
          maximum_object_size_in_memory 4 KB
          memory_replacement_policy heap GDSF
          cache_replacement_policy heap LFUDA
          [b]cache_dir coss /var/squid/coss 50 max-size=4096 block-size=512
          cache_dir aufs /var/squid/cache 10 16 256 min-size=4096[/b]
          minimum_object_size 0 KB
          maximum_object_size 50 MB
          offline_mode off
          cache_swap_low 90
          cache_swap_high 95
          

          hardisk saya kan 320gb, terus brp nilai yang harus di isi di atas itu tadi itu yg di tebalin?

          kemudian, 1 lagi, antara lusca dan squid, apakah harus instal squid dulu baru lusca, gak perlu install squid, cukup install lusca (disini saya mau pakai lusca ni ceritanya)

          1 Reply Last reply Reply Quote 0
          • K
            kaptenhook
            last edited by

            sedikit membantu saja, untuk nilai hd bisa dikasih kecil dulu misalkan 40960 atau kelipatannya terserah entar kalo sudah cache mulai membengkak bisa ditambah lagi nilai hdnya, untuk instal squid atau lusca dulu, sebaiknya dibaca treat yang sudah ada, banyak kok temen temen yang sudah membahasnya, coba dibaca ulang lagi entar akan tambah ilmu  ;D ;D

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.