How to configure Squid to be a web proxy server

Home > Search > How-to
  by

Before we configure Squid, using any computer in your LAN, try to go to any website, such as www.google.com. Google's website should be displayed. Let's set up the client web browser to send traffic through the Squid proxy server. 

Chrome, Edge, or Internet Explorer

  1. Select the Windows Start icon > Control Panel or Settings.
  2. Select Internet Options.
  3. Select Connection tab.
  4. Select LAN Settings.
  5. Tick Use Proxy Server and enter the IP adress or hostname of the Squid proxy server and port 3128.

Firefox

  1. Select Options.
  2. Select Advanced.
  3. Select Network.
  4. Select Settings.
  5. Select Manual proxy configuration.
  6. Enter the IP adress or hostname of the Squid proxy server and port 3128.

Refresh www.google.com. The web browser will display a message such as The requested URL could not be retrieved or The connection has timed out

 

By default, Squid is set to deny all HTTP traffic. Add the following in the squid.conf file to allow every device in the LAN to use the Squid proxy server. Replace x.x.x.x/xx with the network IP address, such as 192.168.0.0/24. After making this change, restart Squid.

acl localnet x.x.x.x/xx
http_access allow localnet

 

Now, when we go to www.google.com, we should get Google's home page, thus the Squid proxy server is now allowing HTTP traffic.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments