Install and Configure Lusca Proxy Server in Ubuntu Server 12.04


Step 1: make certain your ubuntu package repositories and put in programs area unit up thus far.
Code:
sudo apt-get update -y && sudo apt-get upgrade -y

Step 2: Install Lusca and alternative package
Code:
sudo apt-get install lusca squidclient squid-cgi ccze

Step 3: Backup recent lusca file configuration and build new lusca file configuration:
Code:
sudo /etc/lusca/squid.conf /etc/lusca/squid.conf.original
Code:
sudo bit /etc/lusca/squid.conf
Code:
sudo nano /etc/lusca/squid.conf
copy and paste squid configuration from here
Set owner file /etc/lusca/squid.conf to user and cluster proxy
Code:
sudo chown proxy:proxy /etc/lusca/squid.conf

Step 4: produce directory /etc/squid and Store URL File Configuration (storeurl.conf):
Code:
sudo mkdir /etc/squid/
Code:
sudo bit /etc/squid/storeurl.pl
Code:
sudo nano /etc/squid/storeurl.pl
copy and paste store URL from here
Change Owner and permission file /etc/squid/storeurl.pl
Code:
sudo chown proxy:proxy /etc/squid/storeurl.pl
Code:
sudo chmod +x /etc/squid/storeurl.pl

Step 5: amendment owner and permission lusca cache directory
Code:
sudo chown proxy:proxy /cache-{1,2,3,4,5}
Code:
sudo chmod 777 /cache-{1,2,3,4,5}

Step 6: right lusca, to envision any erros with following command
Code:
lusca -d1

Step 7: IF metal have error Restart lusca daemon with following command

Code:
sudo service lusca restart
Step 8: Restart ubuntu server twelve.04
Code:
sudo init half-dozen

Step 9: observance lusca access.log :

Code:
sudo tail -f /var/log/lusca/access.log | ccze

1 comments: