Sometime system admin wants to change default squid port according to the requirements of their network.
Here I will show you, how to change squid proxy server default port.
By default squid listen on port 3128, which we can change easily by defining required port in ‘/etc/squid/squid.conf’ file.
Open squid config file in vi text editor.
If you install squid from source code then location will be.
I changed 3128 port into 8080, you can change what you require.
Now restart squid service.
Thatâ€™s it we have successfully changed the port squid proxy server.we can confirm squid new port by using the following command:
See the Proof:
Make sure to open ports that we changed now 8080.
see below iptables rule:
# service iptables save
# service iptables restart
Next Topic: Deny Access to specific websites in Squid Proxy
I am Hafiz Haider, co-founder of BroExperts.com. A Computer Geek and a certified Linux enthusiast (RHCE, RHCSA), who strongly believes in sharing knowledge.. You can reach me at email@example.com.