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

Mikrotik Script for DNSDynamic, DDNS and IP-Change Update

I often use this script to automatically update Dynamic IP on Mikrotik. Condition of dial-up done by Mikrotik, so the modem using Bridge mode, and you've been setting up email on the Tool >> email in your Mikrotik. Download here : And for other dynamic DNS providers please download this script: Script for DDNS and IP-Change DNSDynamic here ______________________________________________________________________________ This article is translated version to English from Bahasa Indonesia by Google. Original post was write by cirebonwifi

How to Install Windows XP on a VPS by using Custom Vultr ISO Win XP Pro

Here is how to install Windows XP on a VPS by using Custom Vultr ISO Win XP Pro that was made specifically to be able to run on a VPS Vultr. Using VPS Vultr to install Windows XP, we can later do a RDP (Remote Desktop Protocol) Windows XP in Vultr easily and cheaply. As I've described in my previous article about Tutorial How to Install Mikrotik in VPS Vultr, that Vultr this is the VPS vendor that offers cheap VPS package price. With $5 we can already rent a VPS with the specifications of 1 GB of RAM, 25 GB of SSD, 1 Core CPU Bandwidth, and 1 TB. Why Use Windows XP? I use windows xp than any other version of Windows newer because Win XP it's efficient in the use of the RAM. When compared to other versions of windows, especially windows server, then a windows xpRAM consumption more efficient. This greatly helps for those of us who are going to use a lot of applications in windows XP RDP in VPS Vultr. By using the windows operating system will allow you to more u...

Setup VPN Client on Mikrotik Router

For some reason, we want to make the proxy as a VPN client and forward the entire connection from the client to the VPN server Mikrotik. The following are the steps to configure Mikrotik as VPN-Client: IMPORTANT: Don't setup your Mikrotik RouterOS remotely. You have to be connected via the LAN interface, otherwise you will cut the connection (access to the router) and you will not be able to access it remotely any more. 1.Update Router OS on your Mikrotik router to latest version (at least version v5.8 ) 2.Connect to your Mikrotik router via WinBox. 3.Setup the DNS servers manually to Google DNS: IP -> DNS -> Settings -> Servers 8.8.8.8 and  8.8.4.4 4.Write down the default gateway IP address of your Internet provider (ISP) and remove the default-route (Dst. Address = 0.0.0.0/0 routed via your ISP GW) from the routing table. If you don't use DHCP Client please follow the STEP 5. 5.Go to IP -> DHCP Client and disable the "Add Default Ro...