13 April 2013

Step-by-step Installing and Configuring Lusca as Proxy Server in Ubuntu Server 12.04

Step 1 . Install Ubuntu Server 12.04 and use manual partition with following partition table ( In this case I have 250 GB HDD and RAM 4 GB)
Type Size Location FileSystem Mount
Primary 30 GB Beginning ext4 /
Primary 500 MB Beginning ext4 /boot
Primary 8192 MB Beginning swap swap
Logical 25 GB End btrfs /cache-1
Logical 25 GB End btrfs /cache-2
Logical 25 GB End btrfs /cache-3
Logical 25 GB End btrfs /cache-4
Logical 25 GB End btrfs /cache-5
Logical 46 GB End ext4 /home
Logical 5 GB End ext4 /opt
Logical 5 GB End ext4 /srv
Logical 5 GB End ext4 /tmp
Logical 5 GB End ext4 /usr
Logical 5 GB End ext4 /usr/local

Step 2. Make sure your ubuntu package repositories and installed programs are up to date.
sudo apt-get update -y && sudo apt-get upgrade -y
Step 3. Install Lusca and other package
sudo apt-get install lusca squidclient squid-cgi ccze
Step 4. Create lusca file configuration:
sudo /etc/lusca/squid.conf /etc/lusca/squid.conf.original
sudo touch /etc/lusca/squid.conf
sudo nano /etc/lusca/squid.conf
 
Use the following Lusca File Configuration
 


Set owner file /etc/lusca/squid.conf to user and group proxy
sudo chown proxy:proxy /etc/lusca/squid.conf
Step 5. Create Store Url File Configuration:
sudo mkdir /etc/squid/
sudo touch /etc/squid/storeurl.pl
sudo nano /etc/squid/storeurl.pl
Use the following store url file configurations
 


Change Owner and permision file /etc/squid/storeurl.pl
sudo chown proxy:proxy /etc/squid/storeurl.pl
sudo chmod +x /etc/squid/storeurl.pl
Step 6. Change owner and permission lusca cache directory
sudo chown proxy:proxy /cache-{1,2,3,4,5}
sudo chmod 777 /cache-{1,2,3,4,5}
Step 7. Debug lusca, to check any erros with following command
lusca -d1
Step 8. IF ni have error Restart lusca daemon with following command
sudo /etc/init.d/lusca restart
or
sudo service lusca restart
Step 9. Monitoring lusca access.log :
sudo tail -f /var/log/lusca/access.log | ccze
 
 
 
Log access.log Proxy Lusca How to Install and Configure Lusca as Proxy Server in Ubuntu Server 12.04
you can also monitoring lusca using command : squidclient mgr:info
Previous Post
Next Post
Related Posts

0 komentar: