Ads 468x60px

Saturday, July 4, 2015

3
Setting UseeTV GPON di Mikrotik



Cara setting STB UseeTV melalui nirkabel dengan skema seperti berikut:

1.modem FO GPON ZTE F660 yang sudah di setting bridge oleh pihak telkom

2.mikrotik RB951Ui-2HnD atau RB951Ui-2HnD atau RB1100AH atau yang lainya yang mempunyai resource besar dan port lebih dari 3 ether yang berfungsi sebagai core atau yang akan dial PPPoE ke GPON disini saya menggunakan RB951Ui-2HnD

3.mikrotik RB433AH dan antena grid sebagai AP bridge yang bisa di pasang 2 MiniPCI

4.UBNT Bullet2 dan antena grid sudah cukup jika jarak dibawah 5KM yang berfungsi sebagai AP Repeater supaya AP Utama lebih luas jangkauannya

5.mikrotik RB750 yang berfungsi untuk dial PPPoE ke mikrotik core

6.STB UseeTV yang sudah di set rekeningnya oleh pihak telkom

step by step setting perangkat sesuai nomor urut

1.colokan lan ke modem ZTE F660 di port 1 sampai 3 untuk data/internet dan colok lan ke port 4 untuk UseeTV kemudian ganti ip lan ZTE F660 menjadi 192.168.221.1 karna nanti dimikrotik ether1 akan kita setting satu segment ip nya yaitu 192.168.221.254/24.



2.colok lan yang dari modem ZTE F660 port 1 ke mikrotik RB951Ui-2HnD di port 1 juga dan yang dari port 4 ke port 4 mikrotik kemudian port 5 colok lan ke mikrotik RB433AH yang difungsikan sebagai AP Bridge dan di RB433AH colokan lan di port 1.


Sekarang saatnya setting mikrotik RB951Ui-2HnD core.

1.login ke mikrotik menggunakan Winbox,klik menu interface tab ke menu EoIP Tunnel klik icon + untuk membuat EoIP Tunnel baru kemudian beri nama eoip-tunnel-tv atau sesuka anda,remote address beri ip user PPPoE yang akan di colokin perangkat STB UseeTV disini saya menggunakan ip 192.168.111.1 dan Tunnel ID 3.





2.klik menu IP>DHCP Server tab ke menu Network lalu klik icon + untuk membuat DHCP Server baru lalu Address 192.168.111.0/24 dan Gateway 192.168.111.254 lalu klik OK.



3.klik menu PPP kemudian tab ke PPPoE Server klik + Service Name PPPoE_Server atau sesuka anda lalu interface pilih bridge_hotspot dan ceklist One Session Per Host yang lainnya biarkan default kemudian klik OK.masih di menu PPP dan tab ke Secrets klik icon + beri username dan password sesuka anda dan username dan password ini yang akan kita gunakan untuk client PPPoE memanggil PPPoE Server lalu berikan ip statik dengan ip satu segment dari ip DHCP Server yaitu Local Address 192.168.111.254 dan Remote Address 192.168.111.1 jika sudah klik OK.



4.klik menu Bridge buat bridge baru dan namai bridge_hotspot lalu buat bridge kedua dan namai bridge_tv,kemudian tab ke menu Port klik + untuk interface pilih eoip-tunnel-tv dan Bridge pilih bridge_tv,klik + lagi interface pilih ether4 dan Bridge pilih bridge_tv,klik + lagi interface pilih bridge_hotspot lalu Bridge pilih ether5.



5.masuk ke IP>Address buat ip baru atau klik icon + di pojok kiri atas lalu ketik 192.168.221.254/24 lalu interface pilih ether1 karna ip ini yang digunakan Modem ZTE F660 untuk internet.kemudian tambah baru lagi untuk gateway internet/hotspot ketik ip 192.168.222.254/24 lalu interface pilih bridge_hotspot dan kemudian klik + tambah baru lagi untuk gateway internet/hotspot ketik ip 192.168.223.254/24 lalu interface pilih bridge_hotspot ini yang akan digunakan DHCP radio atau manual ip radio dan yang mengarah ke ZTE STB untuk UseeTV.



