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

Squid throttle MP3-Solved

Indonesian
6
19
10.1k
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.
  • G
    grage95
    last edited by Oct 24, 2009, 3:09 AM Oct 24, 2009, 2:58 AM

    masih menggunakan squid-2.6.STABLE21 ??

    config squidnya yang kamu buat masih error,

    contoh di box  pfsense1.2.3RC3 dan menggunakan proxy lusca-1.4_HEAD

    jika menggunakan command squidclient -p 80 cache_object://localhost/config |grep -i delay

    harus muncul,

    squidclient -p 80 cache_object://localhost/config |grep -i delay

    request_body_delay_forward_size 0 Allow all
    delay_pools 1
    delay_class 1 2
    delay_access 1 Allow localnet throttle_exts
    delay_access 1 Deny all
    delay_parameters 1 -1/-1 20480/20480
    delay_initial_bucket_level 100

    dan untuk

    squidclient -p 80 cache_object://localhost/delay

    squidclient -p 80 cache_object://localhost/delay

    HTTP/1.0 200 OK
    Server: Lusca/LUSCA_HEAD
    Date: Sat, 24 Oct 2009 02:43:50 GMT
    Content-Type: text/plain
    Expires: Sat, 24 Oct 2009 02:43:50 GMT
    X-Cache: MISS from PROXY
    X-Cache-Lookup: MISS from PROXY:80
    Via: 1.0 proxy.pfsense:80 (Lusca/LUSCA_HEAD)
    Connection: close

    Delay pools configured: 1

    Pool: 1
           Class: 2

    Aggregate:
                   Disabled.

    Individual:
                   Max: 20480
                   Rate: 20480
                   Current: 49:20480 13:20480 10:20480 100:20480 48:20480 15:20480 18:20480 12:20480 231:20480 106:20480 108:20480

    Memory Used: 3352 bytes

    Current: 49:20480 13:20480

    artinya, ip client yang aktif download  x.x.x.49/24,  x.x.x.13/24, etc kena limit 20480/s = 20KB/s

    grep -i mp3 /var/squid/acl/throttle_exts.acl

    .mp3$

    NOTE:
    -delay_pool tidak efektif untuk melimit DAP/IDM (DOWNLOAD ACCELARTOR)/INTERNET DOWNLOAD MANAGER
    -delay_pool bisa di tipu dengan menambahkan karakter ? pada akhir url file yang kita download, ex: http://download.com/mp3?
    -config squid yang kamu buat, berbeda dengan config hasil ouput dari  webgui pfsense

    1 Reply Last reply Reply Quote 0
    • Z
      zass
      last edited by Oct 24, 2009, 3:19 AM

      config squid cuma saya untul optimal kan squid , iaitu ubah 127.0.0.1 kepada LAN
      ip saya iaitu 192.19.63.* , kemudian saya revert semula kpd asal.

      sudah cuba lusca tapi tak berhasil , delete cacheboy-1.6, revert back to squid 2.6

      saya sudah tick kan "Allow users on interface" ,

      1 Reply Last reply Reply Quote 0
      • Z
        zass
        last edited by Oct 24, 2009, 4:08 AM

        Maaf , sudah berhasil , cuba download lain extension (tgz) current dapat di catch oleh squid .

        Mungkin file mp3 tu berlainan extension nya. Btw terima kasih grage95 kerana sudi
        menjawab soalan newbie saya. Thanks

        1 Reply Last reply Reply Quote 0
        • G
          grage95
          last edited by Oct 24, 2009, 5:17 AM Oct 24, 2009, 5:02 AM

          its ok,
          tapi apakah  ekstension mp3 masih tidak bisa di current catch oleh squid?

          config squid mu =
          $ grep -i mp3 /var/squid/acl/throttle_exts.acl
          .mp3$
          .mp3$
          .MP3$

          cukup satu sahaja .mp3$, sebab di squid sudah ada option -i (not case sensitive )
          jadi tidak perlu lagi menambah MP3, cukup tick saja Throttle multimedia files

          TIPS untuk update ke quid-2.7STABEL7 / LUSCA_HEAD

          download new squid.inc http://www.pfsense.org/packages/config/squid/squid.inc and place to /usr/local/pkg/

          delete squid-2.6.21
          pkg_delete squid-2.6.21

          install new squid dan save config

          jika ingin update to squid-2.7.7

          pkg_add -rv http://shakau.googlepages.com/full-squid-2.7.7.tbz
          rehash

          jika ingin update to lusca

          pkg_add -rv http://shakau.googlepages.com/full-lusca-1.4.tbz
          rehash

          jika sudah ok baru di squid.inc  ubah 127.0.0.1 kepada ip LAN kamu
          dan restart squid

          senang bisa membantu

          1 Reply Last reply Reply Quote 0
          • Z
            zass
            last edited by Oct 24, 2009, 9:56 AM Oct 24, 2009, 9:48 AM

            Sudah try sekali lagi menggunakan tips yang diberi:

            php: : SQUID is installed but not started. Not installing redirect rules.
            Oct 24 17:19:35 php: : SQUID is installed but not started. Not installing redirect rules.
            Oct 24 17:19:30 check_reload_status: reloading filter
            Oct 24 17:19:29 squid[6646]: Bungled squid.conf line 27: cache_dir diskd /var/squid/cache 3000 16 256
            Oct 24 17:19:29 php: /pkg_edit.php: Starting Squid
            Oct 24 17:19:27 squid[6628]: Bungled squid.conf line 27: cache_dir diskd /var/squid/cache 3000 16 256

            inilah yang keluar , revert balik

            maaf saya lupa , saya cuba install cacheboy sebab pf pakai PIII

            1 Reply Last reply Reply Quote 0
            • G
              grage95
              last edited by Oct 24, 2009, 10:05 AM Oct 24, 2009, 9:56 AM

              INFO :

              lusca/cacheboy  NOT SUPPORT UFS/DISKD ONLY SUPPORT AUFS / COSS /NULL
              squid-2.7.7 SUPPORT UFS/DISKD/AUFS/COSS/NULL

              for optimal performance tunning cache :
              jika menggunakan squid-2.6.xx, gunakan DISKD
              jika menggunakan squid-7.7/lusca head gunakan AUFS

              edit dan save dengan webgui Proxy server: Cache management >> Hard disk cache system >> aufs

              taken from http://code.google.com/p/lusca-cache/wiki/LuscaChangeLog
              The diskd and ufs storage types have been removed, leaving only aufs, coss and null. These types will return later on when the disk io layers have been tidied up and re-unified.

              1 Reply Last reply Reply Quote 0
              • Z
                zass
                last edited by Oct 24, 2009, 10:18 AM

                Berhasil :

                $ pkg_info |grep squid
                lightsquid-1.7.1_1  A light and fast web based squid proxy traffic analyser
                squid-2.7.7        HTTP Caching Proxy
                squid_radius_auth-1.10 RADIUS authenticator for squid proxy 2.5 and later

                terima kasih , akhir nya menggunakan Squid 2.7.7 nanti cuba pula lusca !

                1 Reply Last reply Reply Quote 0
                • Y
                  yellowhat89
                  last edited by Oct 26, 2009, 6:29 PM

                  NOTE:
                  1. delay_pool tidak efektif untuk melimit DAP/IDM (DOWNLOAD ACCELARTOR)/INTERNET DOWNLOAD MANAGER
                  2. delay_pool bisa di tipu dengan menambahkan karakter ? pada akhir url file yang kita download, ex: http://download.com/mp3?

                  1. tidak efektif bagaimana om? di tempatku terlimit walau bisa bocor sekitar 2-5 KBps.
                  2. not work, have tried..

                  Stay hungry, Stay Foolish

                  1 Reply Last reply Reply Quote 0
                  • G
                    grage95
                    last edited by Oct 27, 2009, 3:15 AM

                    http://forum.linux.or.id/viewtopic.php?f=16&t=271&start=720#p114290

                    1 Reply Last reply Reply Quote 0
                    • Y
                      yellowhat89
                      last edited by Oct 28, 2009, 2:51 PM

                      aneh juga ya,,,, aku menggunakan settingan default pf, dan walau pakai trik satu tanda tanya, ataupun ada yang bilang tiga tanda tanya tetap ndak bisa tembus… kira2 apa ya yg membuat berbeda.

                      Stay hungry, Stay Foolish

                      1 Reply Last reply Reply Quote 0
                      • topic:timeago-later,2 months
                      • T
                        tomplee
                        last edited by Dec 22, 2009, 12:29 PM

                        @yellowhat89:

                        NOTE:
                        1. delay_pool tidak efektif untuk melimit DAP/IDM (DOWNLOAD ACCELARTOR)/INTERNET DOWNLOAD MANAGER
                        2. delay_pool bisa di tipu dengan menambahkan karakter ? pada akhir url file yang kita download, ex: http://download.com/mp3?

                        1. tidak efektif bagaimana om? di tempatku terlimit walau bisa bocor sekitar 2-5 KBps.
                        2. not work, have tried..

                        iya-e tempatku bobol juga.. apa lagi kalau downloadnya video dari youtube dsb; pasti lewat semua; terus kalau mau mengatasi pake traffic shapper bawaann pfsensnya bisa ngatasi IDM gak bro … tak coba pake penalty box masih lolos juga-e..

                        MB : ASUS
                        PROC : Intel(R) Pentium(R) 4 CPU 2.40GHz
                        RAM : 1GB
                        HD : 20 GB
                        NETWORK : REALTEK 10/100
                        NETWORK : TP-LINK 10/100
                        PFESENSE :  1.2.2   
                        DIGUNAKAN UNTUK : RTRWNET

                        1 Reply Last reply Reply Quote 0
                        • G
                          grage95
                          last edited by Dec 25, 2009, 1:29 AM

                          tambahkan utk list filenya

                          urlpath_regex -i  get_video?video_id,  videodownload? dan flv di squid.inc

                          $multimedia = 'get_video?video_id, videodownload?, aiff?, flv asf,avi,divx,mov,mp3,mp4, dst …

                          1 Reply Last reply Reply Quote 0
                          • topic:timeago-later,about a month
                          • B
                            bfsense
                            last edited by Jan 27, 2010, 3:10 PM

                            squidclient -p 80 cache_object://192.168.2.1:80/config | grep -i delay

                            client: ERROR: Cannot connect to localhost:80: Connection refused

                            kok errornya seprti itu yak…
                            setelah cek cek ... cari cari ...
                            tapi ga bisa juga saya menyelesaikan permasalahannya...
                            selain minim pengetahuan di CLI bsd ....
                            :d
                            mohon pencerahan buat rekan semua....
                            tq sebelumnya telah merepotkan brader semua :D

                            Masih belajar dan terus belajar | live on Bandar Lampung

                            1 Reply Last reply Reply Quote 0
                            • topic:timeago-later,2 months
                            • I
                              ipoelnet
                              last edited by Mar 25, 2010, 5:27 AM

                              squidclient -p 80 mgr:menu

                              
                              $ squidclient -p 80 mgr:menu
                              HTTP/1.0 200 OK
                              Server: Lusca/LUSCA_HEAD
                              Date: Thu, 25 Mar 2010 05:27:08 GMT
                              Content-Type: text/plain
                              Expires: Thu, 25 Mar 2010 05:27:08 GMT
                              X-Cache: MISS from ServerDarutTaqwa
                              Via: 1.0 ServerDarutTaqwa:80 (Lusca/LUSCA_HEAD)
                              Connection: close
                              
                               mem                   	Memory Utilization	public
                               cbdata                	Callback Data Registry Contents	public
                               events                	Event Queue	public
                               coss                  	COSS Stats	public
                               config                	Current Squid Configuration	hidden
                               ipcache               	IP Cache Stats and Contents	public
                               fqdncache             	FQDN Cache Stats and Contents	public
                               idns                  	Internal DNS Statistics	public
                               external_acl          	External ACL stats	public
                               http_headers          	HTTP Header Statistics	public
                               menu                  	This Cachemanager Menu	public
                               shutdown              	Shut Down the Squid Process	hidden
                               reconfigure           	Reconfigure the Squid Process	hidden
                               offline_toggle        	Toggle offline_mode setting	hidden
                               info                  	General Runtime Information	public
                               filedescriptors       	Process Filedescriptor Allocation	public
                               objects               	All Cache Objects	public
                               vm_objects            	In-Memory and In-Transit Objects	public
                               openfd_objects        	Objects with Swapout files open	public
                               pending_objects       	Objects being retreived from the network	public
                               client_objects        	Objects being sent to clients	public
                               io                    	Server-side network read() size histograms	public
                               counters              	Traffic and Resource Counters	public
                               peer_select           	Peer Selection Algorithms	public
                               digest_stats          	Cache Digest and ICP blob	public
                               5min                  	5 Minute Average of Counters	public
                               60min                 	60 Minute Average of Counters	public
                               utilization           	Cache Utilization	public
                               histograms            	Full Histogram Counts	public
                               active_requests       	Client-side Active Requests	public
                               iapp_stats            	libiapp statistics	public
                               curcounters           	current high level counters	public
                               squidaio_counts       	Async IO Function Counters	public
                               storedir              	Store Directory Stats	public
                               store_check_cachable_stats	storeCheckCachable() Stats	public
                               store_io              	Store IO Interface Stats	public
                               pconn                 	Persistent Connection Utilization Histograms	public
                               refresh               	Refresh Algorithm Statistics	public
                               delay                 	Delay Pool Levels	public
                               delay2                	Delay Pool Statistics	public
                               forward               	Request Forwarding Statistics	public
                               client_list           	Cache Client List	public
                               asndb                 	AS Number Database	public
                               server_list           	Peer Cache Statistics	public
                               non_peers             	List of Unknown sites sending ICP messages	public
                              
                              

                              tinggal pilih :

                              **squidclient -p 80 mgr:**tinggalpilih

                              Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

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