{"id":1812,"date":"2022-10-28T03:31:00","date_gmt":"2022-10-28T09:31:00","guid":{"rendered":"https:\/\/www.supportpro.com\/blog\/?p=1812"},"modified":"2026-03-31T00:33:00","modified_gmt":"2026-03-31T06:33:00","slug":"squid-proxy-installation-in-windows-server","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/squid-proxy-installation-in-windows-server\/","title":{"rendered":"Squid proxy installation in windows server"},"content":{"rendered":"\n<p><strong>Squid Proxy<\/strong> is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. Squid has a variety of uses and advantages such as speeding up web browsing for the end user, reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. It also can work as web filtering and can control the browsing traffic.<\/p>\n\n\n\n<p>Squid is based on the Harvest Cache Daemon developed in the early 1990&#8217;s. It was one of two forks from the codebase after the Harvest project ran to completion.<\/p>\n\n\n\n<p>In this article we will learn how to install squid proxy in a windows server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"text-decoration: underline;\">Installation of&nbsp; Squid Proxy in Windows Server<\/span> <\/h2>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>1. Download the Squid proxy for windows from the squid.acmeconsulting.it\/index.html and extract the zip file . In this post, I choose to extract it to the folder \u201cC:\\Squid\u201d<\/strong><\/h4>\n\n\n\n<p>Launch the &#8216;Squid&#8217; proxy setup from Windows &gt;&gt; Click &#8216;Next&#8217; and complete installation :<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>2. Rename the files in folder <em>C:\\Squid\\etc<\/em> of squid files by removing \u201c default\u201d<\/strong><\/h4>\n\n\n\n<p>Note: <strong>Squid.conf<\/strong> is the default configuration file and do the changes on that file. By default the squid using the port <strong>3128<\/strong> and we can change the port number on the configuration file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>3. Creating the swap directory<\/strong><\/h4>\n\n\n\n<p>&gt; Open the command prompt on the machine and change the directory :<br><em># cd c:\\squid\\sbin &nbsp;<\/em><\/p>\n\n\n\n<p>Once inside the folder please enter below command<br><em># squid -z<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>4. Install Squid as a Window Service<\/strong><\/h4>\n\n\n\n<p>Run the below command for install the Squid as windows services<\/p>\n\n\n\n<p><em># squid -i<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>5. Start and stop for the squid services<\/strong><\/h4>\n\n\n\n<p>We can start\/stop the squid service from <strong>service.msc<\/strong> by clicking &#8216;Squid&#8217; under the &#8216;Services&#8217;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>6. Setup the windows firewall for squid proxy<\/strong><\/h4>\n\n\n\n<p>In order to access the squid proxy server, needs to open the port in windows firewall for that please follow the below steps,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>>> Select the option \u201cWindows firewall with Advanced Security\u201d<\/em><\/li>\n\n\n\n<li><em>>> Click the \u2018Inbound Rules\u2019 and select the \u2018New Rule\u2019 under the action <\/em><\/li>\n\n\n\n<li><em>>> Then the select the option \u2018Port\u2019 as the type of rule<\/em><\/li>\n\n\n\n<li><em>>> Next page enter the Port number for squid services and follow as below :<\/em><\/li>\n<\/ul>\n\n\n\n<p>Select TCP and Provide 3128 near &#8216;Specific local ports&#8217;<br>Under &#8216;Actions&#8217; tab select &#8216;Allow the connection&#8217;<br>Under &#8216;Profile&#8217; tab, select &#8216;Domain&#8217; , &#8216;Public&#8217; , &#8216;Private&#8217;<br>Under &#8216;Name&#8217; provide &#8216;squid_services&#8217;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>7. Adding multiple IP\u2019s with different port<\/strong><\/h4>\n\n\n\n<p>We can configure the multiple IP\u2019s with a different port number. First, we need to open the port in the firewall (please use the above procedures). After that open the squid configuration file and the below line on the top of that<\/p>\n\n\n\n<p>http_port 45.XX1.1XX.2XX:3129<br>acl myip_45.XX1.1XX.2XX myip 45.XX1.1XX.2XX<br>tcp_outgoing_address 45.XX1.1XX.2XX myip_45.XX1.1XX.2XX<br>http_access allow myip_45.XX1.1XX.2XX<\/p>\n\n\n\n<p>http_port 45.XX1.1XX.2XX:3130<br>acl myip_45.XX1.1XX.2XX myip 45.XX1.1XX.2XX<br>tcp_outgoing_address 45.XX1.1XX.2XX myip_45.XX1.1XX.2XX<br>http_access allow myip_45.XX1.1XX.2XX<\/p>\n\n\n\n<p>Then, save the configuration files and restart the squid proxy service.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FAQ Section<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>What is Squid Proxy?<\/li>\n<\/ol>\n\n\n\n<p>Squid Proxy is a caching proxy server that supports HTTP, HTTPS, and FTP, helping improve performance and reduce bandwidth usage.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Which port does Squid Proxy use by default?<\/li>\n<\/ol>\n\n\n\n<p>By default, Squid Proxy uses port 3128, but you can change it in the configuration file.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Can Squid Proxy be installed on Windows Server?<\/li>\n<\/ol>\n\n\n\n<p>Yes, Squid can be installed on Windows Server by downloading the Windows version, configuring files, and running it as a service.<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>How does Squid improve performance?<\/li>\n<\/ol>\n\n\n\n<p>It caches frequently accessed web content, reducing load times and bandwidth usage for repeated requests.<\/p>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Can I configure multiple IPs in Squid Proxy?<\/li>\n<\/ol>\n\n\n\n<p>Yes, you can configure multiple IP addresses with different ports by updating the Squid configuration file and firewall rules.<\/p>\n\n\n\n<p>If you would rather have an expert server admin install it for you, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO team<\/a><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img fetchpriority=\"high\" decoding=\"async\" width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Squid Proxy is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. Squid has a variety of uses and advantages such as speeding up web browsing for&hellip;<\/p>\n","protected":false},"author":13,"featured_media":13008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[15],"tags":[53],"class_list":["post-1812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-server","tag-cloud"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1812"}],"version-history":[{"count":5,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1812\/revisions"}],"predecessor-version":[{"id":16476,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1812\/revisions\/16476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/13008"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}