16.5. Configuring the Squid Service to Listen on a Specific Port or IP Address
By default, the Squid proxy service listens on the 3128 port on all network interfaces. This section describes how to change the port and configuring Squid to listen on a specific IP address.
Squid is installed.
Edit the /etc/squid/squid.conf file:
To set the port on which the Squid service listens, set the port number in the http_port parameter. For example, to set the port to 8080, set:
To configure on which IP address the Squid service listens, set the IP address and port number in the http_port parameter. For example, to configure that Squid listens only on the 192.0.2.1 IP address on port 3128, set:
Add multiple http_port parameters to the configuration file to configure that Squid listens on multiple ports and IP addresses:
If you configured that Squid uses a different port as the default (3128):