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:
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:
Now you have to go to the folder where Squid is installed. In our example we have installed it to:
./configure –prefix = /usr/local/squid
We compile with the application with the command:
The installation is ready to be finished, run the command:
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:
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:
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:
Webmin will be installed by the following command:
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:
Then you must specify the folder in which Perl is saved. This is usually the following folder:
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:
Now you have to enter the Administrator Name. We take for example here as username:
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:
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://18.104.22.168: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.