Installing Squid Proxy Server in Ubuntu
By Fahad Ahammed
- One minute read - 148 wordsLog in on Ubuntu Server, then type command below to Install squid :
sudo apt-get install squid3 ccze
Create directory for Cache, on this case cache directory placed on
directory /home/precise/cache/. Then change
the permissions cache directory to 777 and owner proxy:proxy
sudo mkdir -p /home/precise/cache/
sudo chmod 777 /home/precise/cache/
sudo chown proxy:proxy /home/precise/cache/
Before editing squid configuration, Make a backup of your
/etc/squid3/squid.conf file for future reference. Squid.conf has
nearly all the options listed and it is recommended to go through that
file to know more about squid options.
sudo cp /etc/squid3/squid.conf /etc/squid3/squid.conf.origin
sudo chmod a-w /etc/squid3/squid.conf.origin
Now edit /etc/squid3/squid.conf file, delete all options
in /etc/squid3/squid.conf then replace with squid3 configuration below
sudo nano /etc/squid3/squid.conf
Squid3 configuration:
precise
Create swap directory,
squid3 -z
Restart squid3:
sudo /etc/init.d/squid3 restart
Your squid proxy server installation and configuration is complete . You have to set ip and port (which is by default 3128) in your firefox.