Latest News

Squid interview question #3: What is the default port of squid and how to change its operating port?

The default port on which squid runs is 3128.



We can change the operating port of squid from default to any custom unused port by editing its configuration file which is /etc/squid/squid.conf





Open ‘/etc/squid/squid.conf’ file and with editor.

# vi /etc/squid/squid.conf



Find the following line:

# http_port 3128


Change into:

# http_port 8080



I changed 3128 port into 8080, you can change what you require.

Now restart squid service.
# service squid restart
That is it, we have successfully changed the port squid proxy server.



We can confirm squid new port by using the following command:


netstat -antl | grep 8080




Open Firewall Port:

Make sure to open ports that we changed now 8080.
see below iptables rule:

No comments:

Post a Comment

Dear visitor, we appreciate your effort to comment and encourage us. Please do not post spam. All comments will be moderated before approval.

Techeia.com Designed by Templateism.com Copyright © 2014

Free Blogger Themes

Designed by Techeia.com Copyright © 2016

Powered by Blogger.