Squid Proxy used

Squid Proxy -
This is a great small proxy server and is used in places that have a lot of computers and only one small internet connection.  It will cache websites locally on the hard drive, which makes it faster to open a web site the next time you visit it.  There are hundreds of settings that you can change, and it is documented here:

I Installed squid proxy to improve my internet speed and to do content filtering.  I installed the windows version 2.7.stqable4 – download here: After the download, I extracted the zip file to the root of drive C:

1). Extract Squid to c:\
2). Start / run / cmd (Go to dos prompt)
3). cd \squid\etc
4). copy *.default *. (this will copy the config files and remove the default extension)
5). Notepad squid.conf
6). Search for 3128 and change the prompt to 8080
7). Make other changes you need to fit your network.  Example, DNS, ACL
7a). acl RULENAME dstdomain .www.domain.com   #(Doesn’t cache this domain)
       no_cache deny RULENAME
8). cd \squid\sbin
8a). Sqid -z to create the default cache folders
8b). Squid – tests your config for errors and runs (not recommend to always run this way)Do step 9 to install it as a service.  This will make it startup on a reboot, and if it stops, will auto restart.
9). squid – i to install as a service (squid -r to remove the service)
A). net start squid (net stop squid to stop it).
B). Change your browser settings to point to the new proxy :
tools / internet options / connections / lan settings / Proxy: localhost Port:8080
C). Test your internet connection – open a web site like http://www.google.com

You may want to adjust the cache size from 10mb to 100mb in the c:\squid\etc\squid.conf file.  You can change the location of the cache too.  It creates log files by default in the

Tags: ,

7 Responses to “Squid Proxy used”

  1. dkull says:

    Squid circular logging. Is there a setting for this in the squid.conf file?

    If not, on the windows side, I know I could set a schedule to delete the c:\squid\var\logs
    access.log
    store.log

  2. TechGuy says:

    I am looking for a way to block certain web sites. Do you have some settings I can use with Squid Proxy? I did see IPCOP, but I need a windows version. Thank you.

  3. TechGuy says:

    I found this blog that comes close to helping. Just need the windows version.

    http://mkeadle.org/index.php?p=14

  4. dkull says:

    Commands to not cache sites:
    Modify the squid.conf file and add the following lines:

    acl RULENAMEIP dst 67.202.217.94/255.255.255.255
    acl RULENAME dstdomain .rialtoschools.org
    acl RULENAME dstdomain .echalk.com
    acl RULENAME dstdomain .renlearn.com
    no_cache deny RULENAME
    no_cache deny RULENAMEIP

  5. dkull says:

    Download BIND – Windows DNS Server
    http://ftp.isc.org/isc/bind9/9.5.0-P2-W1/BIND9.5.0-P2-W1.zip

    ZONE FILE Example
    http://en.wikipedia.org/wiki/Zone_file

    //
    // BIND configuration file
    //

    options {
    // tell named where to find files mentioned below
    directory “C:\WINDOWS\system32\dns\etc”;
    // on a multi-homed host, you might want to tell named
    // to listen for queries only on certain interfaces
    // listen-on { 127.0.0.1; 10.11.12.0/24; };
    };

    zone “dkwizard1.servegame.com” IN {
    // this is the authoritative server for
    // dkwizard1.servegame.com info
    type master;
    file “dkwizard1.servegame.com.db”;
    };

  6. dkull says:

    SARG – Does reports based on Squid proxy
    http://sarg.sourceforge.net/welcome.php

    Squid Analysis Report Generator is a tool that allow you to view “where” your users are going to on the Internet.

  7. dkull says:

    Batch file to auto delete logs and create a report using sarg
    use the at command to do this at midnight
    Status ID Day Time Command Line
    ——————————————————————————-
    1 Each M T W Th F S Su 11:59 PM c:\squid\dellogs.bat

    dellogs.bat
    @echo off
    echo Deletes log files daily and restarts squid
    Echo Generating report…
    C:\sarg\sbin\sarg.exe -p
    net stop squid
    echo Deleting logs…
    del c:\squid\var\logs\access.log
    del c:\squid\var\logs\store.log
    net start squid

Leave a Reply

Weather forecast in San Bernardino
Posts
Speed Test
Wall
Previous Next All
Latest on Thu, 12:24 am

rebasaj: It is a pity, that now I can not express - I am late for a meeting. I will return - I will necessarily express [...]

Kalebarkab: I want to find good pop music. Help me please.

Kelly Brown: Hi, gr8 post thanks for posting. Information is useful!

KattyBlackyard: Hi, very nice post. I have been wonder'n bout this issue,so thanks for posting

Cornelius: I liked it. So much useful material. I read with great interest.

» Leave a reply



Access
Gsearch
My Sponsors
Login