{"id":12431,"date":"2024-09-16T11:19:08","date_gmt":"2024-09-16T11:19:08","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=12431"},"modified":"2024-09-25T14:10:50","modified_gmt":"2024-09-25T14:10:50","slug":"how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/","title":{"rendered":"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt"},"content":{"rendered":"\n<p><a id=\"post-12431-_heading=h.1fob9te\"><\/a><a href=\"https:\/\/www.squid-cache.org\/\">Squid<\/a> is a popular open-source proxy server. It mainly filters web traffic and blocks access to specific sites or content on your system. It is used for handling web traffic both HTTP and HTTPS protocols. For corporate and educational setups, the Squid proxy server can be the best choice for enhancing your system&#8217;s security by controlling the traffic.<br><a id=\"post-12431-_heading=h.3znysh7\"><\/a><\/p>\n\n\n\n<p><a id=\"post-12431-_heading=h.2et92p0\"><\/a> This post provides a real-time example of a complete configuration of the Squid proxy server on the <a href=\"https:\/\/ubuntu.com\/blog\/tag\/ubuntu-24-04-lts\">Ubuntu 24.04 <\/a>operating system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.tyjcwt\"><\/a>How to Install and Configure Squid Proxy Server on Ubuntu 24.04?<\/h2>\n\n\n\n<p>This guided post will explain the following: <\/p>\n\n\n\n<p><a href=\"#How-to-Install-Squid-on-Ubuntu-24.04\">How to Install Squid Proxy Server on Ubuntu 24.04?<\/a><\/p>\n\n\n\n<p><a href=\"#How-to-Configure-Squid-on-Ubuntu-24.04\">How to Configure Squid Proxy Server on Ubuntu 24.04?<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#Create-a-Block-Site-File\">Create a Block Site File<\/a><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#Update-Squid-Configuration-File\">Update Squid Configuration File<\/a><\/li>\n<\/ul>\n\n\n\n<p><a href=\"#How-to-Setup-Squid-on-a-Web-Browser\">How to Setup Squid Proxy Server on a Web Browser?<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Install-Squid-on-Ubuntu-24.04\"><a id=\"post-12431-_heading=h.3dy6vkm\"><\/a><strong>How to Install Squid Proxy Server on Ubuntu 24.04?<\/strong><\/h2>\n\n\n\n<p>\n  These commands can be performed to install Squid on Ubuntu machine.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.1t3h5sf\"><\/a>Step 1: Update Your Machine<\/h3>\n\n\n\n<p>\n  Updating your machine is an important step. This will search for missing package files, and if needed, it will update them using the command:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  sudo apt update &amp;&amp; sudo apt upgrade -y<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"883\" height=\"370\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-1.png\" alt=\"sudo apt update &amp;&amp; sudo apt upgrade -y\n\" class=\"wp-image-12432\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-1.png 883w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-1-300x126.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-1-768x322.png 768w\" sizes=\"(max-width: 883px) 100vw, 883px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  As you can see, there are no missing package files, so you can proceed to install new packages on your system.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.4d34og8\"><\/a>Step 2: Install Squid via \u201capt\u201d<\/h3>\n\n\n\n<p>\n  The Squid package is available in the APT repository, so you can install Squid from the terminal using this command:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  sudo apt install squid -y<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"891\" height=\"484\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-2.png\" alt=\"sudo apt install squid -y\n\" class=\"wp-image-12433\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-2.png 891w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-2-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-2-768x417.png 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"892\" height=\"484\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-3.png\" alt=\"sudo apt install squid -y\n\" class=\"wp-image-12434\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-3.png 892w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-3-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-3-768x417.png 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  During installation, a complete list of Squid files will be printed on your screen, providing you with detailed information about the package.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.2s8eyo1\"><\/a>Step 3: Verify Squid Status<\/h3>\n\n\n\n<p>\n  After installation of the Squid, verify its status through the given-below command:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  sudo systemctl status squid <br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"979\" height=\"533\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-4.png\" alt=\"  sudo systemctl status squid \n\" class=\"wp-image-12435\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-4.png 979w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-4-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-4-768x418.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  If it is <strong>active<\/strong>, it means that the Squid proxy server has been installed correctly on your Ubuntu 24.04.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Configure-Squid-on-Ubuntu-24.04\"><a id=\"post-12431-_heading=h.17dp8vu\"><\/a><strong>How to Configure Squid Proxy Server on Ubuntu 24.04?<\/strong><\/h2>\n\n\n\n<p>\n  Configure the Squid proxy server on your Ubuntu 24.04 system by performing the provided step-wise commands.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.3rdcrjn\"><\/a>Step 1: Create Backup of Squid Configuration <\/h3>\n\n\n\n<p>\n  Before making any necessary modifications to the Squid configuration file, create a backup:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  sudo cp \/etc\/squid\/squid.conf \/etc\/squid\/squid.conf.backup<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"120\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-5.png\" alt=\"  sudo cp \/etc\/squid\/squid.conf \/etc\/squid\/squid.conf.backup\n\" class=\"wp-image-12436\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-5.png 929w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-5-300x39.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-5-768x99.png 768w\" sizes=\"(max-width: 929px) 100vw, 929px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  You can confirm the configuration files, both the original and backup file, using this code:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  ls \/etc\/squid\/<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"72\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-6.png\" alt=\"  ls \/etc\/squid\/\n\" class=\"wp-image-12437\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-6.png 872w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-6-300x25.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-6-768x63.png 768w\" sizes=\"(max-width: 872px) 100vw, 872px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  It will show both files, \u201csquid.conf\u201d and \u201csquid.conf.backup\u201d, in the <strong>\/etc\/squid\/<\/strong> directory.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Create-a-Block-Site-File\"><a id=\"post-12431-_heading=h.26in1rg\"><\/a>Create a Block Site File<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.lnxbz9\"><\/a>Step 1: Create File for Block Sites<\/h3>\n\n\n\n<p>\n  For blocking specific sites, create a separate file, such as \u201cblocked_sites\u201d:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  sudo nano \/etc\/squid\/blocked_sites<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"53\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-7.png\" alt=\"  sudo nano \/etc\/squid\/blocked_sites\n\" class=\"wp-image-12438\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-7.png 771w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-7-300x21.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-7-768x53.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-7-752x53.png 752w\" sizes=\"(max-width: 771px) 100vw, 771px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Add the sites you want to block using the Squid proxy server, for instance:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  www.youtube.com<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"535\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-8.png\" alt=\"  www.youtube.com\n\" class=\"wp-image-12439\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-8.png 891w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-8-300x180.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-8-768x461.png 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  You can add more sites in this \u201cblocked_sites\u201d file. \n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Update-Squid-Configuration-File\"><a id=\"post-12431-_heading=h.35nkun2\"><\/a>Update Squid Configuration File<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.1ksv4uv\"><\/a>Step 1: Open \u201csquid.conf\u201d file <\/h3>\n\n\n\n<p>\n  You can now make necessary changes to the \u201csquid.conf\u201d file as per your needs. First, open the file with the command:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  sudo nano \/etc\/squid\/squid.conf<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"49\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-9.png\" alt=\"  sudo nano \/etc\/squid\/squid.conf\n\" class=\"wp-image-12440\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-9.png 901w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-9-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-9-768x42.png 768w\" sizes=\"(max-width: 901px) 100vw, 901px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  Locate the Squid\u2019s default port number (i.e. 3128): \n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"533\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-10.png\" alt=\"Open squid.conf file\" class=\"wp-image-12441\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-10.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-10-300x173.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-10-768x443.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  You can replace the port number with yours. \n<\/p>\n\n\n\n<p>\n  Next, go the line containing \u201cINSERT YOUR OWN RULE(S)..\u201d\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  acl blocked_sites dstdomain \"\/etc\/squid\/blocked_sites\"<br> <br>  http_access deny blocked_sites<br><br>  acl localnet src 192.168.122.182<br>  <br>  http_access allow localnet<\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"532\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-11.png\" alt=\"Open squid.conf file\" class=\"wp-image-12442\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-11.png 952w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-11-300x168.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-11-768x429.png 768w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  The first two lines will block the sites added to blocked_sites, while the other lines will allow access to the rest of the sites for the specified IP like \u201c192.168.122.182\u201d.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.44sinio\"><\/a>Step 2: Restart Squid <\/h3>\n\n\n\n<p>\n  After making changes to the Squid configuration file, run the command to restart the Squid service and to apply the new settings immediately:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  sudo systemctl restart squid<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"860\" height=\"51\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-12.png\" alt=\"  sudo systemctl restart squid\n\" class=\"wp-image-12443\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-12.png 860w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-12-300x18.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-12-768x46.png 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\n  So far, the installation and configuration through the command line have been completed successfully.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Setup-Squid-on-a-Web-Browser\"><a id=\"post-12431-_heading=h.2jxsxqh\"><\/a><strong>How to Setup Squid Proxy Server on a Web Browser?<\/strong><\/h2>\n\n\n\n<p>\n  After completing the installation of the Squid proxy server via the terminal, set it up in a web browser.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.z337ya\"><\/a>Step 1: Open Application Menu<\/h3>\n\n\n\n<p>\n  For setting up the Squid proxy server on web browser;\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your web browsers, such as Firefox.  <\/li>\n\n\n\n<li>Open the Application Menu.<br>  <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"557\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-13.png\" alt=\"Open application menu in Firefox\" class=\"wp-image-12444\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-13.png 850w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-13-300x197.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-13-768x503.png 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.3j2qqm3\"><\/a>Step 2: Open Browser \u201cSettings\u201d<\/h3>\n\n\n\n<p>\n  In the Firefox Application Menu, scroll-down to the Settings: \n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"594\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-14.png\" alt=\"Open browser settings\" class=\"wp-image-12445\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-14.png 982w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-14-300x181.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-14-768x465.png 768w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.1y810tw\"><\/a>Step 3: Navigate Network Settings<\/h3>\n\n\n\n<p>\n  Select the General category and navigate to the Network Settings:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"515\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-15.png\" alt=\"Open network settings\" class=\"wp-image-12446\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-15.png 849w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-15-300x182.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-15-768x466.png 768w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.4i7ojhp\"><\/a>Step 4: Configure Proxy Manually <\/h3>\n\n\n\n<p>\n  Select the \u201cManual proxy configuration\u201d and add the IP address and the port number in the required fields:\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"518\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-16.png\" alt=\"Configure manual proxy\" class=\"wp-image-12447\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-16.png 846w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-16-300x184.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-16-768x470.png 768w\" sizes=\"(max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<p>\n  If you don&#8217;t know about your system IP address, use this command from terminal:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  hostname -I<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"69\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-17.png\" alt=\"  hostname -I\n\" class=\"wp-image-12448\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-17.png 874w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-17-300x24.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-17-768x61.png 768w\" sizes=\"(max-width: 874px) 100vw, 874px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.2xcytpi\"><\/a>Step 5: Test Squid Proxy Server <\/h3>\n\n\n\n<p>\n  Once the Squid configuration process is completed, test your Squid proxy server by visiting the blocked site:\n<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><p>  www.youtube.com<br><\/p><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"853\" height=\"512\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-18.png\" alt=\"  www.youtube.com\n\" class=\"wp-image-12449\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-18.png 853w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-18-300x180.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/word-image-12431-18-768x461.png 768w\" sizes=\"(max-width: 853px) 100vw, 853px\" \/><\/figure>\n\n\n\n<p><br>If YouTube is not working or shows an error like &#8220;No internet connection&#8221;, it means the Squid proxy server is configured and is working correctly on your Ubuntu 24.04 machine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-12431-_heading=h.49x2ik5\"><\/a><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>\n  On Ubuntu 24.04, the Squid proxy server can easily be installed and configured with small simple steps. After installing the Squid, modify the \u201csquid.conf\u201d file according to your needs. Finally, setup the Squid proxy on your web browser like Firefox.  \n<\/p>\n\n\n\t\t\t\t\t\t\t<h3 style=\"margin-bottom:20px;display:block;width:100%;margin-top:10px\">Frequently Asked Questions <\/h3>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t<style>\r\n#wpsm_accordion_12452 .wpsm_panel-heading{\r\n\tpadding:0px !important;\r\n}\r\n#wpsm_accordion_12452 .wpsm_panel-title {\r\n\tmargin:0px !important; \r\n\ttext-transform:none !important;\r\n\tline-height: 1 !important;\r\n}\r\n#wpsm_accordion_12452 .wpsm_panel-title a{\r\n\ttext-decoration:none;\r\n\toverflow:hidden;\r\n\tdisplay:block;\r\n\tpadding:0px;\r\n\tfont-size: 18px !important;\r\n\tfont-family: Open Sans !important;\r\n\tcolor:#000000 !important;\r\n\tborder-bottom:0px !important;\r\n}\r\n\r\n#wpsm_accordion_12452 .wpsm_panel-title a:focus {\r\noutline: 0px !important;\r\n}\r\n\r\n#wpsm_accordion_12452 .wpsm_panel-title a:hover, #wpsm_accordion_12452 .wpsm_panel-title a:focus {\r\n\tcolor:#000000 !important;\r\n}\r\n#wpsm_accordion_12452 .acc-a{\r\n\tcolor: #000000 !important;\r\n\tbackground-color:#e8e8e8 !important;\r\n\tborder-color: #ddd;\r\n}\r\n#wpsm_accordion_12452 .wpsm_panel-default > .wpsm_panel-heading{\r\n\tcolor: #000000 !important;\r\n\tbackground-color: #e8e8e8 !important;\r\n\tborder-color: #e8e8e8 !important;\r\n\tborder-top-left-radius: 0px;\r\n\tborder-top-right-radius: 0px;\r\n}\r\n#wpsm_accordion_12452 .wpsm_panel-default {\r\n\t\tborder:1px solid transparent !important;\r\n\t}\r\n#wpsm_accordion_12452 {\r\n\tmargin-bottom: 20px;\r\n\toverflow: hidden;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n}\r\n#wpsm_accordion_12452 .ac_title_class{\r\n\tdisplay: block;\r\n\tpadding-top: 12px;\r\n\tpadding-bottom: 12px;\r\n\tpadding-left: 15px;\r\n\tpadding-right: 15px;\r\n}\r\n#wpsm_accordion_12452  .wpsm_panel {\r\n\toverflow:hidden;\r\n\t-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\tbox-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\t\tborder-radius: 4px;\r\n\t}\r\n#wpsm_accordion_12452  .wpsm_panel + .wpsm_panel {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n#wpsm_accordion_12452  .wpsm_panel-body{\r\n\tbackground-color:#ffffff !important;\r\n\tcolor:#000000 !important;\r\n\tborder-top-color: #e8e8e8 !important;\r\n\tfont-size:16px !important;\r\n\tfont-family: Open Sans !important;\r\n\toverflow: hidden;\r\n\t\tborder: 2px solid #e8e8e8 !important;\r\n\t}\r\n\r\n#wpsm_accordion_12452 .ac_open_cl_icon{\r\n\tbackground-color:#e8e8e8 !important;\r\n\tcolor: #000000 !important;\r\n\tfloat:right !important;\r\n\tpadding-top: 12px !important;\r\n\tpadding-bottom: 12px !important;\r\n\tline-height: 1.0 !important;\r\n\tpadding-left: 15px !important;\r\n\tpadding-right: 15px !important;\r\n\tdisplay: inline-block !important;\r\n}\r\n\r\n\t\t\t\r\n\t\t\t<\/style>\t\r\n\t\t\t<\/style>\r\n\t\t\t<div class=\"wpsm_panel-group\" id=\"wpsm_accordion_12452\" >\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_12452 \" href=\"javascript:void(0)\" data-target=\"#ac_12452_collapse1\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat is Squid proxy server?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_12452_collapse1\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tSquid is an open source caching and proxy server for HTTP and HTTPS, and FTP protocols.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_12452 \" href=\"javascript:void(0)\" data-target=\"#ac_12452_collapse2\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tCan I Install Squid proxy server on Ubuntu 24.04?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_12452_collapse2\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tYes, you use the terminal and run the command \u201csudo apt install squid\u201d to install the entire package files on your Ubuntu 24.04. \t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_12452 \" href=\"javascript:void(0)\" data-target=\"#ac_12452_collapse3\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow can I block specific sites using Squid on Ubuntu 24.04?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_12452_collapse3\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tTo block the sites, you have to make some necessary changes in the \u201csquid.conf\u201d file. First, make a blocked_sites file and then, add that file in the \u201csudo nano \/etc\/squid\/squid.conf\u201d configuration file.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_12452 \" href=\"javascript:void(0)\" data-target=\"#ac_12452_collapse4\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow to add more sites to the block list in Squid file?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_12452_collapse4\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tTo add more site to block them through the Squid proxy server; \r\n\r\nOpen the file like \u201cblocked_sites\u201d via \u201csudo nano \/etc\/squid\/blocked_sites\u201d.  \r\n\r\nAdd the list of the sites you want to block.  \r\n\r\nSave the file.   \r\n\r\nApply the changes with \u201csudo systemctl restart squid\u201d.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_12452 \" href=\"javascript:void(0)\" data-target=\"#ac_12452_collapse5\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow to setup Squid proxy on my web browser?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_12452_collapse5\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tFor Firefox users:\r\n\r\nOpen Firefox.\r\n\r\nGo to Application Menu.\r\n\r\nOpen browser Settings.\r\n\r\nLocate Network Settings.  \r\n\r\nSelect Manual option and edit according to your squid configuration. \r\n\r\n Press Ok to save the settings.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\r\n<script type=\"text\/javascript\">\r\n\t\r\n\t\tfunction do_resize(){\r\n\r\n\t\t\tvar width=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).width();\r\n\t\t\tvar height=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).height();\r\n\r\n\t\t\tvar toggleSize = true;\r\n\t\t\tjQuery('iframe').animate({\r\n\t\t\t    width: toggleSize ? width : 640,\r\n\t\t\t    height: toggleSize ? height : 360\r\n\t\t\t  }, 250);\r\n\r\n\t\t\t  toggleSize = !toggleSize;\r\n\t\t}\r\n\t\t\r\n<\/script>\t\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Squid is a popular open-source proxy server. It mainly filters web traffic and blocks access to specific sites or content on your system. It is used for handling web traffic both HTTP and HTTPS protocols. For corporate and educational setups, the Squid proxy server can be the best choice for enhancing your system&#8217;s security by [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":12455,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[381,379,380,378,317],"class_list":["post-12431","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-caching","tag-http","tag-https","tag-squid-proxy-server","tag-ubuntu-24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This post teaches you how to install and configure Squid proxy server on Ubuntu 24.04 LTS using APT package manager.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This post teaches you how to install and configure Squid proxy server on Ubuntu 24.04 LTS using APT package manager.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-16T11:19:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-25T14:10:50+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt\",\"datePublished\":\"2024-09-16T11:19:08+00:00\",\"dateModified\":\"2024-09-25T14:10:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/\"},\"wordCount\":753,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg\",\"keywords\":[\"Caching\",\"HTTP\",\"HTTPS\",\"Squid Proxy Server\",\"Ubuntu 24.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/\",\"name\":\"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg\",\"datePublished\":\"2024-09-16T11:19:08+00:00\",\"dateModified\":\"2024-09-25T14:10:50+00:00\",\"description\":\"This post teaches you how to install and configure Squid proxy server on Ubuntu 24.04 LTS using APT package manager.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg\",\"width\":1020,\"height\":600,\"caption\":\"Install and configure Squid proxy server on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt - Greenwebpage Community","description":"This post teaches you how to install and configure Squid proxy server on Ubuntu 24.04 LTS using APT package manager.","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:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt - Greenwebpage Community","og_description":"This post teaches you how to install and configure Squid proxy server on Ubuntu 24.04 LTS using APT package manager.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2024-09-16T11:19:08+00:00","article_modified_time":"2024-09-25T14:10:50+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt","datePublished":"2024-09-16T11:19:08+00:00","dateModified":"2024-09-25T14:10:50+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/"},"wordCount":753,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg","keywords":["Caching","HTTP","HTTPS","Squid Proxy Server","Ubuntu 24.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/","name":"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg","datePublished":"2024-09-16T11:19:08+00:00","dateModified":"2024-09-25T14:10:50+00:00","description":"This post teaches you how to install and configure Squid proxy server on Ubuntu 24.04 LTS using APT package manager.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2024\/09\/Install-and-configure-Squid-proxy-server-on-Ubuntu-24.04.jpeg","width":1020,"height":600,"caption":"Install and configure Squid proxy server on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-and-configure-squid-proxy-server-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install and Configure Squid Proxy Server on Ubuntu 24.04: Via apt"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/12431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=12431"}],"version-history":[{"count":5,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/12431\/revisions"}],"predecessor-version":[{"id":12478,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/12431\/revisions\/12478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/12455"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=12431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=12431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=12431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}