Installing Squid Cache for Windows

Linux users mostly already know Squid proxy server as the best and most used proxy server. As on my previous post “Bandwidth Shaping Using Squid Cache and WIPFW” I need a free proxy server for my windows server. I found SquidNT which is ported from its Linux version by Guido Serassio.

You can download SquidNT from Acme Consulting’s website or here. If you want to do bandwidth shaping then you must download SquidNT with Delay Pool version. On this installation guide, I use the Delay Pool version as I want to do bandwidth shaping.

Here you can setup which network that allowed to use your proxy server. From ipconfig command you can find out what is your IP address, usually it have 192.168.0.x format so you can apply the configuration above.

Step 6: Setup the hostname

# TAG: visible_hostname
# If you want to present a special hostname …
# then define this. Otherwise, the return …
# will be used. If you have multiple caches …
# get errors about IP-forwarding you must …
# names with this setting.
#
#Default:
# none
visible_hostname localhost

Here you can define the name for your hostname, for example you can use “localhost” or “server.youdomain.com”

Step 7: Setup cache directory

Run this command from command prompt: c:\squid\sbin\squid -D -z

Step 8: On Windows XP/2000/2003 you can setup SquidNT as a service

Run this command from command prompt: c:\squid\sbin\squid -i

You can start/stop/restart the service called Squid from: Control Panel > Administrative Tools > Services

On the pop up window you’ll find proxy box, give a check on “Use a proxy server for your LAN…” and fill your server’s IP (where you install SquidNT) on the address field and fill “3128” on port field. 3128 is the default port for SquidNT.

Click Ok to save the configuration. Now try to open a web page and see if you can open it. If you can then the configuration is set correctly.

Step 10: Setup the Delay Pool.

As I want to do bandwidth shaping then I needs to setup the Delay Pool. Here is the configuration:

Now we setup how much bandwidth we want to allocate. For example, you have 384 Kbps ADSL connection which means you can download at around 40KB/s. Now you want to shape the maximum to around 30KB/s download rate, here is the configuration:

what i did when it occured was i installed the squid into g: directory. so i change it to c: directory, voila! problems solved.

anyway thank to mr markus for giving such good manual. one question:

my ip address is 192.168.1.100, which is not like u said “usually it have 192.168.0.x format so you can apply the configuration above” in step 5 (setup acl). how can i edit the squid.conf file if i want my ip address to be the proxy server.

your PC’s LAN IP should be using 192.168.x.x address (or 10.0.x.x), you install squid on the gateway pc on your home network. and the outside network (internet server) will see your public IP if you browse through the proxy

Not sure I’m reading this incorrectly or not. or if what I’m asking is possible.

I have a server box with 2 NIC cards. 1 will be connected to an external modem that goes directly out to the internet. the other will be connected to a large internal LAN which I’d like to provide internet access from card 1 to any PC on the internal LAN via HTTP browsing proxy setting I’ve tried setting this up and failed several times. I’m trying to mimic the setup of an old Squid Linux box via windows this time using your guide. So in more detail.

NIC 1.) (external internet access) 173.xxx.xxx.xxx I can also buy a small router if need be to work properly (wasn’t sure if it was necessary for several connections) I have it setup with a static address that never changes from my cable provider.

yes it should work, first you have to make sure that the windows server can access the internet. then you have to make sure all the clients can connect to the internet through the windows server. only after that you can install squid on the windows server and then setup the proxy settings on client’s PC

Hi,
first of all let me apologize for my English school …
I configured my squid on a W2K8 and works fine, but filled the C: partition and noticed that I have many GB of log files in google I saw that the log files can be automatically split could help me figure out how?

Is that possible to install squid cache on same server(web server). Or I need two servers like one for squid cache and one for web-server. Please explain it for me , I am little bit confused with this. And what are the minimum hardware requirements for Squid cache to work properly.