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

    Squid

    Scheduled Pinned Locked Moved Indonesian
    85 Posts 10 Posters 59.2k 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.
    • K
      kambeeng
      last edited by

      Untuk Squid biasanya di perlukan seting khusus, dan sepertinya setting squid di pfsense dan Squidguard sangat berbeda .. salah sedikit bisa fatal akibatnya.:D

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

        Saya memang pernah coba pasang squid bareng dengan squidguard, config time dan destination sudah di set juga, tapi squidguard nggak jalan seperti yang diharapkan.
        Untuk squidnya, jika menggunakan hardisk di /var/lib/cache maka response untuk browsing menjadi lambat.
        Saya pakai memory 512 MB.
        Kalau memang memasang cache di ramdisk seperti saya biasa gunakan di Linux bisa mempercepat response browsing, bagaimana caranya untuk load scriptnya.
        Saya agak kurang paham dengan freeBSD.

        Kalu mungkin bung bisa jelaskan akibat fatal yang ditimbulkan dan kesalahan yang sering terjadi, sepertinya sangat bermanfaat untuk kita semua.

        Regards,
        Fadjar T

        1 Reply Last reply Reply Quote 0
        • X
          xaviero
          last edited by

          AFAIK, perbedaan sistem di linux dan freebsd memang cukup signifikan dalam hal proses baca-tulis hdd….

          squid nya bro fajar, emang yang udah di oprek, ato masi standard????

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

            Yups… bener malah saya udah coba script video cache youtub di Pfsense alhamdulilah berhasil ..  ;D

            1 Reply Last reply Reply Quote 0
            • X
              xaviero
              last edited by

              nah bro kambeng, ente make squid bawan pfsense (2.6.x) ato dah inject jadi 2.7.x ?

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

                di inject bro .. lagian kalau 2.7 itu squidnya stabil bro .. dibanding 2.6 atau yang lainya terutama di performance cache

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

                  Lihat Sticky di Atas bro semoga sukses

                  1 Reply Last reply Reply Quote 0
                  • X
                    xaviero
                    last edited by

                    wadoh…. buatin atuh mah, cara inject squid default 2.6.x ke 2.7.6 stable brow... pada buta neh... :D

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

                      @xaviero:

                      squid nya bro fajar, emang yang udah di oprek, ato masi standard????

                      Bro xaviero, memang masih standard karena saya belum ngerti bener, mainan di inc-nya pfsense.

                      Satu pertanyaan saya yang amsih nggantung nih:
                      Kalau saya pakai ramdisk untuk simpan cache, apakah itu menaikkan performance squid? Khususnya untuk menampilkan halaman web yang di cache.

                      Regards,
                      Fadjar T

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

                        coba baca ini bro dan ikuti petunjuknya … squid jadi optimal dan kencang :D http://forum.pfsense.org/index.php/topic,18823.0.html

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

                          @kambeeng:

                          coba baca ini bro dan ikuti petunjuknya … squid jadi optimal dan kencang :D http://forum.pfsense.org/index.php/topic,18823.0.html

                          Makasih banyak bro kambeeng…

                          :)

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

                            @kambeeng:

                            http://forum.pfsense.org/index.php/topic,18823.0.html

                            Setelah dicoba dan dipasang…
                            Memang mangstabsss...
                            Tob markotobs...

                            Makasih ya bro..

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

                              Bro … good luck

                              1 Reply Last reply Reply Quote 0
                              • Y
                                yellowhat89
                                last edited by

                                Mungkin masalah ini sudah terselesaikan tapi tidak adanya membuat pfSense anda semakin "beringas".
                                Disadari atau tidak kebanyakan pfSense dengan squid kecepatan bandwidthnya akan turun dari bandwidth yang seharusnya.
                                Hal ini dikarenakan pada pfsense lebih dimaksimalkan untuk router dibandingkan untuk server oleh karena itu nilai kern.ipc.nmbclusters dibuat "0" (default). Padahal di freeBSD nilainya adalah 8192.
                                Untuk mengatasi ini perlu dilakukan perubahan seperti berikut:

                                tambahkan line berikut pada /boot/loader.conf

                                kern.ipc.nmbclusters=32768
                                kern.maxfiles=65536
                                kern.maxfilesperproc=32768
                                net.inet.ip.portrange.last=65535

                                atau lebih mudahnya hapus semua isinya dan salin line berikut

                                autoboot_delay="1"
                                hint.apic.0.disabled=1
                                kern.hz=100
                                #for squid
                                kern.ipc.nmbclusters="32768"
                                kern.maxfiles="65536"
                                kern.maxfilesperproc="32768"
                                net.inet.ip.portrange.last="65535"

                                Atau jika anda tidak menghendaki perubahan yang signifikan cukup hapus kern.ipc.nmbclusters="0", dan squid akan jalan dengan baik.

                                Tapi untuk melakukan Tuning bisa ditambahkan:
                                kern.ipc.nmbclusters: 32768
                                kern.maxfiles=65536
                                kern.maxfilesperproc=32768
                                net.inet.ip.portrange.last: 65535

                                Semoga bermanfaat.

                                Stay hungry, Stay Foolish

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

                                  Apakah ini berlaku di pfsense alpha atau flatform yang lain

                                  1 Reply Last reply Reply Quote 0
                                  • Y
                                    yellowhat89
                                    last edited by

                                    bukan alpha, kalau alpha malah sudah tidak perlu master.
                                    ini untuk semua pfsense release sebelum 2.0

                                    Stay hungry, Stay Foolish

                                    1 Reply Last reply Reply Quote 0
                                    • X
                                      xaviero
                                      last edited by

                                      kalo bole dilakukan riset nih,
                                      coba in deh, cache site nya lyto, www.lytogame.com , kemudian lakukan/ngtes daftar akun baru…
                                      kalo dengan proxy, selalu mental, alias bolak balik ke page awal.

                                      walo dah dimasukin IP ato domain si lytogame kekeuh squid ngotot bolak balik....
                                      itu kalo kejadian aneh di pfsense ane

                                      1 Reply Last reply Reply Quote 0
                                      • Y
                                        yellowhat89
                                        last edited by

                                        itu kemungkinan masalah di proxynya mas,
                                        coba dibuat acl untuk domain lyto, dan di cache deny.

                                        Stay hungry, Stay Foolish

                                        1 Reply Last reply Reply Quote 0
                                        • X
                                          xaviero
                                          last edited by

                                          memang belum ane oprek ampe kedalam squid.inc nya….. ane masi make bawaan web GUI nya pf.
                                          btw, ente coba jg lah.... biar bisa mengalami penderitaan nya....wkwkwkwkwkwkwkwk

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

                                            SQUID.CONF silahkan cek :D

                                            http_port 3128 transparent
                                            cache_effective_user squid
                                            cache_effective_group squid
                                            acl all src 0.0.0.0/0.0.0.0
                                            icp_query_timeout 1000
                                            high_memory_warning 500 MB
                                            visible_hostname akabri.info
                                            httpd_suppress_version_string on
                                            cache_mem 64 MB
                                            cache_replacement_policy heap GDSF
                                            memory_replacement_policy heap GDSF
                                            cache_swap_low 90
                                            cache_swap_high 95
                                            maximum_object_size 131072 KB
                                            maximum_object_size_in_memory 64 KB
                                            tcp_recv_bufsize 65535 bytes
                                            ipcache_size 8192
                                            fqdncache_size 8192
                                            acl msnmess url_regex http://207.46.111.55/gateway/gateway.dll?
                                            deny_info TCP_RESET msnmess
                                            http_access deny msnmess
                                            forwarded_for off
                                            high_page_fault_warning 10
                                            high_response_time_warning 2000
                                            client_persistent_connections off
                                            server_persistent_connections on
                                            half_closed_clients off
                                            cache_dir aufs /cache 10000 10 256
                                            log_icp_queries off
                                            cache_access_log /usr/local/squid/logs/access.log
                                            emulate_httpd_log on
                                            ftp_user kambeeng@akabri.info
                                            cache_mgr kambeeng@akabri.info
                                            refresh_pattern ^ftp: 1440 20% 10080
                                            refresh_pattern ^gopher: 1440 0% 1440
                                            refresh_pattern . 0 20% 4320
                                            quick_abort_min 0 KB
                                            quick_abort_max 0 KB
                                            negative_dns_ttl 2 minutes
                                            acl mynetwork src 192.168.1.0/26
                                            acl manager proto cache_object
                                            acl localhost src 127.0.0.1/255.255.255.255
                                            acl SSL_ports port 443 563 2082 2083 2086 2087 2093 2095 2096
                                            acl Safe_ports port 80 21 443 563 70 210 8000 11999 2082 2083 2086 2087 2095 2096 8082 8090
                                            acl CONNECT method CONNECT
                                            http_access allow manager localhost
                                            http_access deny manager
                                            http_access deny !Safe_ports
                                            http_access deny CONNECT !SSL_ports
                                            http_access allow mynetwork
                                            http_access allow localhost
                                            deny_info TCP_RESET all
                                            http_access deny all
                                            snmp_port 3001
                                            acl queryme snmp_community SquidSnmpRahasia
                                            acl adminpc src 192.168.1.2
                                            snmp_access allow queryme localhost
                                            snmp_access allow queryme adminpc
                                            snmp_access deny all
                                            icp_access allow mynetwork
                                            icp_access deny all
                                            miss_access allow all
                                            ie_refresh on

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