6.klik menu Interface lalu klik tanda + pilih PPPoE Client beri nama pppoe-out-core atau sesuka anda dan interface pilih ether1 kemudian tab ke Dial Out masukan user speedy dan passwordnya dan ceklist pada Add Default Route,Usee Peer DNS,pap,chap,mschap1 dan mschap2 lalu klik OK.perhatikan pada menu interface jika tertera icon R berarti dial PPPoE ke GPON sudah benar dan running.



7.klik menu IP>DNS isi server 8.8.8.8 dan tambah bawahnya 8.8.4.4 kemudian ceklist Allow Remote Request dan edit Max UDP Packet SIze menjadi 512 lalu klik OK.



8.klik menu IP>Routes pada Routes List klik icon + dan isikan Dst Address dengan ip yang mengarah ke UseeTV dengan ip yang sudah kita siapkan yaitu 192.168.223.254 dan di Gateway isikan ip client PPPoE yang telah kita siapkan juga dengan ip 192.168.111.1 lalu klik OK.



9.Setup Hotspot klik menu IP>Hotspot kemudian klik tombol Hotspot Setup pilih interface bridge_hotspot kemudian next-next sampai selesai dan sukses.sampai disini kita sudah selesai setting mikrotik RB951Ui-2HnD yang di jadikan core network.



Langkah selanjutnya adalah setting mikrotik RB433AH yang akan di fungsikan sebagai AP Bridge untuk 2 MiniPCI.

Setting seperti gambar dibawah ini:



Kemudian setting ubnt sebagai client repeater yang ada dirumah anda atau rumah pelanggan UseeTV yang akan dilanjutkan ke mikrotik penerima dan pemisah STB seperti berikut



Lalu setting mikrotik pemisah STB dan internet sebagai berikut



Colok poe dari ubnt atas ke ether1 colok STB ke ether2 kemudian colok PC anda atau AP lagi tuk diruangan anda di ether3 jika tidak mau pakai AP lagi tidak apa karna bullet2 yang di atas sudah kita setting sebagai repeater jadi laptop atau handphone sudah bisa tersambung ke repeater ubnt bullet2 diatas. setelah semua sudah terpasang dengan benar dan tersetting dengan benar,nyalakan seluruh perangkat anda yang akan dilewati oleh UseeTV dan nyalakan TV anda.Selamat menikmati siaran TV Premium via Nirkabel...terima kasih




SUMBER: planet-webhost
Sunday, January 13, 2013

1
Optimasi Squid 2.7

Refresh pattern ini saya copas dari www.fazar.net
Saya tidak menerima pertanyaan seputar posting saya ini, krn ini hasil copas, dan akan dipelajari lebih lanjut. Maaf.


# refresh patterns

refresh_pattern -i \.(cab|3gp|swf|mp4|mp3|mkv|rm|rmvb|avi|mpeg|mpg)$ 43200 95% 262800 ignore-reload ignore-no-cache ignore-private override-expire

# web contents
refresh_pattern -i \.(class|css|js|xml)$ 1440 50% 10080 ignore-no-cache ignore-private reload-into-ims override-lastmod
refresh_pattern -i \.index\.(html|htm|php)$ 0 50% 1
refresh_pattern -i \.(cgi|asp|shtml|pl|html|htm)$ 0 20% 1

# web video
refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id) 10080 500% 43200 override-expire ignore-no-cache ignore-private ignore-reload

# images
refresh_pattern -i \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv)(\?|$) 10080 300% 43200 override-expire override-lastmod reload-into-ims ignore-reload

# compressed files
refresh_pattern -i \.(exe|zip|rar|tgz|msi|sis|xpi|bin|jar)(\?|$) 10080 3000% 43200 reload-into-ims ignore-no-cache

