Skip to main content

Install Squid in Windows 7





Squid is a caching proxy server that can help reduce internet bandwidth usage and improving response time of loading a website by caching and re-using frequently opened web page. Squid reduce the bandwidth usage and accelerate the website loading by caching static website objects such as images, flash objects and text files, with some modification Squid can cache larger files such as PDF, MP3, executables, flash videos, etc.

In this tutorial we will install Squid NT which is a fork from Linux version of Squid to Windows 7 (seven). To begin with the installation, first download the package from here: Squid NT and then extract it to C: drive. After extracting the content of package you should see a folder named ‘squid’ on C: drive, the full path should be C:squid. Another way is first extract the zip package on where you save it and then move the ‘squid’ directory to C:
Modifying configuration file
Now we need to modify some files before we configuring Squid. Go to ‘etc’ folder on C:squidetc you’ll see these files:


  • cachemgr.conf.default

  • mime.conf.default

  • squid.conf.default

  • squid_radius_auth.conf.default



You need to copy and rename these files:


  • cachemgr.conf.default -> cachemgr.conf

  • mime.conf.default -> mime.conf

  • squid.conf.default -> squid.conf



From the three configuration files we only need to configure squid.conf file. The configuration file cachemgr.conf and mime.conf by default will be sufficient for our basic setup.
The default setting on squid.conf generally is ready to use, but you need to make note on these parts:
1. Search for 'acl localnet src' you'll see:
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network


You can comment out the settings that are not applicable for your network configuration, in my case I use 10.0.0.0/8 network configuration so I’ll comment out the other two lines as I don’t need it. You can comment by adding hash key ‘#’. The end result would be like this:
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network #acl localnet src 172.16.0.0/12 # RFC1918 possible internal network #acl localnet src 192.168.0.0/16 # RFC1918 possible internal network


2. Search for 'dns_nameservers'
Under the explanation, you should add your ISP dns nameservers. The format should look like this:
dns_nameservers


Now save the changes and close the file. Until these steps, it should be enough to start Squid, you can modify the configuration later on.
Installing Squid service
These steps will install the Squid service so we can restart Squid from Windows’ Control Panel.
1. First we have to disable User Account Control (UAC) settings to be able to install Squid service. Go to: “Control Panel > System and Security > Change User Account Control settings” and move the bar to “Never Notify”, you need to restart Windows 7 to make the settings effective.
Change UAC settings to be able to setup Squid as serviceChange UAC settings to be able to setup Squid as service

2. After reboot, open command prompt by clicking on Windows Logo (start), then type ‘Command Prompt’ on the search box and press enter.
Search for "Command Prompt" and press enterSearch for "Command Prompt" and press enter

3. Go to Squid’s sbin directory by typing:
cd c:squidsbin


4. Install Squid service with this command (please re-types this and not copy paste to make sure you have the correct character code):
squid.exe -i


You should get this information:
c:squidsbinsquid -i Registry stored HKLMSOFTWAREGNUSquid2.6SquidConfigFile value c:/squid/etc/ squid.conf Squid Cache version 2.7.STABLE6 for i686-pc-winnt installed successfully as Squid Windows System Service. To run, start it from the Services Applet of Control Panel. Don't forget to edit squid.conf before starting it.


Squid service installationSquid service installation

5. Setup Squid’s cache (please re-types this and not copy paste to make sure you have the correct character code):
squid.exe -z


You should get this information:
c:squidsbinsquid -z 2009/08/18 22:50:33| Creating Swap Directories


6. After Squid service is installed and the cache is created, now let’s start the service by going to Control Panel > System and Security > Administrative Tools > Services. Look for ‘Squid’, select it and press the start button.
Open the service manager Open the service manager

Start Squid service

Now if you see on the Task Manager > Services, you can see Squid service have a Running status.
Squid process on task managerSquid process on task manager

7. As Squid service is up and running, we need to configure the browser to access the internet via proxy server. On Internet Explorer go to Tools > Internet Options > Connections > LAN Settings, give check on “Use a proxy server for your LAN ...” and fill the Address field with your Squid server IP Address (in this case your PC IP address) with the Port 3128 (standard Squid port, you can modify this on squid.conf), click OK twice to save the settings.
Internet Explorer optionsInternet Explorer options

