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

    [SHARE] Update Lusca Release - r14371 (November 18, 2009)

    Scheduled Pinned Locked Moved Indonesian
    72 Posts 13 Posters 41.1k 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.
    • G
      grage95
      last edited by

      tunggu 15 menitan ?

      apakah crond sudah aktif ??

      edit crontab
      edit /etc/crontab
      tambahkan line berikut

      */5  *  *  *  *    /usr/local/bin/squidstats.pl gather 2 > /dev/null
      dan restart crontab, tunggu 1 jam apakah sudah menampillan graph :)

      agar supaya crontab tetap aktif saat di reboot,
      edit /cf/conf/config.xml  dan tambahkan list rules squidstats pada bagian crontab setelah kata2 <command></command>/usr/local/sbin/squid -k rotate

      contoh :

      ```
      <minute>0</minute>
                              <hour>0</hour>
                              <mday></mday>
                              <month>
      </month>
                              <wday>*</wday>
                              <who>root</who>
                              <command></command>/usr/local/sbin/squid -k rotate

      <minute>/5</minute>
                              <hour>
      </hour>
                              <mday></mday>
                              <month>
      </month>
                              <wday>*</wday>
                              <who>proxy</who>
                              <command></command>/usr/local/bin/squidstats.pl gather 2 > /dev/null

      1 Reply Last reply Reply Quote 0
      • S
        serangku
        last edited by

        om grage95 …
        mohon pencerahan ...

        spek mesin sbb :
        2 gb ram, 1 disk utk pfsense (ata), 1 disk utk coss (sata/1gb), 2 disk utk aufs (sata/2x50gb)
        hasil top

        top -n 3

        last pid: 35439;  load averages:  0.00,  0.02,  0.00  up 9+00:17:31    16:15:10
        121 processes: 1 running, 117 sleeping, 3 zombie

        Mem: 248M Active, 1475M Inact, 193M Wired, 59M Cache, 112M Buf, 22M Free
        Swap: 4096M Total, 80K Used, 4096M Free

        PID USERNAME  THR PRI NICE  SIZE    RES STATE  C  TIME  WCPU COMMAND
        28855 proxy      65  44    0  216M  165M ucond  1  0:00  0.49% squid
          958 root        1  45    0  1412K  712K select 1  3:48  0.00% supervise
          943 root        1  -8    0  1404K  464K piperd 1  1:14  0.00% readproctitle

        inactive memori begitu besar, free memori hanya 22M ...
        normalkah ?
        dan pernah swap ke disk ...
        juga pernah squid page fault erorr 1121 ..  ;D, setelah di restart, error kembali ke 0, menambah ram sedang direncanakan ...
        hanya nilai "1475M Inact" mengganggu ... dipake kemana saja
        apa karena coss kah ...

        terima kasih yah om ...

        1 Reply Last reply Reply Quote 0
        • T
          tomplee
          last edited by

          @tomplee:

          @grage95:

          coba cek dulu perlnya ang sudah terinstall

          pkg_info perl*

          jika masih menggunakan perl 5.8.8, update perlnya ke versi 5.8.9

          coba lusca paket baru lebih responsip hasil patch utak atik gathuk :) , lumayan responsif dan stabil,
          cuman cache swap nya harus di delete dulu baru di squid -z,

          http://squid-proxy-pkg.googlecode.com/files/pfsense-lusca-head-r14371_3.tbz (menggunakan perl-5.8.9_3.tbz) dan bisa jalan dengan perl-5.8.9_2.tbz

          atau update versi pfsensenya,
          versi 1.2.3 release lebih maknyuss paralel threadnya utk proxy daripada versi 1.2.2 release dan banyak lagi perbaikannya

          Oke tak cobanya update lusca yang baru..

          om grage tanya lagi..
          referensi adzap saya dari sini http://forum.pfsense.org/index.php/topic,12737.0.html
          kalau nurut turorial itu redirect_program /usr/local/libexec/adzap; di taroh si custom Custom Options squid, tapi kalo tak taruh di situ squidnya gak mau jalan .. kalau di taruh di tunning.conf bisa gak? redirect_program tu seharusnya naruh urutannya gimana?

          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

            @serangku:

            om grage95 …
            mohon pencerahan ...

            spek mesin sbb :
            2 gb ram, 1 disk utk pfsense (ata), 1 disk utk coss (sata/1gb), 2 disk utk aufs (sata/2x50gb)
            hasil top

            top -n 3

            last pid: 35439;  load averages:  0.00,  0.02,  0.00  up 9+00:17:31    16:15:10
            121 processes: 1 running, 117 sleeping, 3 zombie

            Mem: 248M Active, 1475M Inact, 193M Wired, 59M Cache, 112M Buf, 22M Free
            Swap: 4096M Total, 80K Used, 4096M Free

            PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
            28855 proxy      65  44    0   216M   165M ucond  1   0:00  0.49% squid
              958 root        1  45    0  1412K   712K select 1   3:48  0.00% supervise
              943 root        1  -8    0  1404K   464K piperd 1   1:14  0.00% readproctitle

            inactive memori begitu besar, free memori hanya 22M ...
            normalkah ?
            dan pernah swap ke disk ...
            juga pernah squid page fault erorr 1121 ..  ;D, setelah di restart, error kembali ke 0, menambah ram sedang direncanakan ...
            hanya nilai "1475M Inact" mengganggu ... dipake kemana saja
            apa karena coss kah ...

            terima kasih yah om ...

            kalo menggunakan coss jangan sering di restart squidnya atau servernya down,
            coss smenggunakan memory banyak pada asaat rebuilding swap,

            coba memory_pools nya di on kan  dan batasi nilainya misal 512 MB

            TAG: memory_pools_limit (bytes)

            Used only with memory_pools on:

            memory_pools_limit 50 MB

            If set to a non-zero value, Squid will keep at most the specified

            limit of allocated (but unused) memory in memory pools. All free()

            requests that exceed this limit will be handled by your malloc

            library. Squid does not pre-allocate any memory, just safe-keeps

            objects that otherwise would be free()d. Thus, it is safe to set

            memory_pools_limit to a reasonably high value even if your

            configuration will use less memory.

            If not set (default) or set to zero, Squid will keep all memory it

            can. That is, there will be no limit on the total amount of memory

            used for safe-keeping.

            To disable memory allocation optimization, do not set

            memory_pools_limit to 0. Set memory_pools to "off" instead.

            An overhead for maintaining memory pools is not taken into account

            when the limit is checked. This overhead is close to four bytes per

            object kept. However, pools may actually save memory because of

            reduced memory thrashing in your malloc library.

            #Default:

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

              @tomplee:

              om grage tanya lagi..
              referensi adzap saya dari sini http://forum.pfsense.org/index.php/topic,12737.0.html
              kalau nurut turorial itu redirect_program /usr/local/libexec/adzap; di taroh si custom Custom Options squid, tapi kalo tak taruh di situ squidnya gak mau jalan .. kalau di taruh di tunning.conf bisa gak? redirect_program tu seharusnya naruh urutannya gimana?

              belum pernah coba2 bermain2 dengan azap euy

              rekan lainnya mungkin bisa

              1 Reply Last reply Reply Quote 0
              • B
                bfsense
                last edited by

                omz omz semua mohon bantuan :d neh
                kira kira saya settingnya salah dimana

                FATAL: Bungled squid.conf line 52: snmp_access deny allcache deny dynamic
                Squid Cache (Version LUSCA_HEAD): Terminated abnormally.

                tq….

                maklom omz semua newbie

                Masih belajar dan terus belajar | live on Bandar Lampung

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

                  snmp_access deny allcache deny dynamic

                  aclny yang salah, harus di beneren tuh

                  coba paste kesini lengkapnya

                  1 Reply Last reply Reply Quote 0
                  • B
                    bfsense
                    last edited by

                    @grage95:

                    snmp_access deny allcache deny dynamic

                    aclny yang salah, harus di beneren tuh

                    coba paste kesini lengkapnya

                    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 81 3128 1025-65535
                    acl sslports port 443 563 81
                    acl manager proto cache_object
                    acl purge method PURGE
                    acl connect method CONNECT
                    acl dynamic urlpath_regex cgi-bin ?
                    acl snmp_host src 127.0.0.1
                    snmp_port 3401
                    acl snmppublic snmp_community public
                    snmp_access allow snmppublic snmp_host
                    snmp_access deny allcache deny dynamic (ga tau tiba tiba muncul ini) padahal dah ikutin step step dari omz grage…
                    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

                    itu omz grage
                    sebelumnya pakek lusca biasa normal jalannya
                    eh pas tak test pake yang snmp kok jadi kek gini :(
                    tolong bantuannya brader semua :d

                    Masih belajar dan terus belajar | live on Bandar Lampung

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

                      salah copy paste tuh,

                      yang bener yang ini

                      acl snmp_host src 127.0.0.1
                      snmp_port 3401
                      acl snmppublic snmp_community public
                      snmp_access allow snmppublic snmp_host
                      snmp_access deny all

                      di tempat anda :
                      snmp_access deny allcache deny dynamic

                      delet saja cache deny dynamic agar content dynamic bisa tercache

                      1 Reply Last reply Reply Quote 0
                      • B
                        bfsense
                        last edited by

                        @grage95:

                        salah copy paste tuh,

                        yang bener yang ini

                        acl snmp_host src 127.0.0.1
                        snmp_port 3401
                        acl snmppublic snmp_community public
                        snmp_access allow snmppublic snmp_host
                        snmp_access deny all

                        di tempat anda :
                        snmp_access deny allcache deny dynamic

                        delet saja cache deny dynamic agar content dynamic bisa tercache

                        udah omz grage
                        tapi pas tak reboot mesinnya
                        kok kembali ke posisi seperti itu :((
                        mohon pencerahannya kembali :d

                        Masih belajar dan terus belajar | live on Bandar Lampung

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

                          naro confignya dimana ?

                          1 Reply Last reply Reply Quote 0
                          • B
                            bfsense
                            last edited by

                            sesuai dengan petunjuk…
                            di squid.inc
                            tapi yang anehnya kok di squid.conf juga muncul :(

                            Masih belajar dan terus belajar | live on Bandar Lampung

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

                              coba diantara syntax  itu di kasih enter, artinya anatara syntax EOF kalo gak salah , harus ada line kosong, agar syntax yang di tambah tidak di generate menjadi satu. jadi setelah acl snmp itu tekan enter. save setting squidnya lagi. dan cek di hasil di generatenya, di squid.conf apakah masih tetap dalam satu baris.

                              1 Reply Last reply Reply Quote 0
                              • B
                                bfsense
                                last edited by

                                @grage95:

                                coba diantara syntax  itu di kasih enter, artinya anatara syntax EOF kalo gak salah , harus ada line kosong, agar syntax yang di tambah tidak di generate menjadi satu. jadi setelah acl snmp itu tekan enter. save setting squidnya lagi. dan cek di hasil di generatenya, di squid.conf apakah masih tetap dalam satu baris.

                                Tq omz grage :d
                                di oprek lagi …

                                Masih belajar dan terus belajar | live on Bandar Lampung

                                1 Reply Last reply Reply Quote 0
                                • S
                                  serangku
                                  last edited by

                                  siap dilaksanakan … komandan :D

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    fish
                                    last edited by

                                    @serangku:

                                    wewh …

                                    speechless deh buat om @grage95  8) 8)

                                    om nanya ...
                                    delay body max size sudah bisa di pake belum om ?
                                    info dr sini msh belum bisa http://www.techienuggets.com/commentList.jsp;jsessionid=49E99F73B18BCF12A6FC8D365CA4360F?tx=31762&tx=31762&d-49653-p=2

                                    lanjutkan ...

                                    sekedar konfirmasi aja, untuk delay_body_max_size udah resolved

                                    http://bugs.squid-cache.org/show_bug.cgi?id=2306

                                    memang untuk squid 2.6/2.7 musti di patch agar support, kalau mau
                                    bisa menggunakan 2-HEAD. sedang untuk support di cacheboy/lusca
                                    berhubung maintenernya si adrian aku rasa udah otomatis support
                                    karena dia rootnya ngambil dari 2-HEAD juga.

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

                                      aku nyoba dua pool, dengan delay_body_max_size
                                      startnya pasti pool 0
                                      kenapa yah ..?
                                      udah nyoba di patch juga sama euy hasilnya,
                                      kalau menggunakan 1 pool bisa berfungsi, lebih dari 1 pool jadi ngaco,

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        fish
                                        last edited by

                                        klo yg berjalan di server aku menggunakan squid 2.7 yg aku patch manual, OS nya OpenBSD

                                        confignya

                                        delay_class 1 3
                                        delay_parameters 1 16000/16000 -1/-1 8000/100000
                                        delay_body_max_size 100000 1 allow warnet allow_cache1
                                        delay_body_max_size 100000 1 deny all

                                        delay_class 2 3
                                        delay_parameters 2 48000/48000 -1/-1 10000/100000
                                        delay_body_max_size 100000 2 allow warnet jam_siang
                                        delay_body_max_size 100000 2 deny all

                                        delay_class 3 3
                                        delay_parameters 3 48000/48000 -1/-1 15000/100000
                                        delay_body_max_size 100000 3 allow warnet jam_malam
                                        delay_body_max_size 100000 3 deny all

                                        delay_class 4 3
                                        delay_parameters 4 48000/48000 -1/-1 20000/100000
                                        delay_body_max_size 100000 4 allow warnet jam_subuh
                                        delay_body_max_size 100000 4 deny all

                                        untuk patch squidnya aku lampirin skalian mungkin bisa ditelusuri bareng".

                                        http://bebasupload.com/xdsmab6zai2r/squid-patch.tgz.html

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          serangku
                                          last edited by

                                          update dari paket dari om @grage95
                                          sip dah …

                                          tail -f /var/squid/log/cache.log

                                          2010/02/16 17:35:20| clientCacheHit: Its not loop 301
                                          2010/02/16 17:35:40| clientCacheHit: Its not loop 301
                                          2010/02/16 17:35:41| clientCacheHit: Its not loop 301
                                          2010/02/16 17:35:42| clientCacheHit: Its not loop 301
                                          2010/02/16 17:35:42| clientCacheHit: Its not loop 301
                                          2010/02/16 17:35:56| clientCacheHit: Its not loop 301
                                          2010/02/16 17:35:58| clientCacheHit: Its not loop 301
                                          2010/02/16 17:36:08| clientCacheHit: Its not loop 301
                                          2010/02/16 17:36:16| clientCacheHit: Its not loop 301
                                          2010/02/16 17:36:18| clientCacheHit: Its not loop 301
                                          2010/02/16 17:36:27| clientCacheHit: Its not loop 301
                                          .... terus2an

                                          nyari di om google belum dapet penjelasannya ...
                                          mungkin teman2 disini ada yang paham arti dari log tersebut
                                          so far, browsing aman2 saja ...

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                            111ichael
                                            last edited by

                                            @serangku:

                                            update dari paket dari om @grage95
                                            sip dah …

                                            tail -f /var/squid/log/cache.log

                                            2010/02/16 17:35:20| clientCacheHit: Its not loop 301
                                            2010/02/16 17:35:40| clientCacheHit: Its not loop 301
                                            2010/02/16 17:35:41| clientCacheHit: Its not loop 301
                                            2010/02/16 17:35:42| clientCacheHit: Its not loop 301
                                            2010/02/16 17:35:42| clientCacheHit: Its not loop 301
                                            2010/02/16 17:35:56| clientCacheHit: Its not loop 301
                                            2010/02/16 17:35:58| clientCacheHit: Its not loop 301
                                            2010/02/16 17:36:08| clientCacheHit: Its not loop 301
                                            2010/02/16 17:36:16| clientCacheHit: Its not loop 301
                                            2010/02/16 17:36:18| clientCacheHit: Its not loop 301
                                            2010/02/16 17:36:27| clientCacheHit: Its not loop 301
                                            .... terus2an

                                            nyari di om google belum dapet penjelasannya ...
                                            mungkin teman2 disini ada yang paham arti dari log tersebut
                                            so far, browsing aman2 saja ...

                                            Ia.. saya juga di cache.log serin keluar log sprti di atas.. apa ya?

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