<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Install_Squid_Proxy_Server_on_Cento7</id>
		<title>How to Install Squid Proxy Server on Cento7 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Install_Squid_Proxy_Server_on_Cento7"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_Install_Squid_Proxy_Server_on_Cento7&amp;action=history"/>
		<updated>2026-06-04T05:13:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_Install_Squid_Proxy_Server_on_Cento7&amp;diff=954&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==How to Install Squid Proxy Server on Cento7==  This will be running on a CENTOS/RHEL 7 VM with minimum specs. ===I set these up on cheap vps like === # https://www.vultr.com...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_Install_Squid_Proxy_Server_on_Cento7&amp;diff=954&amp;oldid=prev"/>
				<updated>2018-05-19T16:40:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==How to Install Squid Proxy Server on Cento7==  This will be running on a CENTOS/RHEL 7 VM with minimum specs. ===I set these up on cheap vps like === # https://www.vultr.com...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==How to Install Squid Proxy Server on Cento7==&lt;br /&gt;
&lt;br /&gt;
This will be running on a CENTOS/RHEL 7 VM with minimum specs.&lt;br /&gt;
===I set these up on cheap vps like ===&lt;br /&gt;
# https://www.vultr.com/&lt;br /&gt;
# https://www.digitalocean.com/&lt;br /&gt;
# https://www.linode.com/&lt;br /&gt;
# https://www.thermo.io/&lt;br /&gt;
&lt;br /&gt;
===Install Squid Server===&lt;br /&gt;
This will be running on a CENTOS/RHEL 7 VM with minimum specs.&lt;br /&gt;
&lt;br /&gt;
Make sure to have your server up-to-date by running&lt;br /&gt;
&lt;br /&gt;
 yum -y update&lt;br /&gt;
&lt;br /&gt;
Next, we need to install Squid Proxy by running the following command:&lt;br /&gt;
&lt;br /&gt;
 yum -y install squid&lt;br /&gt;
&lt;br /&gt;
Once your Squid has been successfully installed you can go ahead and start the program immediately&lt;br /&gt;
&lt;br /&gt;
 systemctl start squid&lt;br /&gt;
&lt;br /&gt;
Do not forget to enable the squid service in order to start automatically at boot.&lt;br /&gt;
&lt;br /&gt;
 systemctl enable squid&lt;br /&gt;
&lt;br /&gt;
It is important to check on the Squid status just to make sure that everything is working fine.&lt;br /&gt;
&lt;br /&gt;
 systemctl status squid&lt;br /&gt;
&lt;br /&gt;
You should get dialog with a saying its running..&lt;br /&gt;
&lt;br /&gt;
===Configure Squid to Allow your IP===&lt;br /&gt;
&lt;br /&gt;
You will need to edit the configuration file and add your connecting ips or ranges.&lt;br /&gt;
&lt;br /&gt;
 vi /etc/squid/squid.conf&lt;br /&gt;
&lt;br /&gt;
How to allow a range of IP addresses to access the Internet through your proxy server&lt;br /&gt;
&lt;br /&gt;
It is just as simple as adding a new ACL entry, Squid supports CIDR notation which makes the job more simple, for example, if you want to allow a range of IPs from 192.168.241.1 to 192.168.241.255 then you will need to add the following entry:&lt;br /&gt;
&lt;br /&gt;
Find the line that starts with # should be allowed and add your ip/range below that.&lt;br /&gt;
&lt;br /&gt;
 acl localnet src 192.168.241.0/24 # My new ACL&lt;br /&gt;
Or your work IP &lt;br /&gt;
 acl localnet src 75.12.56.124 #Work IP&lt;br /&gt;
&lt;br /&gt;
Last but not least restart squid to make the change active.&lt;br /&gt;
&lt;br /&gt;
 systemctl restart squid&lt;br /&gt;
&lt;br /&gt;
===Change Squid Default Port===&lt;br /&gt;
&lt;br /&gt;
If you feel the need of changing the Squid default port, you just need to modify:&lt;br /&gt;
&lt;br /&gt;
 vi /etc/squid/squid.conf&lt;br /&gt;
&lt;br /&gt;
Then find the following line and change the port&lt;br /&gt;
&lt;br /&gt;
 Squid normally listens to port 3128&lt;br /&gt;
 http_port 3128&lt;br /&gt;
&lt;br /&gt;
Change to that your next favorite number&lt;br /&gt;
&lt;br /&gt;
 http_port 1337&lt;br /&gt;
&lt;br /&gt;
===Allowing access in firewalld===&lt;br /&gt;
&lt;br /&gt;
 firewall-cmd --permanent --add-port=1337/tcp&lt;br /&gt;
 firewall-cmd --reload&lt;br /&gt;
&lt;br /&gt;
There is nothing else to say at this moment if you need to go a little bit more in deep about Squid go and check out their website http://www.squid-cache.org/ their documentation is pretty good.&lt;br /&gt;
&lt;br /&gt;
Hope you enjoyed this tutorial and do not forget to share it.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>