Home > Documentation > Squid Proxy Server > Squid Proxy Server Basic Setup

Squid Proxy Server Basic Setup

Posted by peter on October 11, 2011

Installation

Download the following from the Internet and save them in the “/”

perl-GD-2.30-2.2.el4.rf.x86_64.rpm

sarg-2.3.tar.gz

squish.tar.gz

Some of the above we won't need to the basic installation, but if you are on the Internet you might as well down load them too.

Installing Squid

yum install the following

squid

httpd

perl

gd

If you gon't know how to "yum" install something, here is an example.

Example:

from the command prompt type the following to install a package

yum install squid

Now install Perl

Browse to the “/” and install the “perl-GD-386.rpm” or “perl-GD-x86_64.rpm” rpm depending if 64 bit or 32 bit OS with the following command:

rpm -i perl-GD-.rpm

Start Apache web server and set it to run at boot

Set Apache to run at boot by typing the following command:

chkconfig httpd on

Start Apache with the following command

service httpd start

Configuration of Squid

Edit the “/etc/squid/squid.conf file and make sure there is no “#” infront of the following lines

http_port 3128

cache_mem 8 mb

NB change the above to cache_mem 40 mb

cache_dir ufs /var/spool/squid 100 16 256

cache_swap_low 90

cache_swap_high 95

access_log /var/log/squid/access.log squid

cache_log /var/log/squid/cache.log

Edit the “/etc/squid/squid.conf file and add the following:

Find the “ACL” section of the “squid.conf” file. Scroll down to “recommended minimum configuration” and add the line making the ip address suit your LAN:

acl lan_local src 192.168.114.0/24

Now scroll down to the “http_access” section of the “squid.conf” file and find “http_access allow manager localhost”. Put a space between it and the one bellow and insert the following: 

http_access allow lan_local

This Basic setup will allow you to use Squid

start the squid service from the command prompt as follows:

service squid start

Comments:

Leave a Reply



(Your email will not be publicly displayed.)

Please type the letters and numbers shown in the image.Captcha CodeClick the image to see another captcha.