IKLAN

Pelatihan
&
Jasa Setting Proxy High Perfomance

Di Jamin Youtube tercache & Game online terupdate cepat
  • Pelatihan & Setting On the site
Mobile Phone:085868788968
Pin BB:52595EA2
BUTUH MOBIL BARU/BEKAS?

DP minimal 30 % dari harga mobil baru atau bekas. Syarat untuk karyawan/pns: Fotokopi KTP pemohon, Kartu Keluarga, Rincian Gaji, Rekening Listrik, Surat/Akta nikah, Telepon, PDAM, PBB, Rekening Tabungan & NPWP
Syarat untuk wiraswata:Plus SIUP/TDP, Laporan keuangan terakhir
Contact Person : Eka (082227594993)
Pin BB : 52595EA2

Jasa Pembuatan RT RW Net dan Warnet

Modal Hanya 5 JT-an..!!!

Meliputi:

=>Radio Access Point TP-LINK

=>Antena OMNI

=>Pigtail

=>Kabel UTP 25 meter

=>CPU P3 Mikrotik 2nd, CPU Dual COre Proxy Server 2nd dan Tower 3 Pipa Galvanis

Keuntungan

=>Lebih Murah dalam 1 paket komplit

=>RT/RW-Net Siap Pakai

=>PJK akan membantu promosi

Call/SMS = 085868788968
Pin BB :52595EA2


SEWA MOBIL PEKALONGAN DAN BATANG
Sewa/Carter Mobil Dalam Kota / Luar Kota (Se-Jawa) + Sopir.
Hubungi: Eka HP: 085868788968 / 082227594993
Pin BB : 52595EA2
Alamat:
Jl. Akasia Raya No.5 Perumahan Kalisalak Batang
Jl. Trapesium 3 No.15 Perumahan Limas Indah Pekalongan


SPACE INI DI SEWAKAN UNTUK IKLAN

Hubungi :

Mobile Phone:085868788968
Pin BB:52595EA2




About Me

My photo

I was born on 11th July 1978 in Pekalongan,Central Java Province,Indonesia.I have been running my own business (Putra Jaya Komputer) for mor 15 years in Pekalongan city and Batang Regency. On 2014 I am starting a new business is a rent a car. If any one who has a plan to visit Indonesia don't hesitate contact me.

Blog Archive

Popular Posts

Home » » install squid dan cachevideo

install squid dan cachevideo

halo juragan.... lgs aja yah...

saya menggunakan ubuntu 8.10. pada waktu install ubuntu nya saya juga install LAMP server, soal nya cachevideo pake apache.
paket yang di butuhkan
1. Squid >= versi 2.6 keatas
2. Python >= versi 2.4 keatas
3. Python-urlgrabber (modul urlgrabber untuk python)
4. Python-iniparse (modul iniparse untuk python, bisa didownload di http://code.google.com/p/iniparse/)
5. Web Server (Apache2 atau Lighttpd)

install squid
#apt-get install squid
ubah file config /etc/squid/squid.conf sesuai dengan config anda masing2

download Python-urlgrabber
#wget http://linux.duke.edu/projects/urlgrabb ... bber-3.1.0
extract
#tar -zxvf urlgrabber-3.1.0.tar.gz
masuk direktori
#cd urlgrabber-3.1.0
compile
#python setup.py install

download Python-inipars
#wget http://iniparse.googlecode.com/files/in ... 3.1.tar.gz
extract
#tar -zxvf iniparse-0.3.1.tar.gz
masuk direktori
#cd iniparse-0.3.1
compile
#python setup.py install

download videocache. di karenakan web nya kadang up kadang koid jadi saya backup file nya di tmpt hosting lain
#wget http://cachevideos.com/sites/default/fi ... 9.1.tar.gz
#http://rapidshare.com/files/245904931/videocache-1.9.1.tar.gz.html
#http://www.megaupload.com/?d=KY7JKK60
extract
#tar -zxvf videocache-1.9.1.tar.gz
masuk direktori
#cd videocache-1.9.1
edit file setup.py
#nano setup.py
ganti tulisan berikut menjadi seperti ini

squid_user = 'proxy'
squid_group = 'proxy'
apache_conf_dir = '/etc/apache2/conf.d/'

kemudian compile
#python setup.py install

setelah itu tambahkan script dibawah ini pada baris akhir /etc/squid/squid.conf
#nano /etc/squid/squid.conf

IN-- videocache config for squid
url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
url_rewrite_children 7
acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/ge$
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-$
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-$
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-$
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-$
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 bitcast\.vimeo\.com\/vimeo\/videos\/
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 \.files\.youporn\.com\/(.*)\/flv\/
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube$
acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_dom dstdomain .mccont.com dl.redtube.com .cdn.dailymotion.com
acl videocache_deny_url url_regex -i http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
url_rewrite_access deny videocache_deny_url
url_rewrite_access allow videocache_allow_url
url_rewrite_access allow videocache_allow_dom
redirector_bypass on
# --END-- videocache config for squid



edit juga file /etc/videocache.conf
#nano /etc/videocache.conf
ganti parameter berikut
cache_host = ip-squid
proxy = http://ip-squid:3128/

kemudian restart squid dan apache
#/etc/init.d/squid restart
#/etc/init.d/apache2 restart

jika sudah selesai coba browse ip squid
http://ip-squid-ente/videocache

untuk melihat log videocache
#tail -f /var/log/videocache/videocache.log

topologi saya
Internet -> RouterBSD -> RouterMikrotik2.9.27 & Ubuntu8.10 -> client

konfig zph di ambil dari http://human.network.web.id/2008/07/03/ ... -mikrotik/

config nat di mikrotik
Code: Select all
1 ;;; proxy
chain=dstnat src-address=ip-network-ente/24 protocol=tcp dst-port=80
action=dst-nat to-addresses=ip-squid-ente to-ports=3128


kasus yang saya alami adalah untuk objek gambar .jpeg .exe atau file patch gameonline yang besar nya ampe 100mb bisa lolos limiter di mikrotik tapi untuk yang video masi ke limit. maklum saya masi copo jadi saya cari solusi yang lain.

Solusi nya:
buat mangle baru
Code: Select all
1 ;;; tes bypass proxy http
chain=prerouting dst-address=ip-squid-ente protocol=tcp dst-port=80
action=mark-connection new-connection-mark=proxy_conn passthrough=yes

2 chain=prerouting connection-mark=proxy_conn action=mark-packet
new-packet-mark=bypass passthrough=no


buat di simple queue
Code: Select all
name="bypass proxy" target-addresses=ip-network/24 dst-address=0.0.0.0>
interface=all parent=none packet-marks=bypass direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=0/0
total-queue=default-small


buat para master yang lihat config saya amburadul tolong di koreksi, soal nya saya masi COPO
mudah2an bermanfaat bagi yang memerlukan

credit : anung, anwar, http://human.network.web.id/, http://forum.linux.or.id/ , indofreebsd, http://cachevideos.com/
tarjo