28. Software -Server/Proxy Network

Table of Contents

Linux Squid Proxy Server
Configure and Optimize
Improve performance Using GNU malloc library
Compile and Optimize
Configurations
Configure the /etc/squid/squid.conf file -in httpd-accelerator mode
Configure of the /etc/squid/squid.conf file -/proxy-caching mode
Configure the /etc/rc.d/init.d/squid script file -/all configurations
Configure the /etc/logrotate.d/squid file
Securing and Immunize Squid
Optimizing Squid
The cachemgr.cgi
Netscape Proxies Configuration
Installed files

Proxy-servers, with their capability to save bandwidth, improve security, and increase web-surfing speed are becoming more popular than ever. At this time only a few proxy-server programs are available. These proxy-servers have two main drawbacks:
They are commercial.
They don't support ICP, ICP is used to exchange hints about the existence of URLs in neighbor caches .
Squid is the best choice for a proxy-cache server since it is robust, free, and can use ICP features.

Derived from the cached software from the ARPA-funded Harvest research project, developed at the National Laboratory for Applied Network Research and funded by the National Science Foundation, Squid offers high-performance caching of web clients, and also supports FTP, Gopher, and HTTP data objects. It stores hot objects in RAM, maintains a robust database of objects on disk, has a complex access control mechanism, and supports the SSL protocol for proxying secure connections. In addition, it can be hierarchically linked to other Squid-based proxy servers for streamlined caching of pages.

Linux Squid Proxy Server

In our compilation and configuration we'll configure Squid to run as an httpd-accelerator to get more performance out of our web server. In accelerator mode, the Squid server acts as a reverse proxy cache: it accepts client requests, serves them out of cache, if possible, or requests them from the original server for which it is the reverse proxy. Also we'll show you how to configure Squid as a proxy-caching server to be able to let all users in your corporate network use Squid to access the Internet.

These installation instructions assume

  • Commands are Unix-compatible.

  • The source path is /var/tmp, other paths are possible.

  • Installations were tested on Red Hat Linux 6.1 and 6.2.

  • All steps in the installation will happen in super-user account root.

  • Squid version number is 2.3.STABLE2

These are Package(s) and are available here:
Squid Homepage:http://www.squid-cache.org/
Squid FTP Site: 204.144.128.89
You must be sure to download: squid-2.3.STABLE2-src.tar.gz

Before you decompress tarballs, it is a good idea to make a list of files on the system before you install Squid, and one afterwards, and then compare them using diff to find out what file it placed where. Simply run find /* > Squid1 before and find /* > Squid2 after you install the software, and use diff Squid1 Squid2 > Squid-Installed to get a list of what changed.

To Compile, you need to decompress the tarball, tar.gz.:

                 [root@deep] /# cp squid-version.STABLEz-src.tar.gz /var/tmp
                 [root@deep] /# cd /var/tmp
                 [root@deep ]/tmp# tar xzpf squid-version.STABLEz-src.tar.gz