Click on LAN SettingsClick on LAN Settings

Add your PC IP address and Port 3128Add your PC IP address and Port 3128

8. Next step is to test whether our configuration is correct. Go to this site: www.whatismyipaddress.com and you should see “Proxy Server Detected!” message, something similar like this:
Check whether Squid working correctlyCheck whether Squid working correctly

9. As everything is working, now we need to re-enable User Account Control (UAC). Go to: “Control Panel > System and Security > Change User Account Control settings” and move the bar to “Default” it’s the 3rd bar, you need to restart Windows 7 to make the settings effective.
I hope this tutorial is clear enough, but in case you still have question please sign-up and post a comment.

Comments

Popular posts from this blog

Sewa Ruang Meeting Daerah Citarum Bandung

Sewa ruang meeting kantor, training di Bandung Hubungi 0816-4038-78. Lokasi Ruang Meeting berada di Jl.Pelajar Pejuang 45 No.23B 1. Paket per Jam      - Biaya : Rp.50.000 / org / jam     - Fasilitas : Snack & Drink 2. Paket Half-Day     - Waktu : 09.00 s/d 13.00 Wib     - Biaya : Rp.120.000 / org      - Fasilitas : Makan siang 1x, Snack & Drink 3. Paket Full Day     - Waktu : 09.00 s/d 16.00 Wib     - Biaya : Rp.170.000 / org      - Fasilitas : Makan siang 1x, Coffe break 2x, Snack & Drink 4. Lain-lain     - Sewa Proyektor : Rp.150.000/day     - Extra time : Rp.100.000/Jam Syarat dan Ketentuan : 1. Min. 3org dan Max. 7org 2. Pembayaran H-3 sebelum tgl pelaksanaan 3. Melebihi jam ketentuan dikenakan biaya tambahan Sewa Ruang Meeting Daerah Citarum Bandung Hubungi 0816-4038-78 Ruang meeting murah mulai 50.000 di Buah Batu, Pasteur, Sukajadi, Lengkong, Antapani, Uj...

Agen Milyuner BISTOK Baru : Karya Suhendar, dari Tasikmalaya

Agen Milyuner Baru : Karya Suhendar http://www.bisnistoko.com/myhome72 Karya Suhendar dari Tasikmalaya ( http://www.bisnistoko.com/myhome72 ) telah bergabung menjadi Agen Milyuner BISTOK dengan komisi tak terbatas dan terus bertambah setiap harinya, agen milyuner bistok untuk siapa saja. Berapapun harga iklan yang Anda informasikan komisi anda mencapai Rp 8 juta dalam 2 minggu atau 3,3 Milyar dalam 2 bulan, semua sangat mudah dan Anda tidak bekerja sendirian mesin otomatis kami akan membantu Anda, silahkan bergabung bersama Karya Suhendar di http://www.bisnistoko.com/myhome72 sekarang juga, kini giliran anda !, Oleh : RumahModel Ini baru Toko Online Terpercaya, Daftar sekali untung berkali kali !

How to read .epub ebook

Cara membaca ebook epub, berikut informasi software yang bisa membaca ebook epub sumber : http://epublishersweekly.wordpress.com/about/how-to-read-epub/ Ebooks in the Format: ePub The ebook editions of our paperback books are available in two formats: PDF and ePub. The PDF format is primarily designed for reading on desktop and laptop computers. (But of course, many portable devices can easily read PDF documents.) The new ePub format reads beautifully on iPhones, iPods, and a number of PDAs and ebook readers. And is also possible, and fun, to read the ePub ebooks on your desktop or laptop computer. Read ePub Online BookWorm from O’Reilly Labs. Not only for reading ePub ebooks, BookWorm lets can store your ePub library online. And expect future upgrades to this already-excellent interface. Read ePub on Your iPod or iPhone Stanza from Lexcycle. Everybody loves Stanza, and when you try it you will see why. Read ePub on Your Desktop Computer or Laptop Computer Stanza from Lexcycle. Sta...