Learn how to configure Squid Proxy Server in Redhat Linux 5

Linux is an Networking OS out of the box. Now you can Learn how to configure Squid Proxy Server in Redhat Linux 5, a Linux Distribution which is being used for networking primarily in corporate segment.

As such, it provides multiple users with Internet access so that they can surf simultaneously, or establish flawless data exchange with the World Wide Web.

Squid is available in Redhat repositories; it supports HTTP, FTP, Gopher and the likes. Among other goodies we see native support for SSL, access controls, caching of DNS.

Are you ready for Squid?

Squid can be downloaded on your system by using these simple instructions:

wget http://www2.de.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE7.tar.gz

Then you have to extract the .gz archive:

tar xvfz squid 2.7.STABLE7.tar.gz

Now you have to switch to the directory in which you unpacked Squid:

cd squid-2.7.STABLE7

Now you have to go to the folder where Squid is installed. In our example we have installed it to:

/usr/local/squid/.

./configure –prefix = /usr/local/squid

We compile with the application with the command:

make

The installation is ready to be finished, run the command:

make install

Then you have to create another system user for Squid:

useradd -g nogroup -d /usr/local/squid -c « proxy Squid » -s /bin/bash squid

Now a cache folder should be created:

mkdir /usr/local/squid/var/cache

Configuring Squid

But now we can not yet use the Squid proxy. We have to configure the server, so that it would be possible to modify the configuration settings either via the config file or to make it more comfortable using the web interface of Webmin.

But now we have to download Webmin first:

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.490.tar.gz

Then you have to unzip this archive:

tar xvfz webmin-1.490.tar.gz

Then we need to switch back to the directory where we have extracted Webmin:

cd webmin-1.490

Webmin will be installed by the following command:

./setup.sh

To finish the installation we will be prompted to enter a few parameters, inter alia where we want to save the configuration file of Webmin. We would recommend to save it at:

/etc/webmin

Then you must specify the folder in which Perl is saved. This is usually the following folder:

/usr /bin/perl

Then you can choose the port on which Webmin is run. It is by default port 10000. However, you can set this to any port such as:

29381

Now you have to enter the Administrator Name. We take for example here as username:

Administrator

Then you can enter his desired Fits word. It is important that one is not as easy as password like 123456 or so. Then we are asked if SSL should be used. We would recommend to activate this. Code:

y

Next we are asked whether Webmin is to start at boot or not. The whole routine we confirm again with « Yes ».

Now we can call Webmin via our browser by entering the Server’s IP address and the port of our choice. For example, https://169.178.1.1:29381/

The Squid server is up and running now. Well, now in the web interface you can log in with the username and password easily.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...