Squid Lusca Proxy Server Untuk Youtube Cache

Squid Lusca Proxy Server Untuk Youtube Cache - Banyak cara untuk menjelaskan bagaimana server proxy membangun mesin. Sebagian besar menggunakan paket Squid yang ditempatkan pada platform unix komputer Anda. Meskipun cumi-cumi juga dapat dijalankan pada komputer dengan sistem operasi Windows. Tapi seperti favorit saya untuk membuat mesin server proxy adalah Ubuntu.

Secara default, Squid tidak bisa menyimpan isi yang dinamis seperti video di youtube. (CMIIW). Oleh karena itu saya menambahkan Lusca dan memberi ditambal untuk cache video, terutama, di youtube.

Berikut ini adalah langkah-langkah ketika menginstal Lusca pada Ubuntu versi 11.10.

Squid Lusca Proxy Server Untuk Youtube Cache

Squid Lusca Proxy Server Untuk Youtube Cache

 

Update & Install SQUID Packages:

# apt-get update
# apt-get install squid squidclient squid-cgi
# apt-get install gcc
# apt-get install build-essential
# apt-get install sharutils
# apt-get install ccze
# apt-get install libzip-dev
# apt-get install automake1.9
# apt-get install acpid
# apt-get install unzip
# cd /tmp

Download & Install LUSCA Packages:

# wget -c http://cirebonwifi.pusku.com/files/LUSCA_HEAD-r14809.tar.gz
# tar -xvzf LUSCA_HEAD-r14809.tar.gz
# cd LUSCA_HEAD-r14809

Patching Lusca Packages:

# wget -c http://cirebonwifi.pusku.com/files/LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
# tar -xvzf LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
# patch -p0 < 3xx-loop.diff
# patch -p0 < async-issue.diff
# patch -p0 < http-gzip.diff
# patch -p0 < ignore-must-revalidate.diff
# patch -p0 < improve-nn-parser.diff
# patch -p0 < lusca-vary.diff
# patch -p0 < segmentation-fault.diff

Configure & Install:

./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid  --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536

# make
# make install

# cd /etc/init.d/
# mv /etc/init.d/squid /etc/init.d/squid.backup
# wget -c http://cirebonwifi.pusku.com/files/squid.init.ubuntu
# mv /etc/init.d/squid.init.ubuntu /etc/init.d/squid
# sudo chmod +x /etc/init.d/squid
# /etc/init.d/squid stop

# mkdir -p /usr/local/share/squid
# chmod 777 /usr/local/share/squid
# cd /usr/local/share/squid
# wget -c http://cirebonwifi.pusku.com/files/cirebonwifi-youtube-supercache.tar.gz
# tar -xvzf cir bonwifi-youtube-supercache.tar.gz

# chown proxy:proxy /cache1
# chown proxy:proxy /cache2
# chmod 777 /cache1
# chmod 777 /cache2
# chown proxy:proxy /usr/local/share/squid/supercache.conf
# chmod 777 /usr/local/share/squid/supercache.conf
# chown proxy:proxy /usr/local/share/squid/supercache.pl
# chmod 777 /usr/local/share/squid/supercache.pl
# chmod +x /usr/local/share/squid/supercache.pl

# cd /etc/squid/
# mv squid.conf squid.conf.backup
# wget -c http://cirebonwifi.pusku.com/files/squid.conf.youtube-supercache.zip
# unzip squid.conf.youtube-supercache.zip
# cp squid.conf.youtube-supercache squid.conf


Sampai disini silahkan edit file squid.conf menyesuaikan dengan jaringan Anda.
Setelah itu, lanjutkan dengan langkah-langkah berikut:

# squid -f /etc/squid/squid.conf -z
# sudo /etc/init.d/squid restart
# squid -NDd1
# reboot

Setelah restart mesin, silakan cek dengan perintah berikut:
# tail -f /var/log/squid/access.log | ccze




3 komentar:

Unknown mengatakan...

The proxy is very important to use because the proxy can open the unblock yotube and also open the you tube where they are off in different country. people of the Pakistan can use the different proxy to open the blocked you tube in Pakistan.  Torrentz UK proxy

Unknown mengatakan...

I'm really impressed with your writing skills and also with the format on your weblog. Holborn Assets

Unknown mengatakan...

This is so essential post. This information helps them who are new bloggers. Thanks for helpful post for us.
Professional Adviser

Posting Komentar

Squid Lusca Proxy Server Untuk Youtube Cache