Proxy server is the function of network users to obtain network information, it is a transit point for network information. With the widespread use of proxy servers, a series of security issues followed. Because there is no comprehensive and meticulous configuration of the access control policy of proxy server, the user can access many pornographic and reactionary illegal sites through proxy server at will, and these behaviors are often difficult to trace, which brings great inconvenience to the management work.
Squid is the next Linux proxy Server software that caches Internet data, receives users ' download requests, and processes downloaded data automatically. In other words, when a user wants to download a home page, can send a request to squid, squid in lieu of it to download, and then squid connection to the application site and request the home page, and then the home page to the user to keep a backup. When another user applies for the same page, squid passes the saved backup to the user immediately, making the user feel very fast. At present, squid can proxy http, FTP, GOPHER, SSL and WAIS protocol, temporarily can not proxy POP3, NNTP and other protocols. Squid can work in many operating systems, such as AIX, Digital, Unix, FreeBSD, HP-UX, Irix, Linux, NetBSD, Nextstep, SCO, Solaris, OS/2, and so on.
Installing and configuring Squid Server
Usually, there are two ways to install squid: one is to get the software's RPM package from Red Hat Linux 9, and the other is to install the source code for downloading the software from the official site of Squid http://www.squid-cache.org/. At present, the latest stable version of the internet is squid-2.5.stable10, the following is an example of this version of the two installation methods introduced.
Squid Server Working principle diagram
1. Installation of RPM Package
First, check to see if squid has been installed:
#rpm-qa | grep squid
Red Hat Linux9 has its own squid installation package, putting the first CD-ROM into the optical drive and mounting the disc partition:
#mount/mnt/cdrom
Then, enter the/mnt/cdrom/red Hat/rpms directory:
#cd/mnt/cdrom/red Hat/rpms
Finally, perform the installation:
#rpm-IVH squid-2.5.stable1-2.i386.rpm
Of course, we can also install the software when we start installing the system.
2. Installation of source code packs
Download the latest source code package for squid software from http://www.squid-cache.org/squid-2.5.stable10.tar.gz, and then follow the steps below to install it.
First, copy the file to the/tmp directory:
#cp squid-2.5.stable10.tar.gz/tmp
Then, unpack the file:
#tar XZVF squid-2.5.stable10.tar.gz
After unlocking, generate a new directory Squid-2.5.stable10 in/tmp, renaming the directory to squid for easy use of the MV command:
#mv Squid-2.5.stable10 Squid
Switch into squid directory:
#cd Squid
Then, execute the/configure, you can use the./configure--prefix=/directory/you/want Specify the installation directory, the system default installation directory is/tmp/squid:
#./configure
Finally, make-all and make install are executed individually:
#make All
#make Install
After installation, the Squid executable file is in the bin subdirectory of the installation directory, and the configuration file is under the ETC subdirectory.
Current 1/3 page
123 Next read the full text