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

    Optimalisasi Setting pfSense 1.2.x Traffic Shaping dgn Squid Transparent Proxy

    Scheduled Pinned Locked Moved Indonesian
    42 Posts 18 Posters 46.0k 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.
    • C
      cingkes
      last edited by

      Maaf kalau masalah saya sudah pernah dibahas tolong diarahkan linknya.

      sy br buka warnet aktifitas sehari2x game  ;D baru x ini jd serius ??? jd bc diinternet ada pfsense trus coba diinstall untuk server proxy/cache.

      mesin sy p4 2,6 Ghz, 512 RAM DDR1 PC3200, 40 G HDD IDE 5300 rpm
      dengan pfsense 123-release dgn squid 2.7.x

      settingan msh standart.
      tolong dikoreksi konfigurasi yg sy punya
      soalnya TCP_HIT jarang sekali ketemu. rata-rata cuma ke statis sj yg HIT.
      Tolong para suhu bantu saya mana yang kurang dari config squid ini.
      soalnya saya mau juga bisa buatin Internet jadi wuz.wuz..wuz

      vi squid.conf

      –-----------------

      Do not edit manually !

      http_port 192.168.3.2:3128
      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 5 seconds

      Allow local network(s) on interface(s)

      acl localnet src  192.168.3.0/255.255.255.0
      forwarded_for off
      via off
      httpd_suppress_version_string on
      uri_whitespace strip

      cache_mem 6 MB
      maximum_object_size_in_memory 32 KB
      memory_replacement_policy heap GDSF
      cache_replacement_policy heap LFUDA
      cache_dir aufs /var/squid/cache 5000 16 256
      minimum_object_size 5 KB
      maximum_object_size 1500 KB
      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  3128 1025-65535
      acl sslports port 443 563
      acl manager proto cache_object
      acl purge method PURGE
      acl connect method CONNECT
      acl dynamic urlpath_regex cgi-bin ?
      cache deny dynamic
      http_access allow manager localhost

      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

      request_body_max_size 0 KB
      reply_body_max_size 0 allow all
      delay_pools 1
      delay_class 1 2
      delay_parameters 1 -1/-1 -1/-1
      delay_initial_bucket_level 100
      delay_access 1 allow all

      Allow local network(s) on interface(s)

      http_access allow localnet

      Default block all to be sure

      http_access deny all


      squidclient -p 80 cache_object://192.168.3.2/info


      HTTP/1.0 200 OK
      Server: squid
      Date: Mon, 13 Sep 2010 11:16:55 GMT
      Content-Type: text/plain
      Expires: Mon, 13 Sep 2010 11:16:55 GMT
      X-Cache: MISS from localhost
      X-Cache-Lookup: MISS from localhost:3128
      Connection: close

      Squid Object Cache: Version 2.7.STABLE9
      Start Time:    Mon, 13 Sep 2010 02:06:39 GMT
      Current Time:  Mon, 13 Sep 2010 11:16:55 GMT
      Connection information for squid:
              Number of clients accessing cache:      10
              Number of HTTP requests received:      105342
              Number of ICP messages received:        0
              Number of ICP messages sent:    0
              Number of queued ICP replies:  0
              Number of HTCP messages received:      0
              Number of HTCP messages sent:  0
              Request failure ratio:  0.00
              Average HTTP requests per minute since start:  191.4
              Average ICP messages per minute since start:    0.0
              Select loop called: 2602614 times, 12.686 ms avg
      Cache information for squid:
              Request Hit Ratios:    5min: 1.1%, 60min: 3.5%
              Byte Hit Ratios:        5min: 1.7%, 60min: 23.9%
              Request Memory Hit Ratios:      5min: 0.0%, 60min: 7.0%
              Request Disk Hit Ratios:        5min: 60.0%, 60min: 70.6%
              Storage Swap size:      265686 KB
              Storage Mem size:      6124 KB
              Mean Object Size:      26.98 KB
              Requests given to unlinkd:      0
      Median Service Times (seconds)  5 min    60 min:
              HTTP Requests (All):  0.27332  0.42149
              Cache Misses:          0.25890  0.44492
              Cache Hits:            0.00000  0.00379
              Near Hits:            0.00000  0.17711
              Not-Modified Replies:  0.00000  0.00000
              DNS Lookups:          0.06083  0.06657
              ICP Queries:          0.00000  0.00000
      Resource usage for squid:
              UP Time:        33016.692 seconds
              CPU Time:      201.896 seconds
              CPU Usage:      0.61%
              CPU Usage, 5 minute avg:        0.26%
              CPU Usage, 60 minute avg:      0.36%
              Process Data Segment Size via sbrk(): 0 KB
              Maximum Resident Size: 27808 KB
              Page faults with physical i/o: 0
      Memory accounted for:
              Total accounted:        12560 KB
              memPoolAlloc calls: 15075351
              memPoolFree calls: 15039747
      File descriptor usage for squid:
              Maximum number of file descriptors:  7207
              Largest file desc currently in use:    69
              Number of file desc currently in use:  60
              Files queued for open:                  0
              Available number of file descriptors: 7147
              Reserved number of file descriptors:  100
              Store Disk files open:                  0
              IO loop method:                    kqueue
      Internal Data Structures:
              10000 StoreEntries
                599 StoreEntries with MemObjects
                597 Hot Object Cache Items
                9848 on-disk objects

      sebelumnya terima kasih

      1 Reply Last reply Reply Quote 0
      • G
        gladizxx
        last edited by

        Kalo untuk Bittorrent.. yg port nya random.. apa bisa …squid nya mengatasi ..ya....  ;D

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