Follow us on...
Follow us on G+ Follow us on Twitter Follow us on Facebook Watch us on YouTube
Register
Page 5 of 6 FirstFirst ... 3456 LastLast
Results 61 to 75 of 80
  1. Status
    Offline
    Newbie Array
    Join Date
    Dec 2011
    Posts
    33
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0

    Jump to Comments

    squid.conf part 2

    79 Comments by venice Published on 02-11-2012 22:45
    sesuai saran modeartor untuk membuka squid.conf bgian 2 berhubung threadx sdh terlalu panjang mak sy coba memulai berhubung lama mengunggu tdk ada yag mulai mohon di hapus klo sdh ada yang mulai
    Click here to enlargeClick here to enlargeClick here to enlargeClick here to enlarge

    sy menggunkan squid.conf dari indoit (thanks indoit) Click here to enlarge


    ## SQUID - Youtube Cache Super Squid Proxy
    ##
    ##================================================ ======================#
    ## Updated: 20 April 2012 | IndoIT.web.id
    ##
    #================================================= ======================#

    http_port 3128 transparent
    server_http11 on

    pid_filename /var/run/squid.pid
    coredump_dir /var/spool/squid/
    error_directory /usr/share/squid/errors/English
    icon_directory /usr/share/squid/icons
    mime_table /usr/share/squid/mime.conf

    cache_mem 8 MB
    maximum_object_size_in_memory 512 bytes
    memory_replacement_policy heap GDSF
    cache_replacement_policy heap LFUDA

    minimum_object_size 0 KB
    maximum_object_size 512 MB
    cache_swap_low 97
    cache_swap_high 99


    cache_dir aufs /cache 12000 28 256

    Cache_access_log daemon:/var/log/squid/access.log squid
    cache_log /var/log/squid/cache.log
    cache_store_log none
    store_dir_select_algorithm round-robin
    logfile_daemon /usr/lib/squid/logfile-daemon
    logfile_rotate 1
    acl all src all
    acl manager proto cache_object
    acl localhost src 127.0.0.1/32
    acl to_localhost dst 127.0.0.0/8
    acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
    acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
    acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
    acl localnet src 125.165.92.1 # RFC1918 possible internal network


    acl SSL_ports port 443 21
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 # https
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl CONNECT method CONNECT
    acl FTP proto FTP
    always_direct allow FTP

    acl purge method PURGE
    acl snmppublic snmp_community public
    include /usr/local/share/squid/supercache.conf

    http_access allow manager localhost
    http_access deny manager
    http_access allow purge localhost
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports

    http_access allow localnet
    http_access allow localhost

    http_access allow all
    http_access deny all

    icp_access allow localnet
    icp_access deny all
    icp_port 0

    buffered_logs on

    acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
    upgrade_http0.9 deny shoutcast

    acl apache rep_header Server ^Apache
    broken_vary_encoding allow apache

    forwarded_for off
    header_access From deny all
    header_access Server deny all
    header_access Link deny all
    header_access Via deny all
    header_access X-Forwarded-For deny all
    httpd_suppress_version_string on

    shutdown_lifetime 10 seconds

    snmp_port 3401
    snmp_access allow snmppublic all
    dns_timeout 1 minutes

    dns_nameservers 8.8.8.8 8.8.4.4
    #dns_testnames 127.0.0.1

    #fqdncache_size 4096 # aslinya
    fqdncache_size 16384
    #ipcache_size 10240 # aslinya
    ipcache_size 16384
    ipcache_low 97
    ipcache_high 99
    log_fqdn off
    memory_pools off

    maximum_single_addr_tries 2
    retry_on_error on

    icp_hit_stale on

    strip_query_terms on

    query_icmp on
    reload_into_ims on
    emulate_httpd_log off
    negative_ttl 0 seconds
    pipeline_prefetch on
    vary_ignore_expire on
    half_closed_clients off
    high_page_fault_warning 2
    nonhierarchical_direct on
    prefer_direct off
    cache_effective_user proxy
    cache_effective_group proxy
    visible_hostname wanua.Net
    unique_hostname wanua.Net
    cachemgr_passwd none all
    client_db on
    max_filedescriptors 8192

    # TAG: ZPH
    zph_mode tos
    zph_local 0x30
    zph_parent 0
    zph_option 136




    hasilnya youtube tercache

    hasilnya di whatismyip : proxy not detected

    Click here to enlarge

    lalu klo munggunakan squid.conf klo tidak salah buatan keblux maaf klo salaah Click here to enlarge


    http_port 3128 transparent
    icp_port 3130
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY
    cache_mem 6 MB
    cache_swap_low 98
    cache_swap_high 99
    #maximum_object_size 64 MB
    maximum_object_size 512 MB

    maximum_object_size_in_memory 64 KB
    ipcache_size 8192
    ipcache_low 98
    ipcache_high 99
    fqdncache_size 8192
    cache_mgr 123abc@gmail.com
    cache_replacement_policy heap LFUDA
    memory_replacement_policy heap GDSF

    cache_dir aufs /cache1 12000 28 256
    cache_dir aufs /cache2 12000 28 256
    #cache_dir aufs /var/spool/squid 12000 28 256


    #cache_dir aufs /var/spool/squid 13300 12 256

    cache_access_log /var/log/squid/access.log
    #cache_access_log none
    cache_log /var/log/squid/cache.log
    cache_store_log none
    emulate_httpd_log off
    pid_filename /var/run/squid.pid
    mime_table /usr/share/squid/mime.conf
    log_fqdn off
    memory_pools off
    client_netmask 255.255.255.255
    ftp_list_width 32
    ftp_passive on
    ftp_sanitycheck on
    refresh_pattern ^ftp: 40320 95% 241920 reload-into-ims
    refresh_pattern . 120 80% 14400 reload-into-ims override-lastmod
    quick_abort_min 0
    quick_abort_max 0
    quick_abort_pct 98
    negative_ttl 2 minutes
    half_closed_clients off
    read_timeout 15 minutes
    client_lifetime 2 hours
    pconn_timeout 60 seconds
    request_timeout 1 minutes
    shutdown_lifetime 10 seconds
    positive_dns_ttl 60 seconds
    negative_dns_ttl 30 seconds
    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1

    acl lan src 192.168.5.0/24


    acl to_localhost dst 127.0.0.0/8
    acl PURGE method PURGE
    acl POST method POST
    acl IpAddressOnly url_regex ^.[0-9]+\.[0-9]+\.[0-9]+/$
    acl IpAddressOnly url_regex ^.[0-9]+\.[0-9]+\.[0-9]+$
    acl GETONLY method GET
    acl VIRUS urlpath_regex winnt/system32/cmd.exe?
    acl SSL_ports port 443 563
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 563 # https, snews
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl CONNECT method CONNECT
    acl snmppublic snmp_community public
    # Hotmail workaround
    header_access Accept-Encoding deny all
    http_access allow localhost
    http_access allow lan
    http_access allow manager lan
    http_access allow PURGE localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny PURGE
    http_access deny VIRUS
    http_access deny all
    http_reply_access allow all
    icp_access allow lan
    icp_access deny all
    miss_access allow lan
    miss_access deny all
    cache_effective_user proxy
    cache_effective_group proxy
    visible_hostname proxy.net
    unique_hostname proxy.net
    logfile_rotate 7
    forwarded_for on
    icp_hit_stale on
    log_icp_queries off
    query_icmp on
    buffered_logs off
    strip_query_terms off
    icon_directory /usr/share/squid/icons
    error_directory /usr/share/squid/errors/English
    store_avg_object_size 13 KB
    store_objects_per_bucket 10
    client_db on
    snmp_port 3401
    snmp_access allow snmppublic lan
    snmp_access deny all
    coredump_dir /cache01
    reload_into_ims on
    pipeline_prefetch on
    ie_refresh on
    vary_ignore_expire on
    # TAG: ZPH
    zph_mode tos
    zph_local 0x30
    zph_parent 0
    zph_option 136



    proxy terdeteksi dengan menggunakan whatismy ip
    tapi hasil dengan speedtest download hanay 0,23 mbsClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlargeClick here to enlarge
    saran dan pebaikan para master yang baik hati
    Last edited by venice; 02-11-2012 at 22:48.

  2. Total Comments 79

    Comments

  3. #61
    Status
    Offline
    wandi's Avatar
    Member
    Join Date
    Jul 2008
    Location
    Bandung, Indonesia
    Posts
    276
    Reviews
    Read 0 Reviews
    Downloads
    6
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by yohanexz Click here to enlarge
    Adus kembang tujuh rupa ya om ma bertapa 2 kali sehari di atap. hahahahaha
    Jangan di Atap kang banyak Gundala Click here to enlarge tar malah angus. Mending bertapanya di Dapur aja ..(lagian di Dapur Kalo Laper gampang cari makanan) .

  4. #62
    Status
    Offline
    h4sbr's Avatar
    Baru Gabung
    Join Date
    Dec 2009
    Posts
    13
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    mantab ijin bukmak dolo..

  5. #63
    Status
    Offline
    Mikrolet's Avatar
    Newbie
    Join Date
    Sep 2012
    Posts
    24
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    mau tanya mastah gan... gimana caranya cache https facebook saja, soalnya facebook yg https agak lambat jika via squid. Makasih sebelumnya...

  6. #64
    Status
    Offline
    almarhum's Avatar
    Baru Gabung
    Join Date
    Dec 2012
    Location
    Dunia Fana
    Posts
    3
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    wah,,,boleh ijin comot squid.conf nya yah.....ntar hasil nya tak share dimari.... Click here to enlarge
    soal nya saya masih bingung ama nih cumi, udah jalan tapi ga bisa cache *.mp3 dan sejenis nya,,,jadi seperti ga kerasa effek nya Click here to enlarge
    mohon ijin mastah-mastahClick here to enlarge

  7. #65
    Status
    Offline
    almarhum's Avatar
    Baru Gabung
    Join Date
    Dec 2012
    Location
    Dunia Fana
    Posts
    3
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    lapor mastah" saya udah coba gabungin beberapa squid.conf yg ada di thread ini dengan punya saya, berikut review nya... Click here to enlarge
    Code:
    Squid Object Cache: Version 2.7.STABLE9
    Start Time:     Mon, 03 Dec 2012 02:10:12 GMT
    Current Time:   Mon, 03 Dec 2012 06:19:29 GMT
    Connection information for squid:
            Number of clients accessing cache:      2
            Number of HTTP requests received:       21149
            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:   84.8
            Average ICP messages per minute since start:    0.0
            Select loop called: 1401911 times, 10.669 ms avg
    Cache information for squid:
            Request Hit Ratios:     5min: 15.7%, 60min: 11.0%
            Byte Hit Ratios:        5min: 67.7%, 60min: 12.9%
            Request Memory Hit Ratios:      5min: 0.0%, 60min: 5.1%
            Request Disk Hit Ratios:        5min: 100.0%, 60min: 75.5%
            Storage Swap size:      13712236 KB
            Storage Mem size:       8168 KB
            Mean Object Size:       66.51 KB
            Requests given to unlinkd:      0
    Median Service Times (seconds)  5 min    60 min:
            HTTP Requests (All):   0.42149  0.61549
            Cache Misses:          0.52331  0.76407
            Cache Hits:            0.00091  0.01235
            Near Hits:             0.00000  0.32154
            Not-Modified Replies:  0.00000  0.00000
            DNS Lookups:           0.07618  0.09117
            ICP Queries:           0.00000  0.00000
    Resource usage for squid:
            UP Time:        14956.385 seconds
            CPU Time:       130.770 seconds
            CPU Usage:      0.87%
            CPU Usage, 5 minute avg:        0.60%
            CPU Usage, 60 minute avg:       1.83%
            Process Data Segment Size via sbrk(): 49904 KB
            Maximum Resident Size: 284064 KB
            Page faults with physical i/o: 0
    Memory usage for squid via mallinfo():
            Total space in arena:   49904 KB
            Ordinary blocks:        48917 KB    297 blks
            Small blocks:               0 KB      0 blks
            Holding blocks:         18480 KB      6 blks
            Free Small blocks:          0 KB
            Free Ordinary blocks:     986 KB
            Total in use:           67397 KB 99%
            Total free:               986 KB 1%
            Total size:             68384 KB
    Memory accounted for:
            Total accounted:        31477 KB
            memPoolAlloc calls: 5259887
            memPoolFree calls: 4809694
    File descriptor usage for squid:
            Maximum number of file descriptors:   1024
            Largest file desc currently in use:    281
            Number of file desc currently in use:  115
            Files queued for open:                   0
            Available number of file descriptors:  909
            Reserved number of file descriptors:   100
            Store Disk files open:                   0
            IO loop method:                     epoll
    Internal Data Structures:
            206215 StoreEntries
              1321 StoreEntries with MemObjects
              1317 Hot Object Cache Items
            206171 on-disk objects
    menurut mastah" dsni gimana nih hasil nya? Click here to enlarge

  8. #66
    Status
    Offline
    banditaceh's Avatar
    Newbie
    Join Date
    Jan 2009
    Posts
    20
    Reviews
    Read 0 Reviews
    Downloads
    22
    Uploads
    0
    Feedback Score
    0
    permisi om2, noob mau nanya. kalo cache ud penuh ada config auto remove ny gak?

    kalo ada apa yang harus di tambah di config nya ya??

    thx om. maap kalo salah room Click here to enlarge
    Last edited by banditaceh; 04-12-2012 at 01:38.

  9. #67
    Status
    Offline
    wandi's Avatar
    Member
    Join Date
    Jul 2008
    Location
    Bandung, Indonesia
    Posts
    276
    Reviews
    Read 0 Reviews
    Downloads
    6
    Uploads
    0
    Feedback Score
    0
    squid secara otomatis memelihara ukuran cache sesuai config dengan kata lain squid sudah auto remove, masalahnya paling mana yang akan didelete oleh squid terlebih dahulu settingnya ada di bagian refresh patern dan frekuensi HIT suatu object. contoh di bawah squid akan menjaga besaran cache tidak melebihi 12 Giga

    cache_dir aufs /cache 12000 28 256

    opsi2 yang berpengaruh terhadap ukuran cache selain itu adalah
    Last edited by wandi; 07-12-2012 at 02:01.

  10. The Following User Says Thank You to wandi For This Useful Post:


  11. #68
    Status
    Offline
    crimp's Avatar
    Baru Gabung
    Join Date
    Mar 2012
    Posts
    10
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    storeurl_rewrite_children?
    storeurl_rewrite_concurrency?
    fungsi nya di squid apa ya om ....
    dari kemarin serching di google blm dpt yang handal pejelasanya....

  12. #69
    Status
    Offline
    venice's Avatar
    Newbie
    Join Date
    Dec 2011
    Posts
    33
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    ok sesuai saran para master kita bahas dulu paragraf satu apa mau dan maksudnya

    http_port 3128 transparent
    server_http11 on

    pid_filename /var/run/squid.pid
    coredump_dir /var/spool/squid/
    error_directory /usr/share/squid/errors/English
    icon_directory /usr/share/squid/icons
    mime_table /usr/share/squid/mime.conf

    silahkan para master yang mau berbagi

  13. #70
    Status
    Offline
    wandi's Avatar
    Member
    Join Date
    Jul 2008
    Location
    Bandung, Indonesia
    Posts
    276
    Reviews
    Read 0 Reviews
    Downloads
    6
    Uploads
    0
    Feedback Score
    0




    baca-baca aja Squid The Definitive Guide.chm dan Web Caching.chm inggrisnya simple ko bukan inggris ilmiah yang berat untuk dicerna.
    saya aja yang tamatan SMP ngerti. lagian ada google translate ini.

    persoalannya paling kalo lupa solusinya ya dicatet aja. pastebin.com belum ditutup kan. Click here to enlarge

    default option adalah pilihan paling aman, cukup sedikit dengan sedikit editing squid sudah jalan. Hanya keinginan lebih yang memyebabkan prilaku squid berubah dan ini perlu dipahami karena tidak semua mesin memiliki kemampuan dan kondisi yang sama.

    Code:
    cd /etc/squid
    mv squid.conf squid.conf.backup
    grep -v ^$ squid.conf.backup |grep -v ^# > squid.conf
    squid pake config secuil ini aja udah jalan (jangan tanya hitnya Click here to enlarge )
    Code:
    acl all src all
    http_port 3128
    access_log /var/log/squid/access.log squid
    hosts_file /etc/hosts
    http_access allow all
    cache_dir aufs /cache-1 35000 35 256
    kalo http_port 3128 transparent aja masih perlu dijelaskan perasaan saya ko malah mundur ke squid itu apa? dan bukan optimalisasi.squid.conf lagi. saya lebih ingin tahu pilihan apa saja yang memaksa squid hit lebih tapi tetap loading ke klien tetap aman dan wajar.

    contoh jangan cache GAME PROTEKSI kalo tidak ingin gamenya gagal loading akibat GAME PROTEKSI kena HIT.
    Code:
    refresh_pattern -i (cgi-bin|hackshield|xtrap|Loader|login) 0 0% 0
    ma'af cuma pikiran noobie dengan otak yang OOT.
    Last edited by wandi; 04-02-2013 at 04:02.

  14. #71
    Status
    Offline
    hidayat_1982's Avatar
    Baru Gabung
    Join Date
    Aug 2008
    Posts
    12
    Reviews
    Read 0 Reviews
    Downloads
    4
    Uploads
    0
    Feedback Score
    0
    Iseng-iseng oprek konfigurasi lusca di ubuntu server 12.04.
    Mohon dikoreksi kiranya masih banyak yang salah, maaf masih newbi di dunia perlusca-aan Click here to enlarge
    tes cache speedtest, youtube lancar dan tidak ada range seperti di treat sebelah milik kang ucok atao siapa ? maaf lupa Click here to enlarge

     

    HTML Code:
    #=============================================
    # Administrative Parameters
    #=============================================
    # I used Ubuntu Server so user and group is proxy
    cache_effective_user proxy
    cache_effective_group proxy
    cache_mgr admin@tratscom.net
    visible_hostname tratscom.net
    unique_hostname admin@tratscom.net
    #=============================================
    # Accelerator Options
    #=============================================
    half_closed_clients off
    quick_abort_min 0 KB
    quick_abort_max 0 KB
    vary_ignore_expire on
    reload_into_ims on
    log_fqdn off
    memory_pools off
    cache_swap_low 98
    cache_swap_high 99
    max_filedescriptors 65536
    fqdncache_size 16384
    retry_on_error on
    offline_mode off
    pipeline_prefetch on
    # If you want to hide your proxy machine from being detected at various site use following
    forwarded_for off
    header_access From deny all
    header_access Server deny all
    header_access Link deny all
    header_access Via deny all
    header_access X-Forwarded-For deny all
    httpd_suppress_version_string on
    #=============================================
    # Options Which Affect The Cache Size
    #=============================================
    cache_mem 8 MB
    minimum_object_size 512 bytes
    maximum_object_size 100 MB
    maximum_object_size_in_memory 512 KB
    #=============================================
    # Oprek konfigurasi lusca comot sana sini by fdn sitoy
    # ZPH Option
    #=============================================
    tcp_outgoing_tos 0x30 all
    zph_mode tos
    zph_local 0x30
    zph_parent 0
    zph_option 136
    #=============================================
    acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
    acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
    acl speedtest_allow_dom dstdomain .speedtest.net
    storeurl_access allow speedtest_allow_url
    storeurl_access allow speedtest_allow_dom
    
    # ACL Caching Youtube
    #=============================================
    acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
    acl videocache_allow_url url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
    acl videocache_allow_url url_regex -i \.youporn\.com\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
    acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
    acl videocache_allow_url url_regex -i \.apniisp\.com\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
    acl videocache_allow_url url_regex -i \.break\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i redtube\.com\/(.*)\.flv
    acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
    acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
    acl dontrewrite url_regex redbot\.org \.php
    acl getmethod method GET
    acl range url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
    acl begin url_regex -i .*youtube\.com\/videoplayback.*begin\=.*$
    http_access deny range
    http_access deny begin
    storeurl_access deny dontrewrite
    storeurl_access deny !getmethod
    storeurl_access deny videocache_deny_dom
    storeurl_access allow videocache_allow_url
    storeurl_access allow videocache_allow_dom
    storeurl_access deny all
    storeurl_rewrite_program /etc/squid/storeurl.pl
    storeurl_rewrite_children 7
    storeurl_rewrite_concurrency 100
    acl store_rewrite_list urlpath_regex -i \/(get_video\?|videodownload\?|videoplayback.*id)
    acl store_rewrite_list urlpath_regex -i \.flv$ \.mp3$ \.mp4$ \.swf$ \
    storeurl_access allow store_rewrite_list
    storeurl_access deny all
    #=============================================
    # Refresh Pattern Options
    #=============================================
    refresh_pattern -i \.flv$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.mp3$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.mp4$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.swf$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.gif$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.jpg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.jpeg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.exe$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    # 1 year = 525600 mins, 1 month = 10080 mins, 1 day = 1440
    refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern \.(ico|video-stats) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
    refresh_pattern \.etology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern galleries\.video(\?|sz) 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern brazzers\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern \.adtology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 10080 20% 10080 ignore-no-cache ignore-private override-expire ignore-reload ignore-auth negative-ttl=40320 max-stale=10
    refresh_pattern ^.*safebrowsing.*google 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth negative-ttl=10080
    refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 10080 80% 10080 override-expire ignore-reload ignore-private negative-ttl=10080
    refresh_pattern ytimg\.com.*\.jpg 10080 80% 10080 override-expire ignore-reload
    refresh_pattern images\.friendster\.com.*\.(png|gif) 10080 80% 10080 override-expire ignore-reload
    refresh_pattern garena\.com 10080 80% 10080 override-expire reload-into-ims
    refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 override-expire ignore-reload
    refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 10080 80% 10080 ignore-no-cache override-expire override-lastmod
    refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 reload-into-ims override-expire ignore-private
    refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
    refresh_pattern ^http:\/\/www.onemanga.com.*\/ 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
    refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
    # Images Facebook
    refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern -i ^http:\/\/*\.akamaihd\.(net|com).*\.(jpg|gif|png) 43800 200% 10080 ignore-reload override-expire ignore-no-cache ignore-private reload-into-ims
    # All File
    refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(htm|html|class|css|js|xml)$ 1440 100% 10080 reload-into-ims override-expire ignore-no-cache ignore-no-store
    refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern ^ftp: 10080 95% 10080 override-lastmod reload-into-ims
    refresh_pattern . 1440 95% 10080 override-lastmod reload-into-ims

    hasil speedtest
    Click here to enlarge

  15. The Following User Says Thank You to hidayat_1982 For This Useful Post:


  16. #72
    Status
    Offline
    sempena's Avatar
    Member
    Join Date
    Feb 2011
    Location
    ACEH
    Posts
    101
    Reviews
    Read 0 Reviews
    Downloads
    11
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by hidayat_1982 Click here to enlarge
    Iseng-iseng oprek konfigurasi lusca di ubuntu server 12.04.
    Mohon dikoreksi kiranya masih banyak yang salah, maaf masih newbi di dunia perlusca-aan Click here to enlarge
    tes cache speedtest, youtube lancar dan tidak ada range seperti di treat sebelah milik kang ucok atao siapa ? maaf lupa Click here to enlarge

     

    HTML Code:
    #=============================================
    # Administrative Parameters
    #=============================================
    # I used Ubuntu Server so user and group is proxy
    cache_effective_user proxy
    cache_effective_group proxy
    cache_mgr admin@tratscom.net
    visible_hostname tratscom.net
    unique_hostname admin@tratscom.net
    #=============================================
    # Accelerator Options
    #=============================================
    half_closed_clients off
    quick_abort_min 0 KB
    quick_abort_max 0 KB
    vary_ignore_expire on
    reload_into_ims on
    log_fqdn off
    memory_pools off
    cache_swap_low 98
    cache_swap_high 99
    max_filedescriptors 65536
    fqdncache_size 16384
    retry_on_error on
    offline_mode off
    pipeline_prefetch on
    # If you want to hide your proxy machine from being detected at various site use following
    forwarded_for off
    header_access From deny all
    header_access Server deny all
    header_access Link deny all
    header_access Via deny all
    header_access X-Forwarded-For deny all
    httpd_suppress_version_string on
    #=============================================
    # Options Which Affect The Cache Size
    #=============================================
    cache_mem 8 MB
    minimum_object_size 512 bytes
    maximum_object_size 100 MB
    maximum_object_size_in_memory 512 KB
    #=============================================
    # Oprek konfigurasi lusca comot sana sini by fdn sitoy
    # ZPH Option
    #=============================================
    tcp_outgoing_tos 0x30 all
    zph_mode tos
    zph_local 0x30
    zph_parent 0
    zph_option 136
    #=============================================
    acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
    acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
    acl speedtest_allow_dom dstdomain .speedtest.net
    storeurl_access allow speedtest_allow_url
    storeurl_access allow speedtest_allow_dom
    
    # ACL Caching Youtube
    #=============================================
    acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
    acl videocache_allow_url url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
    acl videocache_allow_url url_regex -i \.youporn\.com\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
    acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
    acl videocache_allow_url url_regex -i \.apniisp\.com\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
    acl videocache_allow_url url_regex -i \.break\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i redtube\.com\/(.*)\.flv
    acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
    acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
    acl dontrewrite url_regex redbot\.org \.php
    acl getmethod method GET
    acl range url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
    acl begin url_regex -i .*youtube\.com\/videoplayback.*begin\=.*$
    http_access deny range
    http_access deny begin
    storeurl_access deny dontrewrite
    storeurl_access deny !getmethod
    storeurl_access deny videocache_deny_dom
    storeurl_access allow videocache_allow_url
    storeurl_access allow videocache_allow_dom
    storeurl_access deny all
    storeurl_rewrite_program /etc/squid/storeurl.pl
    storeurl_rewrite_children 7
    storeurl_rewrite_concurrency 100
    acl store_rewrite_list urlpath_regex -i \/(get_video\?|videodownload\?|videoplayback.*id)
    acl store_rewrite_list urlpath_regex -i \.flv$ \.mp3$ \.mp4$ \.swf$ \
    storeurl_access allow store_rewrite_list
    storeurl_access deny all
    #=============================================
    # Refresh Pattern Options
    #=============================================
    refresh_pattern -i \.flv$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.mp3$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.mp4$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.swf$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.gif$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.jpg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.jpeg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.exe$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    # 1 year = 525600 mins, 1 month = 10080 mins, 1 day = 1440
    refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern \.(ico|video-stats) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
    refresh_pattern \.etology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern galleries\.video(\?|sz) 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern brazzers\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern \.adtology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 10080 20% 10080 ignore-no-cache ignore-private override-expire ignore-reload ignore-auth negative-ttl=40320 max-stale=10
    refresh_pattern ^.*safebrowsing.*google 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth negative-ttl=10080
    refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 10080 80% 10080 override-expire ignore-reload ignore-private negative-ttl=10080
    refresh_pattern ytimg\.com.*\.jpg 10080 80% 10080 override-expire ignore-reload
    refresh_pattern images\.friendster\.com.*\.(png|gif) 10080 80% 10080 override-expire ignore-reload
    refresh_pattern garena\.com 10080 80% 10080 override-expire reload-into-ims
    refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 override-expire ignore-reload
    refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 10080 80% 10080 ignore-no-cache override-expire override-lastmod
    refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 reload-into-ims override-expire ignore-private
    refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
    refresh_pattern ^http:\/\/www.onemanga.com.*\/ 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
    refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
    # Images Facebook
    refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern -i ^http:\/\/*\.akamaihd\.(net|com).*\.(jpg|gif|png) 43800 200% 10080 ignore-reload override-expire ignore-no-cache ignore-private reload-into-ims
    # All File
    refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(htm|html|class|css|js|xml)$ 1440 100% 10080 reload-into-ims override-expire ignore-no-cache ignore-no-store
    refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern ^ftp: 10080 95% 10080 override-lastmod reload-into-ims
    refresh_pattern . 1440 95% 10080 override-lastmod reload-into-ims

    hasil speedtest
    Click here to enlarge
    Mantap, tapi saya udh lebih 1 tahun tetap setia dengan degan squid proxy ubuntu 10.04 LTS Click here to enlarge blom coba ke versi yg atas Click here to enlarge

  17. #73
    Status
    Offline
    wandi's Avatar
    Member
    Join Date
    Jul 2008
    Location
    Bandung, Indonesia
    Posts
    276
    Reviews
    Read 0 Reviews
    Downloads
    6
    Uploads
    0
    Feedback Score
    0
    @hidayat_1982 izin contek squid.conf nya. terlihat rapih dan enak dilihat. dan ini yang paling penting mudah difahami untuk diedit lagi. coba confignya diformat kaya gitu biar panjang tetep enak dibaca , sekalian belajar. Tambah sering dibaca tambah nempel dech..

    BTW ini acl begin url_regex -i .*youtube\.com\/videoplayback.*begin\=.*$ buat apa ya?

    terus bisa juga dibikin kaya gini jadi, Kenapa tidak?

    acl range url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
    acl range url_regex -i .*youtube\.com\/videoplayback.*begin\=.*$
    http_access deny range


    Click here to enlargesquid.conf proxy-ku dibikin yang kaya gitu akh..


    BUMP-BUMP Click here to enlargeClick here to enlarge
    ayo yang punya config lain.
    Last edited by wandi; 12-02-2013 at 23:55.

  18. #74
    Status
    Offline
    hidayat_1982's Avatar
    Baru Gabung
    Join Date
    Aug 2008
    Posts
    12
    Reviews
    Read 0 Reviews
    Downloads
    4
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by wandi Click here to enlarge
    @hidayat_1982 izin contek squid.conf nya. terlihat rapih dan enak dilihat. dan ini yang paling penting mudah difahami untuk diedit lagi. coba confignya diformat kaya gitu biar panjang tetep enak dibaca , sekalian belajar. Tambah sering dibaca tambah nempel dech..

    BTW ini acl begin url_regex -i .*youtube\.com\/videoplayback.*begin\=.*$ buat apa ya?

    terus bisa juga dibikin kaya gini jadi, Kenapa tidak?

    acl range url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
    acl range url_regex -i .*youtube\.com\/videoplayback.*begin\=.*$
    http_access deny range


    Click here to enlargesquid.conf proxy-ku dibikin yang kaya gitu akh..


    BUMP-BUMP Click here to enlargeClick here to enlarge
    ayo yang punya config lain.
    silahkan kalo mo di copy atao di modif bebas ko... Click here to enlarge
    kalo itu biar cache youtube kalo diulang-ulang tidak rusak, abis sekarang youtube kan dipecah tuch file alias diparsial katanya...
    makanya biar kalo diputar ulang, baik diputer dari tengah dari awal masih tetap satu tuch file youtube... kurang lebih begitu fungsinya... maaf kalo salah Click here to enlarge
    tapi ane coba hasil cache youtube diane dibolak-balik, diputar dari awal,tengah-tengah, masih lancar juga...
    tuch skript ane ambil dari tritnya kang ucok k... kalo gak salah sih

  19. #75
    Status
    Offline
    helmi17's Avatar
    Newbie
    Join Date
    May 2010
    Posts
    36
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by hidayat_1982 Click here to enlarge
    Iseng-iseng oprek konfigurasi lusca di ubuntu server 12.04.
    Mohon dikoreksi kiranya masih banyak yang salah, maaf masih newbi di dunia perlusca-aan Click here to enlarge
    tes cache speedtest, youtube lancar dan tidak ada range seperti di treat sebelah milik kang ucok atao siapa ? maaf lupa Click here to enlarge

     

    HTML Code:
    #=============================================
    # Administrative Parameters
    #=============================================
    # I used Ubuntu Server so user and group is proxy
    cache_effective_user proxy
    cache_effective_group proxy
    cache_mgr admin@tratscom.net
    visible_hostname tratscom.net
    unique_hostname admin@tratscom.net
    #=============================================
    # Accelerator Options
    #=============================================
    half_closed_clients off
    quick_abort_min 0 KB
    quick_abort_max 0 KB
    vary_ignore_expire on
    reload_into_ims on
    log_fqdn off
    memory_pools off
    cache_swap_low 98
    cache_swap_high 99
    max_filedescriptors 65536
    fqdncache_size 16384
    retry_on_error on
    offline_mode off
    pipeline_prefetch on
    # If you want to hide your proxy machine from being detected at various site use following
    forwarded_for off
    header_access From deny all
    header_access Server deny all
    header_access Link deny all
    header_access Via deny all
    header_access X-Forwarded-For deny all
    httpd_suppress_version_string on
    #=============================================
    # Options Which Affect The Cache Size
    #=============================================
    cache_mem 8 MB
    minimum_object_size 512 bytes
    maximum_object_size 100 MB
    maximum_object_size_in_memory 512 KB
    #=============================================
    # Oprek konfigurasi lusca comot sana sini by fdn sitoy
    # ZPH Option
    #=============================================
    tcp_outgoing_tos 0x30 all
    zph_mode tos
    zph_local 0x30
    zph_parent 0
    zph_option 136
    #=============================================
    acl speedtest_allow_url url_regex -i \.speedtest\.net\/ speedtest
    acl speedtest_allow_url url_regex ^http:\/\/speedtest\.*
    acl speedtest_allow_dom dstdomain .speedtest.net
    storeurl_access allow speedtest_allow_url
    storeurl_access allow speedtest_allow_dom
    
    # ACL Caching Youtube
    #=============================================
    acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
    acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
    acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
    acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
    acl videocache_allow_url url_regex -i \.vimeo\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
    acl videocache_allow_url url_regex -i \.youporn\.com\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.tube8\.com\/(.*)\.(flv|3gp)
    acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
    acl videocache_allow_url url_regex -i \.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
    acl videocache_allow_url url_regex -i \.apniisp\.com\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram|m4v)
    acl videocache_allow_url url_regex -i \.break\.com\/(.*)\.(flv|mp4)
    acl videocache_allow_url url_regex -i redtube\.com\/(.*)\.flv
    acl videocache_allow_dom dstdomain .mccont.com .metacafe.com .cdn.dailymotion.com
    acl videocache_deny_dom dstdomain .download.youporn.com .static.blip.tv
    acl dontrewrite url_regex redbot\.org \.php
    acl getmethod method GET
    acl range url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
    acl begin url_regex -i .*youtube\.com\/videoplayback.*begin\=.*$
    http_access deny range
    http_access deny begin
    storeurl_access deny dontrewrite
    storeurl_access deny !getmethod
    storeurl_access deny videocache_deny_dom
    storeurl_access allow videocache_allow_url
    storeurl_access allow videocache_allow_dom
    storeurl_access deny all
    storeurl_rewrite_program /etc/squid/storeurl.pl
    storeurl_rewrite_children 7
    storeurl_rewrite_concurrency 100
    acl store_rewrite_list urlpath_regex -i \/(get_video\?|videodownload\?|videoplayback.*id)
    acl store_rewrite_list urlpath_regex -i \.flv$ \.mp3$ \.mp4$ \.swf$ \
    storeurl_access allow store_rewrite_list
    storeurl_access deny all
    #=============================================
    # Refresh Pattern Options
    #=============================================
    refresh_pattern -i \.flv$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.mp3$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.mp4$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.swf$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.gif$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.jpg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.jpeg$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    refresh_pattern -i \.exe$ 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
    # 1 year = 525600 mins, 1 month = 10080 mins, 1 day = 1440
    refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?) 10080 80% 10080 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern \.(ico|video-stats) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
    refresh_pattern \.etology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern galleries\.video(\?|sz) 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern brazzers\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern \.adtology\? 10080 80% 10080 override-expire ignore-reload ignore-no-cache
    refresh_pattern ^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 10080 20% 10080 ignore-no-cache ignore-private override-expire ignore-reload ignore-auth negative-ttl=40320 max-stale=10
    refresh_pattern ^.*safebrowsing.*google 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth negative-ttl=10080
    refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk) 10080 80% 10080 override-expire ignore-reload ignore-private negative-ttl=10080
    refresh_pattern ytimg\.com.*\.jpg 10080 80% 10080 override-expire ignore-reload
    refresh_pattern images\.friendster\.com.*\.(png|gif) 10080 80% 10080 override-expire ignore-reload
    refresh_pattern garena\.com 10080 80% 10080 override-expire reload-into-ims
    refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 override-expire ignore-reload
    refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 10080 80% 10080 ignore-no-cache override-expire override-lastmod
    refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 10080 80% 10080 reload-into-ims override-expire ignore-private
    refresh_pattern ^http:\/\/images|pics|thumbs[0-9]\. 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
    refresh_pattern ^http:\/\/www.onemanga.com.*\/ 10080 80% 10080 reload-into-ims ignore-no-cache ignore-reload override-expire
    refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 10080 80% 10080 override-expire ignore-reload ignore-no-cache ignore-private ignore-auth override-lastmod negative-ttl=10080
    # Images Facebook
    refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|mp3) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 10080 80% 10080 ignore-reload override-expire ignore-no-cache
    refresh_pattern -i ^http:\/\/*\.akamaihd\.(net|com).*\.(jpg|gif|png) 43800 200% 10080 ignore-reload override-expire ignore-no-cache ignore-private reload-into-ims
    # All File
    refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 10080 80% 10080 ignore-no-cache override-expire override-lastmod reload-into-ims
    refresh_pattern -i \.(htm|html|class|css|js|xml)$ 1440 100% 10080 reload-into-ims override-expire ignore-no-cache ignore-no-store
    refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern ^ftp: 10080 95% 10080 override-lastmod reload-into-ims
    refresh_pattern . 1440 95% 10080 override-lastmod reload-into-ims

    hasil speedtest
    Click here to enlarge
    Kalo boleh minta full settingannya dunk om...
    Masih belum tercache dengan baik neh squid ku...
    Otak atik malah tambah mumet kepalanya....

 

 
Page 5 of 6 FirstFirst ... 3456 LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Articles

  1. [HELP] Analisa squid.conf
    By sibesar in forum General Networking
    Replies: 0
    Last Post: 27-01-2009, 21:20

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •