{"id":2249,"date":"2025-12-27T06:55:08","date_gmt":"2024-09-06T21:47:57","guid":{"rendered":""},"modified":"2025-08-15T13:42:23","modified_gmt":"2025-08-15T12:42:23","slug":"how-to-install-and-configure-squid-proxy-server-on-rocky-linux-alma-linux-9-2","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-and-configure-squid-proxy-server-on-rocky-linux-alma-linux-9-2\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 and Configure Squid Proxy Server on Rocky Linux\/Alma Linux 9"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<article>\n<p>Squid is a widely used caching and forwarding HTTP web proxy. It is designed to optimize web traffic, improve response times, and save bandwidth. In this guide, we will walk you through the installation and configuration of Squid Proxy Server on Rocky Linux or Alma Linux 9. Whether you&#8217;re setting it up on a local server or a , this tutorial will provide all the necessary steps.<\/p>\n<section>\n<h2>Step 1: Update Your System<\/h2>\n<p>Before installing Squid, ensure your system is up to date. Run the following commands:<\/p>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<p>Keeping your system updated is essential for security and performance, whether you are deploying Squid locally or on a <a href=\"https:\/\/ie.netcloud24.com\">VPS Windows VPS Servers<\/a> platform.<\/p>\n<\/section>\n<section>\n<h2>Step 2: Install Squid Proxy Server<\/h2>\n<p>You can install Squid using the default package manager. Execute the following command:<\/p>\n<pre><code>sudo dnf install squid -y<\/code><\/pre>\n<p>After installation, enable and start the Squid service:<\/p>\n<pre><code>\r\nsudo systemctl enable squid\r\nsudo systemctl start squid\r\n            <\/code><\/pre>\n<p>You can check the status of the Squid service with:<\/p>\n<pre><code>sudo systemctl status squid<\/code><\/pre>\n<\/section>\n<section>\n<h2>Step 3: Configure Squid Proxy Server<\/h2>\n<p>The main configuration file for Squid is located at <code>\/etc\/squid\/squid.conf<\/code>. Open this file in your preferred text editor:<\/p>\n<pre><code>sudo nano \/etc\/squid\/squid.conf<\/code><\/pre>\n<p>Here, you can customize various settings. To allow access from specific IP addresses, add the following line at the end of the file:<\/p>\n<pre><code>acl allowed_ips src 192.168.1.0\/24<\/code><\/pre>\n<p>Replace <code>192.168.1.0\/24<\/code> with your actual network or specific IP addresses that you want to grant access. Then, allow the defined ACL:<\/p>\n<pre><code>http_access allow allowed_ips<\/code><\/pre>\n<p>Save the changes and exit the editor.<\/p>\n<\/section>\n<section>\n<h2>Step 4: Configure Firewall<\/h2>\n<p>If you have a firewall enabled, you will need to allow traffic on the default Squid port (3128). Use the following command to add the rule:<\/p>\n<pre><code>sudo firewall-cmd --add-port=3128\/tcp --permanent<\/code><\/pre>\n<p>Then reload the firewall for the changes to take effect:<\/p>\n<pre><code>sudo firewall-cmd --reload<\/code><\/pre>\n<\/section>\n<section>\n<h2>Step 5: Testing the Squid Proxy Server<\/h2>\n<p>After configuring Squid, it is important to test the proxy to ensure it is functioning correctly. You can do this by setting up your web browser to use the Squid server as a proxy. In your browser settings, configure the proxy settings to point to your server&#8217;s IP address and port 3128.<\/p>\n<p>Visit a website to confirm that the traffic is passing through the Squid proxy. You can also check the Squid logs for access records:<\/p>\n<pre><code>sudo tail -f \/var\/log\/squid\/access.log<\/code><\/pre>\n<\/section>\n<section>\n<h2>Step 6: Secure Squid with SSL (Optional)<\/h2>\n<p>For added security, consider configuring Squid to use SSL. You will need to install additional dependencies and configure SSL certificates for secure connections. You can use Let&#8217;s Encrypt to obtain free SSL certificates. First, install Certbot:<\/p>\n<pre><code>sudo dnf install certbot -y<\/code><\/pre>\n<p>Then follow the steps to obtain your SSL certificate:<\/p>\n<pre><code>sudo certbot certonly --standalone -d your-domain.com<\/code><\/pre>\n<p>After obtaining the certificate, you can configure Squid to use SSL by editing the configuration file accordingly. Ensure you update your firewall rules to allow HTTPS traffic as well.<\/p>\n<\/section>\n<footer>\n<p>You have successfully installed and configured the Squid Proxy Server on your Rocky Linux\/Alma Linux 9 server. For reliable and scalable hosting solutions, consider using . They offer various hosting plans, including <strong>windows virtual private servers<\/strong>, <strong>windows vps hosting<\/strong>, and <strong>windows virtual dedicated server hosting<\/strong>. Whether you&#8217;re looking for <strong>windows vps italy<\/strong> or <strong>uk vps windows<\/strong> solutions, their hosting services provide the performance and flexibility needed to support your proxy server setup.<\/p>\n<\/footer>\n<\/article>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Squid is a widely used caching and forwarding HTTP web proxy. It is designed to optimize web traffic, improve response times, and save bandwidth. In this\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"Linux VPS & VPS Windows Setup Guide | NetCloud24 and Configure Squid Proxy Server on Rocky Linux\/Alma Linux 9","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2249"}],"version-history":[{"count":1,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2249\/revisions"}],"predecessor-version":[{"id":4159,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2249\/revisions\/4159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}