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

Profil / Biografi singkat Prabowo Subianto

Profil /Biografi Prabowo Memiliki nama lengkap Prabowo Subianto Djojohadikusumo, lahir di Jakarta, 17 Oktober 1951, umur 62 tahun. Dia merupakan seorang Letnan Jenderal TNI (Purnawirawan). Prabowo merupakan putra dari pasangan Soemitro Djojohadikusumo, ekonom Indonesia dan Dora Marie Sigar, atau lebih dikenal dengan nama Dora Soemitro. Dia cucu dari Raden Mas Margono Djojohadikusumo, anggota Badan Penyelidik Usaha-usaha Persiapan Kemerdekaan Indonesia (BPUPKI), pendiri Bank Negara Indonesia (BNI) dan Ketua Dewan Pertaimbangan Agung (DPA) pertama. Prabowo memiliki dua kakak perempuan, Bintianingsih dan Mayrani Ekowati, serta satu orang adik, Hashim Djojohadikusumo. Saat ini, Hashim dikenal sebagai seorang pengusaha handal, dengan bisnis di puluhan negara termasuk Kanada, Rusia dan Indonesia. Sedangkan karier militer Prabowo dimulai tahun 1970, dengan mendaftar di Akademi Militer (Akmil) Magelang. Dia lulus tahun 1974, satu tahun setelah Presiden Susilo Bambang Yudhoyono (SBY) lulus. Tah...

Laravel Training Purnama Academy

Nov 2018 Purnama Academy 0838-0838-0001 Kursus Laravel Training Center INdonesia, jakarta, Bandung, Bogor, Semarang, Yogya, Palembang kalimantan, surabaya visit www.purnamaacademy.com , Laravel - Online Courses, Classes, Training, Tutorials on Lynda https://www.lynda.com/Laravel-training-tutorials/2779-0.html Learn how to use Laravel, from beginner basics to advanced techniques, with online video tutorials taught by industry experts. Top Laravel Courses Online - Updated November 2018 | Udemy https://www.udemy.com/topic/laravel/ Whether you're interested in developing web apps in the Laravel PHP framework, or building a RESTful API with Laravel, Udemy has a course to help you ... PHP Laravel Framework | Brainmatics.Com brainmatics.com/php-laravel-framework/ Translate this page Laravel merupakan framework PHP yang dirancang untuk membangun situs web ... Pada training ini diharapkan mampu membantu meningkatkan kemampuan ... Dec 3 - Dec 6 Brainmatics Laravel training - Laracasts htt...

tempat training komputer di bandung

Jadwal training, kursus komputer sisindotek Bandung GRA-03 - Google Sketchup 3D for Building Interior 3 Hari , Start : 6,20 Oct , 3 Nov, 8 Dec 2014 GUI-02 - Building ASP.Net Application with IronSpeed Designer 4 Hari , Start : 13, 27 Oct, 10, 24 Nov , 1,15 Dec 2014 API-02 - Building Integrated Map Website with PHP MySQL and Google Map API V.3 3 Hari , Start : 6,20 Oct , 3 Nov, 8 Dec 2014 NTW-04 - Installing and Configuring Exchange Server 2008 4 Hari , Start : 13, 27 Oct, 10, 24 Nov , 1,15 Dec 2014 CMS-03 - Web Development with PHP CodeIgniter 3 Hari , Start : 6,20 Oct , 3 Nov, 8 Dec 2014 PRO-01 - Computer for Secretary and Admin Staff (Networking Essential, MS. Outlook, Document Security and sharing, MS. Office Integration, File Archive and data backup - Recovery, etc.) 3 Hari , Start : on demand PRG-06 - Building Event Scheduler System with PHP AJAX and SMS Gateway 4 Hari , Start : 13, 27 Oct, 10, 24 Nov , 1,15 Dec 2014 NTW-03 - Installing, Configuring and Administering UBUNT...