{"id":3247,"date":"2023-04-15T10:03:54","date_gmt":"2023-04-15T07:03:54","guid":{"rendered":"https:\/\/www.virtono.com\/community\/?p=3247"},"modified":"2023-04-12T10:52:58","modified_gmt":"2023-04-12T07:52:58","slug":"install-and-configure-proxy-server-on-ubuntu-using-squid-proxy","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/","title":{"rendered":"Install and Configure Proxy Server on Ubuntu Using Squid Proxy"},"content":{"rendered":"\n<p>In this tutorial, we will walk you through the process of installing and configuring a proxy server on Ubuntu using Squid Proxy. Are you looking for a way to improve your internet speed and security? Installing a proxy server on your Ubuntu machine using Squid Proxy can help you achieve both.<\/p>\n\n\n\n<p>What is a Proxy Server? A proxy server is an intermediary server that sits between your device and the internet. It acts as a gateway between your device and the internet, filtering requests and responses to improve performance, security, and privacy. When you request a web page or resource, the proxy server intercepts the request and retrieves the data on your behalf. It then sends the data back to your device, without revealing your IP address to the website you are accessing.<\/p>\n\n\n\n<p>Why use a Proxy Server? There are many reasons why you might want to use a proxy server. Here are some of the most common reasons:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Improved speed: A proxy server can cache frequently accessed web pages and resources, reducing the time it takes to access them in the future.<\/li>\n\n\n\n<li>Increased security: A proxy server can act as a barrier between your device and the internet, protecting you from malicious attacks and filtering out unwanted content.<\/li>\n\n\n\n<li>Enhanced privacy: A proxy server can hide your IP address, making it difficult for websites to track your online activity.<\/li>\n<\/ul>\n\n\n\n<p>Now, let&#8217;s get started with installing and configuring a proxy server on Ubuntu using Squid Proxy.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_1_Install_Squid_Proxy\" title=\"Step 1: Install Squid Proxy\">Step 1: Install Squid Proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_2_Configure_Squid\" title=\"Step 2: Configure Squid\">Step 2: Configure Squid<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_3_Start_Squid\" title=\"Step 3: Start Squid\">Step 3: Start Squid<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_4_Test_Squid_Proxy\" title=\"Step 4: Test Squid Proxy\">Step 4: Test Squid Proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Configure_Proxy_Authentication\" title=\"Configure Proxy Authentication\">Configure Proxy Authentication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_1_Create_a_Password_File\" title=\"Step 1: Create a Password File\">Step 1: Create a Password File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_2_Edit_the_Squid_Configuration_File\" title=\"Step 2: Edit the Squid Configuration File\">Step 2: Edit the Squid Configuration File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_3_Restart_Squid_Proxy\" title=\"Step 3: Restart Squid Proxy\">Step 3: Restart Squid Proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_4_Test_Authentication\" title=\"Step 4: Test Authentication\">Step 4: Test Authentication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#How_to_Block_Websites\" title=\"How to Block Websites\">How to Block Websites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_1_Create_an_ACL_for_the_Blocked_Websites\" title=\"Step 1: Create an ACL for the Blocked Websites\">Step 1: Create an ACL for the Blocked Websites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_3_Create_the_Blocked_Sites_File\" title=\"Step 3: Create the Blocked Sites File\">Step 3: Create the Blocked Sites File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_4_Restart_Squid_Proxy\" title=\"Step 4: Restart Squid Proxy\">Step 4: Restart Squid Proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_5_Test_the_Blocked_Websites\" title=\"Step 5: Test the Blocked Websites\">Step 5: Test the Blocked Websites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#How_to_Uninstall_Squid_Proxy_Server\" title=\"How to Uninstall Squid Proxy Server\">How to Uninstall Squid Proxy Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_1_Stop_the_Squid_Proxy_Service\" title=\"Step 1: Stop the Squid Proxy Service\">Step 1: Stop the Squid Proxy Service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_2_Remove_the_Squid_Proxy_Package\" title=\"Step 2: Remove the Squid Proxy Package\">Step 2: Remove the Squid Proxy Package<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_3_Remove_the_Squid_Proxy_Configuration_Files\" title=\"Step 3: Remove the Squid Proxy Configuration Files\">Step 3: Remove the Squid Proxy Configuration Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_4_Remove_the_Squid_Proxy_Cache\" title=\"Step 4: Remove the Squid Proxy Cache\">Step 4: Remove the Squid Proxy Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/#Step_5_Restart_your_Ubuntu_Machine\" title=\"Step 5: Restart your Ubuntu Machine\">Step 5: Restart your Ubuntu Machine<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_1_Install_Squid_Proxy\"><\/span>Step 1: Install Squid Proxy <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The first step is to install Squid Proxy on your Ubuntu machine. Open up a terminal window and type the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo apt-get install squid<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"245\" data-attachment-id=\"3248\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/attachment\/screenshot-2023-04-12-101511\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101511.png?fit=845%2C276&amp;ssl=1\" data-orig-size=\"845,276\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-04-12-101511\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101511.png?fit=750%2C245&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101511.png?resize=750%2C245&#038;ssl=1\" alt=\"Install Squid Proxy\" class=\"wp-image-3248\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101511.png?w=845&amp;ssl=1 845w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101511.png?resize=300%2C98&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101511.png?resize=768%2C251&amp;ssl=1 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p>This will download and install Squid Proxy on your machine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_2_Configure_Squid\"><\/span>Step 2: Configure Squid<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, we need to configure Squid Proxy to work with your network. Open up the Squid configuration file by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo nano \/etc\/squid\/squid.conf<\/code><\/pre>\n\n\n\n<p>This will open up the configuration file in the Nano text editor.<\/p>\n\n\n\n<p>Find the line that reads &#8220;http_port 3128&#8221; and uncomment it by removing the &#8220;#&#8221; symbol at the beginning of the line. This line specifies the port number that Squid Proxy will listen on.<\/p>\n\n\n\n<p>Next, find the line that reads &#8220;http_access deny all&#8221; and change it to &#8220;http_access allow all&#8221;. This line specifies the access control list for Squid Proxy, allowing all clients to connect to the proxy server.<\/p>\n\n\n\n<p>Save the changes to the configuration file by pressing &#8220;<strong>Ctrl+X<\/strong>&#8220;, then &#8220;Y&#8221;, and finally &#8220;Enter&#8221;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"362\" data-attachment-id=\"3249\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/attachment\/screenshot-2023-04-12-101733\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101733.png?fit=678%2C362&amp;ssl=1\" data-orig-size=\"678,362\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-04-12-101733\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101733.png?fit=678%2C362&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101733.png?resize=678%2C362&#038;ssl=1\" alt=\"Configure Squid Proxy\" class=\"wp-image-3249\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101733.png?w=678&amp;ssl=1 678w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-101733.png?resize=300%2C160&amp;ssl=1 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_3_Start_Squid\"><\/span>Step 3: Start Squid<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Now that Squid Proxy is installed and configured, we can start the service by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo systemctl start squid<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo systemctl enable squid<\/code><\/pre>\n\n\n\n<p>This will start the Squid Proxy service.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_4_Test_Squid_Proxy\"><\/span>Step 4: Test Squid Proxy<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To test if Squid Proxy is working correctly, open up a web browser and go to the network settings. Find the proxy settings and enter the IP address of your Ubuntu machine and the port number that Squid Proxy is listening on (in our case, it&#8217;s 3128). Save the changes and try accessing a website. If everything is working correctly, the website should load without any issues.<\/p>\n\n\n\n<p>You can also check if the port is open by using nmap:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>root@community-tutorials:~# nmap localhost -p3128\nStarting Nmap 7.80 ( https:\/\/nmap.org ) at 2023-04-12 09:22 CEST\nNmap scan report for localhost (127.0.0.1)\nHost is up (0.0000020s latency).\nOther addresses for localhost (not scanned): ::1\nNot shown: 65533 closed ports\nPORT STATE SERVICE\n3128\/tcp open squid-http\n\nNmap done: 1 IP address (1 host up) scanned in 0.60 seconds\nroot@community-tutorials:~#<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Configure_Proxy_Authentication\"><\/span>Configure Proxy Authentication<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you want to add authentication to your proxy server, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_1_Create_a_Password_File\"><\/span>Step 1: Create a Password File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>First, you need to create a password file that will store the usernames and passwords of the users who are allowed to access the proxy server. You can create the password file by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo htpasswd -c \/etc\/squid\/passwd username<\/code><\/pre>\n\n\n\n<p>Replace &#8220;username&#8221; with the username of the user you want to add. You will be prompted to enter and confirm a password for the user.<\/p>\n\n\n\n<p>If you are receiving the error message &#8220;sudo: htpasswd: command not found&#8221;, it means that the &#8220;htpasswd&#8221; command is not installed on your system.<\/p>\n\n\n\n<p>&#8220;htpasswd&#8221; is a command-line tool used to manage user authentication files for basic authentication with Apache web server or Squid Proxy server.<\/p>\n\n\n\n<p>To resolve this issue, you can try installing the &#8220;apache2-utils&#8221; package, which contains the &#8220;htpasswd&#8221; command, by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo apt-get install apache2-utils<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>root@community-tutorials:~# sudo htpasswd -c \/etc\/squid\/passwd virtono\r\nNew password:\r\nRe-type new password:\r\nAdding password for user virtono\r\nroot@community-tutorials:~#\r<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/whois.virtono.com\/generate-password.php\" target=\"_blank\" rel=\"noopener\">You can use our password generator tool, click here.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_2_Edit_the_Squid_Configuration_File\"><\/span>Step 2: Edit the Squid Configuration File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, you need to edit the Squid configuration file to enable authentication. Open the configuration file by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo nano \/etc\/squid\/squid.conf<\/code><\/pre>\n\n\n\n<p>Find the line that reads &#8220;http_access allow all&#8221; and change it to &#8220;http_access allow USERNAME&#8221;. Replace &#8220;USERNAME&#8221; with the username you added to the password file.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"158\" data-attachment-id=\"3250\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/attachment\/screenshot-2023-04-12-103043\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103043.png?fit=644%2C158&amp;ssl=1\" data-orig-size=\"644,158\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-04-12-103043\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103043.png?fit=644%2C158&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103043.png?resize=644%2C158&#038;ssl=1\" alt=\"Edit the Squid Configuration File\" class=\"wp-image-3250\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103043.png?w=644&amp;ssl=1 644w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103043.png?resize=300%2C74&amp;ssl=1 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/figure>\n<\/div>\n\n\n<p>Find the line that reads &#8220;auth_param basic program \/usr\/lib\/squid\/basic_ncsa_auth \/etc\/squid\/passwd&#8221; and uncomment it by removing the &#8220;#&#8221; symbol at the beginning of the line. This line specifies the path to the password file.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"128\" data-attachment-id=\"3251\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/attachment\/screenshot-2023-04-12-103259\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103259.png?fit=517%2C128&amp;ssl=1\" data-orig-size=\"517,128\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-04-12-103259\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103259.png?fit=517%2C128&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103259.png?resize=517%2C128&#038;ssl=1\" alt=\"\" class=\"wp-image-3251\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103259.png?w=517&amp;ssl=1 517w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103259.png?resize=300%2C74&amp;ssl=1 300w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"130\" data-attachment-id=\"3252\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/attachment\/screenshot-2023-04-12-103335\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103335.png?fit=644%2C130&amp;ssl=1\" data-orig-size=\"644,130\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-04-12-103335\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103335.png?fit=644%2C130&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103335.png?resize=644%2C130&#038;ssl=1\" alt=\"\" class=\"wp-image-3252\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103335.png?w=644&amp;ssl=1 644w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Screenshot-2023-04-12-103335.png?resize=300%2C61&amp;ssl=1 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>Save the changes to the configuration file by pressing &#8220;Ctrl+X&#8221;, then &#8220;Y&#8221;, and finally &#8220;Enter&#8221;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_3_Restart_Squid_Proxy\"><\/span>Step 3: Restart Squid Proxy<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Now that you have edited the Squid configuration file, you need to restart the Squid Proxy service by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo systemctl restart squid<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_4_Test_Authentication\"><\/span>Step 4: Test Authentication<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><br>To test if authentication is working correctly, open up a web browser and go to the network settings. Find the proxy settings and enter the IP address of your Ubuntu machine, the port number that Squid Proxy is listening on (in our case, it&#8217;s 3128), and the username and password of the user you added to the password file. Save the changes and try accessing a website. If everything is working correctly, the website should load without any issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"How_to_Block_Websites\"><\/span>How to Block Websites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To block certain websites on your Ubuntu machine using Squid Proxy, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_1_Create_an_ACL_for_the_Blocked_Websites\"><\/span>Step 1: Create an ACL for the Blocked Websites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>Next, you need to create an Access Control List (ACL) for the websites you want to block. Add the following lines to the configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>acl blocked_sites dstdomain \"\/etc\/squid\/blocked_sites.txt\" <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>http_access deny blocked_sites<\/code><\/pre>\n\n\n\n<p>The first line creates an ACL called &#8220;blocked_sites&#8221; and specifies the path to a text file called &#8220;blocked_sites.txt&#8221; that contains a list of websites you want to block. The second line denies access to any website that matches the &#8220;blocked_sites&#8221; ACL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_3_Create_the_Blocked_Sites_File\"><\/span>Step 3: Create the Blocked Sites File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Create the &#8220;blocked_sites.txt&#8221; file in the \/etc\/squid\/ directory by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo nano \/etc\/squid\/blocked_sites.txt<\/code><\/pre>\n\n\n\n<p>Add the websites you want to block to the file, one website per line. For example, to block Facebook and YouTube, add the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>facebook.com<br>youtube.com<\/code><\/pre>\n\n\n\n<p>Save the changes to the file by pressing &#8220;Ctrl+X&#8221;, then &#8220;Y&#8221;, and finally &#8220;Enter&#8221;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_4_Restart_Squid_Proxy\"><\/span>Step 4: Restart Squid Proxy<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Restart the Squid Proxy service by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo systemctl restart squid<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_5_Test_the_Blocked_Websites\"><\/span>Step 5: Test the Blocked Websites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To test if the websites are blocked, try accessing one of the blocked sites from a web browser. If everything is working correctly, you should see an error message indicating that the website is blocked.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"How_to_Uninstall_Squid_Proxy_Server\"><\/span>How to Uninstall Squid Proxy Server<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you want to uninstall Squid Proxy Server from your Ubuntu machine, follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_1_Stop_the_Squid_Proxy_Service\"><\/span>Step 1: Stop the Squid Proxy Service<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Before uninstalling Squid Proxy Server, you need to stop the Squid Proxy service by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo systemctl stop squid<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_2_Remove_the_Squid_Proxy_Package\"><\/span>Step 2: Remove the Squid Proxy Package <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Remove the Squid Proxy package from your Ubuntu machine by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo apt-get remove squid<\/code><\/pre>\n\n\n\n<p>This command will remove the Squid Proxy package from your system, but it will not remove any configuration files or data associated with the package.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_3_Remove_the_Squid_Proxy_Configuration_Files\"><\/span>Step 3: Remove the Squid Proxy Configuration Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you want to remove the Squid Proxy configuration files, type the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo apt-get purge squid<\/code><\/pre>\n\n\n\n<p>This command will remove the Squid Proxy package and all associated configuration files and data from your system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_4_Remove_the_Squid_Proxy_Cache\"><\/span>Step 4: Remove the Squid Proxy Cache<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you want to remove the Squid Proxy cache, type the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo rm -rf \/var\/spool\/squid<\/code><\/pre>\n\n\n\n<p>This command will remove the Squid Proxy cache directory and all its contents.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-header-gradient-color has-text-color\"><span class=\"ez-toc-section\" id=\"Step_5_Restart_your_Ubuntu_Machine\"><\/span>Step 5: Restart your Ubuntu Machine<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Restart your Ubuntu machine by typing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo reboot<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will walk you through the process of installing and configuring a proxy server on Ubuntu using Squid Proxy. Are you looking for a way to improve your internet speed and security? Installing a proxy server on your Ubuntu machine using Squid Proxy can help you achieve<\/p>\n","protected":false},"author":8,"featured_media":3253,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[285,286,288,287],"class_list":["post-3247","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-how-to","tag-configure-proxy-server","tag-squid-proxy-on-ubuntu","tag-ubuntu-proxy-server","tag-ubuntu-squid-proxy"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Install-and-Configure-Proxy-Server-on-Ubuntu-Using-Squid-Proxy.png?fit=600%2C330&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-Qn","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1714,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-centos-7-8-server-squid-proxy\/","url_meta":{"origin":3247,"position":0},"title":"Install and configure Proxy Server on Centos 7\/8 Server: Squid Proxy","author":"Shreyash Sharma","date":"June 16, 2020","format":false,"excerpt":"If you would like to read what are proxy servers and how they can benefit you, please refer: Click If you would like to buy a VPS to make your own Proxy Server along with this tutorial check out: Click Squid Proxy Little introduction about the proxy of the article:\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/remote-denial-of-service-vulnerability-patched-in-squid-proxy-cache-server-523492-2.png?fit=1200%2C900&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/remote-denial-of-service-vulnerability-patched-in-squid-proxy-cache-server-523492-2.png?fit=1200%2C900&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/remote-denial-of-service-vulnerability-patched-in-squid-proxy-cache-server-523492-2.png?fit=1200%2C900&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/remote-denial-of-service-vulnerability-patched-in-squid-proxy-cache-server-523492-2.png?fit=1200%2C900&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/remote-denial-of-service-vulnerability-patched-in-squid-proxy-cache-server-523492-2.png?fit=1200%2C900&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2922,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-nginx-on-ubuntu-20-04\/","url_meta":{"origin":3247,"position":1},"title":"How To Install Nginx on Ubuntu 20.04","author":"George B.","date":"July 29, 2022","format":false,"excerpt":"What is Nginx? Nginx, abbreviated NGI\u0418X, is a web server that also functions as a reverse proxy, load balancer, mail proxy, and HTTP cache. Igor Sysoev created the software, which was made public in 2004. Nginx is free and open-source software distributed under the terms of the 2-clause BSD license.\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1708,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/the-proxy-server-what-why-and-how\/","url_meta":{"origin":3247,"position":2},"title":"The Proxy Server, What, Why and How","author":"Shreyash Sharma","date":"June 16, 2020","format":false,"excerpt":"In the current world where billion-dollar enterprises are doing their best to figure out everything about you. Talking about a simple proxy server that you can easily configure and keep them guessing seems justified. If you just want to jump to configuring a proxy server here is the How. Think\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/proxy-4620557_640.jpg?fit=640%2C472&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/proxy-4620557_640.jpg?fit=640%2C472&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/06\/proxy-4620557_640.jpg?fit=640%2C472&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3507,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-lemp-stack-linux-nginx-mysql-and-php-on-ubuntu-22-04\/","url_meta":{"origin":3247,"position":3},"title":"How to install LEMP stack (Linux, Nginx, MySQL, and PHP) on Ubuntu 22.04","author":"George B.","date":"June 20, 2023","format":false,"excerpt":"Introduction The LEMP stack is a popular software stack for web development and hosting. It includes four major components: Linux, Nginx, MySQL, and PHP. Each component serves a specific purpose in powering dynamic websites and web applications. Linux is the operating system that serves as the LEMP stack's foundation. In\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-install-LEMP-stack-Linux-Nginx-MySQL-PHP-on-Ubuntu-22-04.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-install-LEMP-stack-Linux-Nginx-MySQL-PHP-on-Ubuntu-22-04.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-install-LEMP-stack-Linux-Nginx-MySQL-PHP-on-Ubuntu-22-04.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3492,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-configure-mail-server-on-ubuntu\/","url_meta":{"origin":3247,"position":4},"title":"How to Install and Configure Mail Server on Ubuntu","author":"George B.","date":"June 11, 2023","format":false,"excerpt":"Setting up a mail server on Ubuntu can be a daunting task for many, but with the right guidance and understanding, it becomes an achievable goal. In this article, we will provide a step-by-step guide on how to install and configure a mail server on Ubuntu. By the end, you'll\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-and-Configure-Mail-Server-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-and-Configure-Mail-Server-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Install-and-Configure-Mail-Server-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1311,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/varnish-web-accelerator\/","url_meta":{"origin":3247,"position":5},"title":"Varnish Web accelerator","author":"Shreyash Sharma","date":"January 12, 2018","format":false,"excerpt":"Varnish\u00a0is a web accelerator (reverse proxy), which provides relief for the actual web server (the backend).\u00a0It has been designed from the ground up just for this use, unlike traditional proxies (eg Squid). The project website can be found here:\u00a0http:\/\/www.varnish-cache.org installation Varnish is part of Debian (Wheezy: Version 3.0.2) and Ubuntu\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/01\/varnishcache_rgb-gimp2-alpha.png?fit=1200%2C297&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/01\/varnishcache_rgb-gimp2-alpha.png?fit=1200%2C297&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/01\/varnishcache_rgb-gimp2-alpha.png?fit=1200%2C297&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/01\/varnishcache_rgb-gimp2-alpha.png?fit=1200%2C297&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/01\/varnishcache_rgb-gimp2-alpha.png?fit=1200%2C297&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=3247"}],"version-history":[{"count":1,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3247\/revisions"}],"predecessor-version":[{"id":3254,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3247\/revisions\/3254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/3253"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=3247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=3247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=3247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}