{"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":"
<\/div>

\"InstallSquid 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

sudo apt-get update && sudo apt-get -y upgrade<\/pre>\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

sudo apt-get install squid<\/pre>\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

sudo cp \/etc\/squid3\/squid.conf \/etc\/squid3\/squid.conf.orig<\/pre>\n

To edit the configuration file, you can use your favorite software for text editing. We will use nano.<\/p>\n

sudo nano \/etc\/squid3\/squid.conf<\/pre>\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

http_port 8888<\/pre>\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

http_access allow all<\/pre>\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

sudo service squid3 restart<\/pre>\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

sudo tail -f \/var\/log\/squid3\/access.log<\/pre>\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>\n

Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":24115,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1701,13,1698],"tags":[163,145,1083],"yoast_head":"\nInstall Squid proxy server on Ubuntu 14.04 - RoseHosting<\/title>\n<meta name=\"description\" content=\"Install Squid proxy server on Ubuntu 14.04 - RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Squid proxy server on Ubuntu 14.04 - RoseHosting\" \/>\n<meta property=\"og:description\" content=\"Install Squid proxy server on Ubuntu 14.04 - RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-24T20:08:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:43:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Install Squid proxy server on Ubuntu 14.04\",\"datePublished\":\"2016-01-24T20:08:33+00:00\",\"dateModified\":\"2022-06-03T08:43:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/\"},\"wordCount\":498,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png\",\"keywords\":[\"proxy\",\"squid\",\"squid ubuntu\"],\"articleSection\":[\"Networking and Domains\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/\",\"name\":\"Install Squid proxy server on Ubuntu 14.04 - RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png\",\"datePublished\":\"2016-01-24T20:08:33+00:00\",\"dateModified\":\"2022-06-03T08:43:52+00:00\",\"description\":\"Install Squid proxy server on Ubuntu 14.04 - RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png\",\"width\":150,\"height\":150,\"caption\":\"Install Squid proxy server on Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install Squid proxy server on Ubuntu 14.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Squid proxy server on Ubuntu 14.04 - RoseHosting","description":"Install Squid proxy server on Ubuntu 14.04 - RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/","og_locale":"en_US","og_type":"article","og_title":"Install Squid proxy server on Ubuntu 14.04 - RoseHosting","og_description":"Install Squid proxy server on Ubuntu 14.04 - RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-01-24T20:08:33+00:00","article_modified_time":"2022-06-03T08:43:52+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Install Squid proxy server on Ubuntu 14.04","datePublished":"2016-01-24T20:08:33+00:00","dateModified":"2022-06-03T08:43:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/"},"wordCount":498,"commentCount":6,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png","keywords":["proxy","squid","squid ubuntu"],"articleSection":["Networking and Domains","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/","url":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/","name":"Install Squid proxy server on Ubuntu 14.04 - RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png","datePublished":"2016-01-24T20:08:33+00:00","dateModified":"2022-06-03T08:43:52+00:00","description":"Install Squid proxy server on Ubuntu 14.04 - RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/01\/Install-Squid-proxy-server-on-Ubuntu.png","width":150,"height":150,"caption":"Install Squid proxy server on Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-squid-proxy-server-on-ubuntu-14-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install Squid proxy server on Ubuntu 14.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"]},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/18516"}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=18516"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/18516\/revisions"}],"predecessor-version":[{"id":42020,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/18516\/revisions\/42020"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/24115"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=18516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=18516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=18516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}