How to Configure the Squid on linux 9

Taking care of your Linux box.
Posts: 11
Joined: Fri Dec 26, 2003 5:07 pm
Location: Karachi

How to Configure the Squid on linux 9

Postby xenoboy » Mon Dec 29, 2003 11:35 am

Dear Experts,

I have Squd2.4s on Redhat linux 9 . i m new to linux and cant understand how to configure the SQUID . could u guide me how to configure the Squid step by step .


Site Admin
Posts: 204
Joined: Sat Oct 25, 2003 10:43 am

Postby mahin_pk » Mon Dec 29, 2003 11:43 am

Please use the term "Squid" and do a search at forums. Read the most recent posts first as same question has been answered. Please read it and then post here what part you did not under stood or if you have any specific problem not answered.

Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

Postby kernel-trap » Mon Dec 29, 2003 11:46 am

This Quick starting guide taken from squid source code if u have install squid as rpm your squid.conf file will be at /etc/squid/squid.conf

/etc/init.d/squid script for starting squid



$Id: QUICKSTART,v 2003/07/18 08:53:27 hno Exp $

This document is intended only for people who want to get Squid running
quickly It is not a substitute for the real documentation. Squid has
many features, but only a few of them are useful at the beginning. Use
this only if you have quite a simple setup.

After you retrieved, compiled and installed the Squid software (see
INSTALL in the same directory), you have to configure the squid.conf
file. This is the list of the values you *need* to change, because no
sensible defaults could be defined. Do not touch the other variables
for now. We assume you have installed Squid in the default location:

Uncomment and edit the following lines in /usr/local/squid/etc/squid.conf:


cache_peer, never_direct/always_direct

If you have a parent cache, put it here. The administrators of the
parent cache typically provided you with instructions. You should
always ask permission before adding a parent cache. See also the
never_direct/always_direct directives.

cache_dir /usr/local/squid/var/cache 100 16 256

Add here (first number, here 100) the amount of hard disk space
(in megabytes) to devote to caching.

acl, http_access, icp_access

Access control lists. This is important because it prevents people
from stealing your network resources. To fill in the
"allowed_hosts" ACL, use your network address (for instance and your network mask (for instance

acl manager proto cache_object
acl localhost src
acl all src
acl allowed_hosts src

http_access deny manager all
http_access allow allowed_hosts
http_access deny all

icp_access allow allowed_hosts
icp_access deny all


Put here the e-mail address of the manager:


If you must start Squid as root, find a safe user and group to run
as after startup (typically "nobody" and "nogroup"). Do not use
"root", for security reasons.


The host name you advertise for the cache.


After editing squid.conf to your liking, run Squid from the command
line TWICE:

% /usr/local/squid/sbin/squid -z
% /usr/local/squid/sbin/squid

Check in the cache.log (/usr/local/squid/var/logs/cache.log) that
everything is all right.

Once Squid created all its files (it can take several minutes on some
systems), test it with echoping or a regular Web client. By default,
your Squid will run on port 3128. See the Squid FAQ for more details.

Once you have Squid working from the command line, tell your Unix to
start Squid at startup (it depends heavily on the Unix you use, you'll
typically have to modify something in a /etc/rc_something).

This quick start file written by: Stephane Bortzmeyer and Duane

Posts: 11
Joined: Fri Dec 26, 2003 5:07 pm
Location: Karachi

Postby xenoboy » Mon Dec 29, 2003 12:01 pm


i have just download the file call SQUID-2.6-STABLE.TAR.GZ

Guid me after this what should i do for running the squid ..


Posts: 605
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi

Postby mahin » Mon Dec 29, 2003 12:10 pm

Thanks kernal-trap for posting. Please do not spoil newbie by spoon feeding, teach them how to find an answer but not the answer.

I do understand you mean well by providing him an easy way but we want them to learn not solve their problems. There is difference between the two :).

Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

Postby kernel-trap » Mon Dec 29, 2003 1:06 pm

Yes you are right man i am giving ready made stuff :)

do these steps


this make dir SQUID-2.5STABLE

read the README and INSTALL file for detail

remeber almost all software have these file they will tell u steps you need to get started


Naib Subedar
Posts: 322
Joined: Wed Sep 24, 2003 10:04 pm
Location: islamabad

Postby outstream » Mon Dec 29, 2003 4:36 pm


guys, i think u should advice him sum good book...hez just a newbie as he told u...u`ll scare him out by telling him complex linux os terms as posted by offense anyways...but thats what i felt saying
Testing?What's that? If it compiles, its good, if it boots up it is perfect.
Registered Linux User # 334322

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest