How to Configure Squid Proxy Server


The squid proxy server is very easy to install and configure. All squid needs to run is the range of IP addresses that are allowed to use the proxy server and the port that the squid proxy server is listening on. After that, browsers allowed to use the squid proxy server will be able to surf the Internet through the squid proxy server.

Things You'll Need

  • IP subnet information for the internal network that will be accessing squid
  • The installation instructions depend on the operating system. For the popular Red Hat based Linux distributions, the command to install is "yum install squid".

  • Add the IP subnet to squid's acl (access control list) by editing /etc/squid/squid.conf. For example, to include the subnet as part of acl list "mynetwork", the command inside squid.conf is "acl mynetwork src".

  • Allow the acl list to be used by the squid proxy server. The command to allow acl list "myaccess" to use the squid proxy server is "http_access allow mynetwork".

  • Define the port to be used by squid. The default port is 3128. To change the default port to 2999, the command is "http_port 2999".

  • Start squid. The command to start squid is "/etc/rc.d/init.d/squid start".

  • Test squid by configuring a web browser to use the squid proxy server. If it does not work, make sure the browser has the correct port and IP address for the squid proxy server.

Tips & Warnings

  • Do not enable access to everybody. Otherwise, unscrupulous hackers will use the squid proxy server to hide their activities and use up your bandwidth.
  • Photo Credit plex
Promoted By Zergnet



You May Also Like

  • How to Build a Proxy Server

    A proxy server is a remote or local server that you can use to act as a "middleman" for your Internet traffic....

  • How to Test a Squid Proxy

    Since the Squid server is interacted with through a Web ... How to Configure a Squid Proxy Server to Receive Outlook. ......

  • How to Configure a Proxy

    How to Configure a Proxy. The proxy server acts as a negotiator between a client machine and a main server. ... How...

  • How to Enable SSL Squid

    Save the squid.conf configuration file in the text editor. 5.

Related Searches

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!