# facebook
refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(jpg|png|gif) 43800 200% 10080 ignore-reload override-expire ignore-no-cache ignore-private reload-into-ims
refresh_pattern -i ^http:\/\/*\.[a-z]\.fbcdn.net.*\.(jpg|gif|png|swf|mp3|flv|mp4) 43800 200% 10080 ignore-reload override-expire ignore-no-cache ignore-private reload-into-ims
refresh_pattern -i static\.[a-z]\.fbcdn\.net*\.(jpg|gif|png) 43800 200% 10080 ignore-reload override-expire ignore-no-cache ignore-private reload-into-ims
refresh_pattern -i ^http:\/\/profile\.[a-z]\.fbcdn.net*\.(jpg|gif|png) 43800 200% 10080 ignore-reload override-expire ignore-no-cache ignore-private reload-into-ims
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

# banner IIX
refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 129600 99999% 129600 reload-into-ims  ignore-reload override-expire ignore-no-cache
refresh_pattern ^http:\/\/ads(1|2|3).kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache
refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache
refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache
refresh_pattern ^http:\/\/openx.kompas.com.*\/ 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache
refresh_pattern kaskus.\us.*\.(jp(e?g|e|2)|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache
refresh_pattern -i cdn-[a-z]\.kaskus.\us.*\.(jp(e?g|e|2)|gif|png) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache
refresh_pattern ^http:\/\/img.kaskus.us.*\.(jpg|gif|png|swf) 43200 99999% 129600 reload-into-ims ignore-reload override-expire 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).* 43200 20% 43200 ignore-no-cache ignore-private override-expire ignore-reload

# ytimg, google, etc
refresh_pattern ^.*safebrowsing.*google 43200 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-private
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 43200 999999% 43200 override-expire ignore-reload ignore-private
refresh_pattern ytimg\.com.*\.jpg 43200 999999% 43200 override-expire ignore-reload
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 43200 999999% 43200 reload-into-ims ignore-no-cache ignore-reload override-expire
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 43200 999999% 43200 override-expire ignore-reload ignore-no-cache ignore-private override-lastmod

# facebook games
refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache
refresh_pattern -i \.zynga.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache
refresh_pattern -i \.farmville.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache
refresh_pattern -i \.ninjasaga.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache
refresh_pattern -i \.mafiawars.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache
refresh_pattern -i \.crowdstar.com.*\/ 10080 999999% 43200 ignore-reload override-expire ignore-no-cache

# IIX download
refresh_pattern -i ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims  ignore-reload override-expire ignore-no-cache

# other
refresh_pattern ^ftp: 480 60% 22160
refresh_pattern . 180 60% 4320


Friday, November 16, 2012

0
Penjelasan tentang squid CacheMGR


Untuk mengakses cachemgr general runtime information via konsol :
#squidclient mgr:info
Melalui browser :


















Hasilnya angka-angka + kata-kata banyak sekali :D
let’s read apa artinya kata-kata dan angka-angka itu, yang penting-penting saja ya :D
Connection information for squid:
        Number of clients accessing cache:    15
        Number of HTTP requests received:     1775447
        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: 144.9
        Average ICP messages per minute since start:  0.0
        Select loop called: 34743641 times, 21.162 ms avg

Number of clients accessing cache:
Jumlah IP unik yg pernah mengakses squid. Misalnya jaringan dengan 14 PC client, 1 mikrotik, akan dibaca ada 15 client yg mengakses squid. Kalo misalnya ada 1 laptop yg kemudian terhubung ke squid, squid akan membaca ada 16 client. Biarpun kemudian laptop itu udah tidak terhubung lagi ke squid, tetap 16 client yg ditampilkan cachemgr sampe squid reboot

Number of HTTP requests received s/d Average ICP messages per minute since start
dari namanya sudah self explanatory, ga perlu dijelaskan lagi

Select loop called
Kesalahpahaman menjurus ke salah kaprah sering terjadi disini. angka ini bukan petunjuk performa kecepatan squid merespon request dari client yang sebenarnya.
Ini adalah waktu interval antara sebuah fungi select() [atau poll()/epoll()] dipanggil, dan waktu selanjutnya fungsi itu dipanggil lagi, bukan seberapa cepat request client diproses squid.
Semakin sibuk jaringan,  nilai Select Loop Called akan semakin kecil
Cache information for squid:
        Request Hit Ratios:    5min: 52.9%, 60min: 42.6%
        Byte Hit Ratios:       5min: 33.2%, 60min: 35.6%
        Request Memory Hit Ratios:     5min: 1.5%, 60min: 1.6%
        Request Disk Hit Ratios:       5min: 94.0%, 60min: 90.2%
        Storage Swap size:     20939596 KB
        Storage Mem size:      8180 KB
        Mean Object Size:      11.03 KB
        Requests given to unlinkd:     0

Request Hit Ratios
Prosentase cache hit dibanding HTTP request

Byte Hit Ratios
Squid akan membandingkan jumlah bytes diterima dari server asli (received) misalnya dari server warneter.net dengan jumlah bytes yang dikirim ke client (sent).  Jika received lebih kecil sent, byte hit ratio akan positif. Nilai ini dapat juga menjadi negatif, artinya received  lebih besar dari sent jika client sering membatalkan request sebelum semua byte selesai di sent oleh squid

Request Memory Hit Ratios
Prosentase cache hit yang diambil dari memory bukan dari Hard disk. Kalau di cache log, ini adalah persentase TCP_MEM_HIT

Request Disk Hit Ratios
Prosentase cahe hit yang diambil dari hard disk. Kalau di cache log, ini adalah persentase TCP_HIT
Yang harus diingat, Request Memory Hit Ratios dan Request Disk Hit Ratios diatas hanya nilai sesaat, bukan nilai pasti cache hit. Besarnya cache hit yang sebenarnya diliat dari cache client list
#squidclient mgr:client_list
Liat di baris-baris paling bawah :
TOTALS
ICP : 0 Queries, 0 Hits (  0%)
HTTP: 1833797 Requests, 791694 Hits ( 43%)
43% itu adalah cache hit yang sebenarnya, berapa % bandwidth internet yang dihemat dengan penggunaan squid cache proxy

Storage Swap Size
Jumlah data yang ter-cache, atau tersimpan di hard disk, dalam satuan kilobytes.

Storage Mem size
Jumlah data yang ter-cache, atau tersimpan di memory atau RAM, dalam satuan kilobytes.

Mean Object Size
Hasil pembagian besarnya storage swap size dengan jumlah file cache. Hasilnya adalah size rata-rata besarnya file cache

Requests given to unlinkd
unlinkd adalah proses external yang digunakan squid untuk menghandle deteltion/penghapusan file cache. Jika nilainya 0 berarti proses unlinkd tidak digunakan dalam konfigurasi squidnya. Saat compile squid, tambahkan option –disable-unlinkd saat ./configure
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.03622  0.07825
        Cache Misses:          0.44968  0.24267
        Cache Hits:            0.00091  0.00091
        Near Hits:             0.76407  0.39928
        Not-Modified Replies:  0.00091  0.00091
        DNS Lookups:           0.00000  0.00000
        ICP Queries:           0.00000  0.00000
Sebelum bahas soal ini, lebih baik pahami dulu mengenai apa itu MEDIAN

HTTP Request (All)
Median time semua http request, dihitung mulai dari saat squid menerima request dari client sampai squid selesai merespon request itu (client menerima data hasil dari request0nya) DNS Lookup time juga dihitung dalam median time http request.

Cache Misses
response time untuk request yg tidak tercache, ato cache miss

Cache Hits
waktu yg dibutuhkan squid untuk mengambil data yang sudah ter-cache di hard disk kepada client. Inilah salah satu point performa squid yang sebenarnya, seberapa cepat squid mengambil cache dari harddisk dan kemudian mengirimnya kepada client. Jika cache hit time terlalu tinggi, berarti mulai terjadi bottle neck. Penyebabnya bisa macam-macam, mulai dari konfig squid yang kurang baik, konfig OS-nya yang kurang baik, maupun karena hardware, utamanya hard disk yang kurang baik. Di access log tercatat sebagai TCP_HIT, TCP_MEM_HIT, and TCP_OFFLINE_HIT

Near Hits
Berhubungan dengan TCP_REFRESH_HIT di access log, squid akan request e server asli apakahada file yang lebih baru dari  file di cache. server asli akan merespon, bahwa tidak ada modifikasi atas file yg direquest oleh squid, baru kemudian squid mengirim file cache tersebut ke client

Not-Modified Replies
Jika ada client yang mengirim conditional request dan squid merespon tanpa menghubungi server aslinya. Logged as TCP_IMS_HIT di access log

DNS Lookup
Waktu yang dibutuhkan squid untuk meng-query (menanyakan alamat suatu URL) DNS server

Sumber

Sunday, November 13, 2011

0
squid.conf by Gien Agena


########################################
# WELCOME TO SQUID LUSCA_HEAD-r14733   #
# Tunning by : GienAgena          #
########################################
cache_mgr GienAgena
#offline_mode on
#============================================================================================================================#
#=========================================================#  AWAL  #=========================================================#
#============================================================================================================================#
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 192.168.2.0/27     # <<< Edit IP Address untuk Local area anda dan mask bits nya
acl SSL_ports port 443
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 3128 transparent
cache_dir aufs /cache1/ 81920 16 256  # <<< Edit Maksimal Cache nya "81920" maksudnya kita akan nge cache di direktory cache1 sampe 80GB
cache_mem 8 MB      # <<< Edit untuk cache yang di simpan di memory jangan terlau besar tergantung Jumlah memory ( RAM )
maximum_object_size_in_memory 1 MB   # <<< Edit untuk maksimal object yang di simpan di memory " sesuaikan dengan kebutuhan dan jumlah RAM
minimum_object_size 1 bytes
maximum_object_size 38000 KB    # <<< Edit untuk maksimal besarnya ukuran file yang akan di cache ( sesuaikan dengan kebutuhan )
cache_swap_low 98
cache_swap_high 99
access_log /cache1/access.log
cache_log /cache1/cache.log
cache_store_log /cache1/store.log
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
cache_effective_user squid
cache_effective_group squid

#=================================================================================================================================#
#=========================================================#  REGEX URL  #=========================================================#
#=================================================================================================================================#
coredump_dir /cache1/
###############################################################################
#acl PHP77 url_regex forum.php forumdisplay.php showthread.php showthreads.php
#acl PHP77 url_regex download.php downloads.php classifieds.php classified.php
#acl PHP77 url_regex forum
#no_cache deny PHP77

#hierarchy_stoplist cgi-bin ? localhost
#acl QUERY22 urlpath_regex cgi-bin \? localhost
#no_cache deny QUERY22
################################################################################
#acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)
#acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
#acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
#acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
#acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com

emulate_httpd_log off
server_http11 on
redirector_bypass on

acl video urlpath_regex                   \/(get_video|videoplayback\?id|videoplayback.*id)
acl speedtest urlpath_regex               \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|txt)\?
acl angka1 url_regex                      ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl angka2 url_regex                      (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl gambar urlpath_regex                  \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl rapidshare url_regex                  \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.*
acl photobucket url_regex                 ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl google url_regex                      ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.id)
acl indowebster url_regex                 ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|zip|flv|wm(a|v)|3gp|mp(4|3)|exe|msi|avi|(mp(e?g|a|e|1|2|3|4))|cab|exe)
acl getmethod method GET

storeurl_access allow video
storeurl_access allow speedtest
storeurl_access allow gambar
storeurl_access allow rapidshare
storeurl_access allow photobucket
storeurl_access allow indowebster
storeurl_access deny all

storeurl_rewrite_program /usr/local/squid/etc/storeurl.pl
storeurl_rewrite_children 4
storeurl_rewrite_concurrency 20


#=======================================================================================================================================#
#=========================================================#  REFRESH PATTERN  #=========================================================#
#=======================================================================================================================================#
# VIDEO CACHE
refresh_pattern ^http://(.*?)/get_video\? 10080 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern ^http://(.*?)/videoplayback\? 10080 90% 432000 override-expire ignore-no-cache ignore-private
refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id) 161280 50000% 525948 override-expire ignore-reload

# facebook
refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(jpg|png|gif) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ((tagged.com)|(96.17.109.27)).*\.(jpg|png|gif) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 129600 100% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern edgecastcdn.\net.*\.swf? 129600 100% 129600 override-expire ignore-reload store-stale
refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png)($|&) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire store-stale
refresh_pattern .zynga.net.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .zynga.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .farmville.net.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .farmville.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .ninjasaga.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .apps.facebook.com.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .frontierville.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale
refresh_pattern .tagged.*\.(jpg|gif|png|swf|mp3)($|&) 129600 100% 129600 store-stale

#ads
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).* 129600 20% 129600 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth store-stale negative-ttl=40320 max-stale=1440
#specific sites
refresh_pattern ^.*safebrowsing.*google 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth negative-ttl=10080 store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 129600 99100% 129600 override-expire ignore-reload store-stale
refresh_pattern \.(ico|video-stats) 129600 100% 129600 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod negative-ttl=10080 store-stale

# pictures & images
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico|swf)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private store-stale
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico|swf)\? 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private store-stale

# website
#refresh_pattern -i \.(xml|html|htm|js|jsp|txt|css|php|asp)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(xml|js|jsp|txt|css)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(xml|js|jsp|txt|css)\? 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth store-stale

#sound, video multimedia
refresh_pattern -i \.(flv|x-flv|mov|avi|qt|mpg|mpeg|wmv)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache store-stale
refresh_pattern -i \.(wav|mp3|mp4|au|mid)$ 10080 50% 43200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private store-stale

# files
refresh_pattern -i \.(iso|deb|rpm|zip|tar|tgz|ram|rar|bin|ppt|doc)$ 10080 90% 43200 ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth ignore-reload ignore-no-cache store-stale
refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth store-stale
refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 10080 100% 43200 override-expire ignore-no-cache ignore-auth store-stale

#IIX DOWNLOAD
refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 43200 99999% 129600 reload-into-ims ignore-reload override-expire ignore-no-cache ignore-no-store store-stale ignore-auth

#default option
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 1 0% 2
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320 store-stale


#=============================================================================================================================#
#=========================================================#  TOOLS  #=========================================================#
#=============================================================================================================================#
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
negative_ttl 2 minutes
half_closed_clients off

connect_timeout 1 minute
read_timeout 15 minutes
request_timeout 5 minutes
persistent_request_timeout 2 minutes
half_closed_clients on
shutdown_lifetime 30 seconds


icp_port 0
prefer_direct off

ipcache_size 5120
ipcache_low 98
ipcache_high 99

fqdncache_size 5120

memory_pools off
log_icp_queries off
icp_hit_stale on
query_icmp on
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on

#=============================================================================================================================#
#===================================================#     DELAY POOLS     #===================================================#
#=============================================================================================================================#
acl client src 192.168.2.0/27  # <<< Edit IP address sesuaikan dengan IP Local area dan edit Mask Bit nya sesuai dengan kebutuhan

acl ekstensiblok url_regex -i \.aif \.rmi \.snd \.wav \.aifc \.aiff \.au \.mid \.midi \.mp3 \.wma \.aaf \.ogg \.rm
acl ekstensiblok url_regex -i \.asf \x-flv \.mpe \.mpeg \.mpg \.mpv2 \.avi \.m1v \.mp2v \.mpa \.flv \.wmv \.dat
acl ekstensiblok url_regex -i \.mkv \.div \.divx \.div \.ac3 \.dts \.vob \.dvr-ms \.mp4 \.m2v \.m4v \.m2ts \.bup \.rmvb
acl ekstensiblok url_regex -i \.3gpp \.3gp2 \.3gp \.3g2 \.vro \.rm \.ram \.raw \.qt \.mov \.svcd \.xdiv \.3mm \.aep \.des
acl ekstensiblok url_regex -i \.ajp \.amv \.avs \.d2v \.d3v \.dmb \.dxr \.amx \.arf \.asf \.dvx \.f4v \.dv \.bsf \.rv \.msi
acl ekstensiblok url_regex -i \.srf \.hdf \.wbmp \.x3f \.xbm \.cr2 \.crw \.dcr \.tga \.djvu \.emf \.fpx \.icl \.icn \.plp \.vdf
acl ekstensiblok url_regex -i \.ppm \.raf \.ras \.raw \.mrw \.nef \.orf \.pbm \.pcd \.pef \.pgm \.rs \.pdf \.utx \.nzp \.pak \.cdiff
acl ekstensiblok url_regex -i \.rpm \.bin \.dmg \.exe \.msi \.cab \.swf \.wsf \.pdf \.m4v \.000 \.001 \.002 \.003 \.004 \.005 \.006 \.007 \.008 \.009
acl ekstensiblok url_regex -i \.ace \.arj \.bzip2 \.gz \.jar \.tgz \.uue \.iso \.7-zip \.rar \.alz \.nrg \.zip \.cab \.gzip \.vpx
acl ekstensiblok url_regex -i \.lzw \.lzh \.tar \.tbz \.tar.tbz \.tar.tgz \.tar.tgz2 \.torrent \.FLV \.7z \.mp4 \.aac \.ogg \.pck
acl streamregex url_regex -i watch\? get_video\?video_id videodownload\? videoplayback\? videoplay\? dailymotion video\.[a-z]\.fbcdn\.net video\flv video\mpg video\quicktime video\x-flv video\mp4 video\x-avi video\x-mpeg video\x-wmv video\flash video\qt video\wmv

delay_pools 1    # <<< Edit dan sesuikan dengan kebutuhan Pool yang akan di buat

delay_class 1 3    
delay_parameters 1 32000/32000 20000/20000 14000/14000 # <<< 20000/20000 Bandwight yang di berikan kepada client yang tidak mengakses file atau ekstension yang di jabarkan di atas
delay_access 1 allow ekstensiblok client    # 14000/14000 Bandwight yang di berikan kepada client bila meng akses file atau ekstension yang di jabarkan di atas
delay_access 1 allow streamregex client
delay_access 1 deny all

# = Kesimpulan dari Delay Pools di atas adalah : jika client hanya browsing2 biasa mereka akan mendapatkan bandwight kurang lebih 20KB/s
# dan jika user melakukan download atau streaming dengan ekstension yang telah di jabarkan di atas maka user akan mendapatkan bandwight kurang lebih 14KB/s
# jadi sesuikan dengan situasi dan kebutuhan dimasing2 tempat....slamat mencoba dan berpusing2 ria...xixi...SALAM COSI
Saturday, September 24, 2011

0
Mempercepat koneksi internet


Koneksi internet anda lambat? cobalah SPEED CONNECT Internet Accelerator.

Review on web:
Top internet accelerator (according to PC Magazine), a network settings optimizer to speed up your existing Dial-Up Modem, DSL, Cable, Wireless, LAN, High-speed internet connections. 

SpeedConnect Internet Accelerator is a powerful Windows application designed to optimize your network connection and speed up all your internet activities. This translates into a faster internet connection, faster browsing and email, faster downloads, faster online gaming, improved Skype connection. 

Popular Posts

 
viscomtech | © 2010 by DheTemplate.com | Supported by Promotions And Coupons Shopping & WordPress Theme 2 Blog