The Technology Magazine.

Full width home advertisement

Android

Linux

Post Page Advertisement [Top]

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,
Please do not post spam. All comments will be moderated before approval.

Bottom Ad [Post Page]

| Designed by Techeia.com