{"id":18516,"date":"2016-01-24T14:08:33","date_gmt":"2016-01-24T20:08:33","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18516"},"modified":"2022-06-03T03:43:52","modified_gmt":"2022-06-03T08:43:52","slug":"install-squid-proxy-server-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/","title":{"rendered":"Install Squid proxy server on Ubuntu 14.04"},"content":{"rendered":"
Squid is a web proxy and cache server which primarily provides proxy and cache services for the HTTP protocol. In this tutorial we are going to show you how to install and configure Squid proxy server on a Linux VPS<\/a><\/strong>.<\/p>\n <\/p>\n Before we start with installing and configuring Squid, let’s update all the system software to the latest version available:<\/p>\n The update should take few moments. Once it is done, you are ready to proceed with the other steps of this tutorial. Since Squid is available in the Ubuntu repositories, the installation of Squid proxy server on an Ubuntu VPS<\/a> is pretty straightforward. To install it on your server you need to run the following command:<\/p>\n The main configuration file for Squid is \/etc\/squid3\/squid.conf. Before making any changes to the original Squid configuration, please make a copy of the original configuration file. You can do that using the following command:<\/p>\n To edit the configuration file, you can use your favorite software for text editing. We will use nano.<\/p>\n The first thing you may like to change is the Squid listening port. By default, Squid is listening on port 3128. To change the default listening port you need to edit the http_port directive. For example, if you like to set 8888 as Squid listening port, you should edit the directive to look like the directive below:<\/p>\n By default, the HTTP proxy server will not allow access to anybody. To allow access to the HTTP proxy server from all IP addresses, you need to edit the http_access directive and make it look like the following:<\/p>\n Another directive you may like to change is the visible_hostname. This directive allows you to set up a specific hostname for your Squid HTTP proxy server. Feel free to use any hostname you like.<\/p>\n Once you make the necessary changes to the Squid configuration file, you can save the file and restart the Squid service so the changes can take effect. To restart Squid you can use the following command:<\/p>\n To test if the configuration of Squid HTTP proxy server is working or not, you need to manually change your web browser’s proxy settings and enter your server’s IP address and port number.<\/p>\n If you experience any problems, you can check the access.log for more information.<\/p>\n More information and configuration instructions about Squid HTTP proxy server you can find at the official web site. It is available at http:\/\/www.squid-cache.org\/<\/a>.<\/p>\n Of course you don\u2019t have to Install Squid proxy server on Ubuntu 14.04 if you use one of our Linux VPS hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Squid proxy server on Ubuntu<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS<\/span><\/strong>. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Squid is a web proxy and cache server which primarily provides proxy and cache services for the HTTP protocol. In … <\/p>\nsudo apt-get update && sudo apt-get -y upgrade<\/pre>\n
sudo apt-get install squid<\/pre>\n
sudo cp \/etc\/squid3\/squid.conf \/etc\/squid3\/squid.conf.orig<\/pre>\n
sudo nano \/etc\/squid3\/squid.conf<\/pre>\n
http_port 8888<\/pre>\n
http_access allow all<\/pre>\n
sudo service squid3 restart<\/pre>\n
sudo tail -f \/var\/log\/squid3\/access.log<\/pre>\n