Squid is the web proxy server which provide proxy and cache service for hyper text transfer protocol,File transfer protocol and many network protocol.squid can implement for cache and proxy socket layer and also implement Domain name server lookup.Squid is used for proxy which support many protol such as Internet cache protocol,Hyper text cache protocol,Cache array routing protocol and web cache coordination protocol.
The squid proxy server provide excellent solution to proxy and caching server needs,it has access control mechanism,monitoring critical parameter and all.when you use squid proxy server keep in mind squid server has configured and should be large amount of physical memory in cache memory to increase the performance.
Now we learn how to install the squid proxy server on ubuntu.
There is some steps to install squid proxy server which is as follows:
Step 1: First of all login into the terminal with username and password.
Step 2: Now enter the following command to install the squid server.
sudo apt-get install squid3
Step 3: Now we have to edit the configuration file of squid which is /etc/squid3/squid.conf. we will edit the “squid.conf” and will modify it to change the behaviour of squid server.
First copy the original configuration file to re use in future.
sudo cp /etc/squid3/squid.conf /etc/squid3/squid.conf.original
sudo chmod a-w /etc/squid3/squid.conf.original
Step 4: If you want to change the default port then change the http_port
http_port 8888
Step 5: Change the visible hastname to give the squid server specific hostname.
visible_hostname jay
Step 6: you can use access control to to be only available to users.
So please add the following line into the /etc/squid3/squid.conf file:
acl fortytwo_network src 192.168.x.x/24
And add the following to top of the http_access section of conf file.
http_access allow fortytwo_network
Step 7: you can set the internet erviec available only during business hours.
Add the following line to conf file
http_access allow biz_network biz_hours
Step 8: After making changes save the file and restart the service.
sudo service squid3 restart