Skip to main content

Install SQUID LUSCA Proxy Server Youtube Cache


Many ways to explain how a proxy server built machine. Mostly using Squid package that is placed on your computer unix platform. Although squid can also run on a computer with Windows operating system. But as my favorite to make the proxy server machine is Ubuntu.

By default, Squid can not cache dynamic contents such as video on youtube. (CMIIW). Therefore I added Lusca and gave patched to cache videos, especially, on youtube.

The following are the steps when installing Lusca on Ubuntu version 11.10.

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

Up here please edit the squid.conf file customize with your network.
After that, proceed with the following steps:
# squid -f /etc/squid/squid.conf -z
# sudo /etc/init.d/squid restart
# squid -NDd1
# reboot

After restarting the machine, please check with the following command:
# tail -f /var/log/squid/access.log | ccze


Well, it's done.
If you see the password in the steps above please comment below or contact us via email: cirebonwifi@gmail.com
============================================================
UPDATE: please change the supercache.pl file with the newest one. and adjust supercache.conf.

Comments

Youtube Proxy enables you to unblock/avoid/bypass all the websites. now you can unblock all of your favroite websites like unblock proxy youtube, facebook and many more as you want.

Popular posts from this blog

Usability Of Wireless Tools Mikrotik

Usability Of Wireless Tools Mikrotik Explanation of the use of Wireless Tools-Mikrotik Mikrotik Router has Wireless functionality and features that we can take advantage of for communication between devices with Mikrotik wireless communication using the media. But not all Mikrotik Wireless feature can use this, because not all types of Mikrotik is no Wireless Card. Usability Of Wireless Tools Mikrotik Call it Mikrotik RB 750 who only got 5 ethernet interface and without the wireless interface because there is no wireless card. Specific to Mikrotik Pool, most could use Wireless because it features a Mini PCI slot is available for the wireless card. OK, this time we will learn wireless wireless usage i.e. Mikrotik tools standard Mikrotik. Wireless tools is very important in building wireless networks with mikrotik, to monitor and monitor the condition of the wireless network around the US. To use the wireless tools, you can use the winbox and into the Wireless menu. ...

Discussion Of The RoMon Mikrotik

Discussion Of The RoMon Mikrotik RoMON was abbreviated from the Router Management Overlay Network which is a new feature on Mikrotik RouterOS version 6.28. This may still feature RoMON alien to You, because it is available in a new version of RouterOS and WinBox. Well, to find out more what it RoMON Mikrotik, let's discuss in this article. The Meaning Of The RoMON What is RoMON? RoMON (Router Management Overlay Network) is a Mikrotik proprietary protocol (the protocol is only supported on devices Mikrotik), which can make the connection secure layer2 (secure) to MikroTik devices either through Physical connection ( Ethernet) or Layer2 Tunnel.  In addition, RoMON also has the following features: Discovery and management MikroTik devices via Ping, SSH, Winbox (version 3.0. rc 9 and above). Able to do discovery (search) the MikroTik devices enable RoMON which has gone through multiple hops. So with this we can detect RoMON device on WinBox Mikrotik Mikrotik dev...

What is the Maximum Distance for UTP Cable PoE Mikrotik?

What is the Maximum Distance for UTP Cable PoE Mikrotik? How much is the maximum distance for UTP Cable PoE Mikrotik? These questions may never show up your memory settings which are often mainly mikrotik Mikrotik. Poe or the length of the Power over Ethernet is a device which can transmit electricity through the medium voltage cable UTP to power other tools or Mikrotik. So no need to pull the power adapter cable is too long. A perfect solution for those of you who wish to establish a wireless network Mikrotik good outdoor Point to Point (PtP) and Point to Multi Point (PtM). Already know right like what forms of Power over Ethernet (PoE) Mikrotik? The appearance of PoE his Mikrotik as below. On the image of PoE at the top, there are two ports for RJ-45 connector. LAN ports--> from PoE to the PC for remote Mikrotik. Maximum cable length of 100 meters. Port POE--> from PoE to Mikrotik Mikrotik to animate. Maximum cable length? In theory the maximum distanc...