Install and Configure Squid Proxy Server for Windows

Squid-Cache Proxy server is open source (free, reliable and easy to install and setup)!

Step 0 > Ensure THIS PC has a direct connection to the internet ( i.e. you can ping an internet domain name)

Step 1 > Download Squid-Cache v2.7 STABLE 4

Step 2 > Unzip squid-2.7.STABLE4-bin.zip to C:\
This will create the c:\squid folder

Step 3 > Start up a Command Prompt
The following will setup the default configuration
type in each of the following blue lines followed by ENTER :
c:
cd “\squid\etc”
copy cachemgr.conf.default cachemgr.conf
copy mime.conf.default mime.conf
copy squid.conf.default squid.conf
copy squid_radius_auth.conf.default squid_radius_auth.conf

Step 4 > Whilst still in the Comand Prompt – We’re going to create the Squid SWAP Directories – type in each of the following blue lines followed by ENTER :
c:
cd “\squid\sbin”
squid.exe -z

Step 5 > Whilst still in the Comand Prompt – We’re going to create the Squid Windows Service – type in each of the following blue lines followed by ENTER :
c:
cd “\squid\sbin”
squid.exe -i

Step 6 – Download this Squid Configuration file (squid.conf) and save it to c:\squid\squid.conf
This file enables everyone on your network to access this proxy server – and log’s all access to the internet via this Squid Cache Server.
This file also solves these 2 errors below :
commBind: Cannot bind socket FD 13 to *:3130: (10013) WSAEACCES, Permission denied
commBind: Cannot bind socket FD 16 to *:4827: (10013) WSAEACCES, Permission denied

Step 7 > Whilst still in the Comand Prompt – We’re going to start the Squid Windows Service – type in each of the following blue line followed by ENTER :
net start squid

Step 8 > Allow port 3128 in your Windows Firewall!
Go to Windows Firewall
click Exceptions tab
click Add Port
type in Squid Cache for the name
type in 3128 for the port
ensure TCP is clicked
firewall port 3128
Press OK

That’s it ! To test … on your PC, goto Internet Explorer.
Click Tools > Internet Options
Click the Connection tab
Press LAN Settings button
type in your PC’s own IP Address (i.e. 192.168.1.1) as the Proxy Server,
and set the Port to 3128
… i.e. :
0inetcpl

Press OK and goto http://b0zmeister.x10host.com to test the internet is working via Squid Cache Proxy Server

All done!

12 thoughts on “Install and Configure Squid Proxy Server for Windows

  1. How can we manage the squid proxy server on windows. Few online sites will be there in this scenario how this squid going to proceed further. I am having bandwidth controller but dont have caching server to optimize the bandwidth. How can we configure which content should be cached or not cached, Will you please help on this and where should i put this squid proxy machine, i mean after bandwidth controller or before bandwidth controller and between ISP and my Bandwidth Controller.

    1. Hi Sridbar, you’re best placing the Squid proxy machine between the ISP and the bandwidth controller — as Squid ideally needs full access to the internet directly.

      Squid does not determine what is / is not to be cached, that would make it very complex indeed! BUT >> what you could do is far easier :::

      1) Have computers that require NO caching to access the internet directly

      2) Have computer that REQUIRE caching – to access the internet via Squid Cache

      You’d be surprised how many people are using Squid on their home / work networks — it can save bandwidth just by being deployed, plus there are lot’s on $$$expensive$$$ web filtering solutions using Squid built-in…

      Thanks,

      :)

  2. i’m stuck with this step
    “Step 5 > Whilst still in the Comand Prompt – We’re going to create the Squid Windows Service – type in each of the following blue lines followed by ENTER :
    c:
    cd “\squid\sbin”
    squid.exe -i”

    the CMD said, “OpenSCManager failed”
    could you help me how to work this things out?

    1. Hey there shinbe, I’ve researched the problem you mentioned …

      You’ll need to be logged-on with Administrator privileges in order to proceed. Without Administrator privileges, you won’t be able to adjust the Windows Services…

      Thanks,
      :)

  3. Thank you so much for your detail explaination…am new to this and it really helped me.
    Would it possiable to set squid proxy to allow users to login with user name and password to access internet?if yes the How?

    Thanks
    Israel

    1. Hi Israel,
      Ok to allow user’s to login with a name and password usually requires Samba and Winbind. I’m not 100% certain on the setup, but I’ll and find out for you.

      Thanks,

      Matt (Logituck Admin)

  4. HI,

    Is it possible to prevent user to download *.exe files?

    under mime.conf –> \.exe$ application/octet-stream

    what is the correct command needs to add under squid.conf?

    thanks

  5. How to allow only 1 site and the rest is block.. I only want trello.com to be allowed the rest is blocked.. Please help..

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Anti-Spam by WP-SpamShield