TECHIES WORLD

For Techs.... Techniques.... Technologies....

Windows

How to install Squid proxy in Windows server

Squid is a caching and forwarding web proxy. It has a wide variety of uses, from speeding up a web server by caching repeated requests; to caching web, DNS and other computer network lookups for a group of people sharing network resources, to aiding security by filtering traffic. Although primarily used for HTTP and FTP, Squid includes limited support for several other protocols including TLS,SSL, Internet Gopher and HTTPS.

This article explains the steps to install squid proxy in Windows server.

Step1: Download Squid-Cache v2.7 STABLE 4

Step2: Unzip squid-2.7.STABLE4-bin.zip to C:\

This will create the c:\squid folder

Step3: 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

Step4: 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

Step5: 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

Step6: 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

Step7: 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

Step8: 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

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. :

Press OK and goto whatismyipaddress.com to test the internet is working via Squid Cache Proxy Server

All done!

Leave a Reply