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:
# iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
# service iptables save
# service iptables restart
Other squid interview questions:
# service iptables save
# service iptables restart
Other squid interview questions:
- What is Squid?
- What is Proxy Server? What is the use of Proxy Server in Computer Networks?
- What is the default port of squid and how to change its operating port?
- How to block certain domains through squid proxy server in an office ?
- What is Media Range Limitation feature in squid?
- What is partial download feature in Squid?
- What is reverse proxy feature in squid?
- What is the cache store location in squid?
- What is the squid cache file format?
- How to clear cache in squid?
- How to restrict web access time in squid?
No comments:
Post a Comment
Dear visitor,
Please do not post spam. All comments will be moderated before approval.