Академический Документы
Профессиональный Документы
Культура Документы
Procedure for Installing Squid 2.4 STABLE7-4 RPM and Squid Tarball file
2. Redhat 8.0 itself contains Squid 2.4 Stable7-4 RPM installed.If you are able to run
‘squid’ command from shell that means Squid RPM is already installed.Then start
this procedure from Step 5 (if it is not present then download squid-2.4.STABLE7-
4.i386.rpm from net)
5. Squid 2.4 main program is installed.Now you have to install supported Squid Tarball
Package
i.e. Squid-2.4.STABLE7.src.tar.gz.Download this file from net.
6. Create user as a ‘squid’ with home directory /usr/local/Squid from Linux GUI
System Setting- Users and Groups .
Note:Always run Squid user as a squid and not ROOT user for security reason.
10. After editing following basic parameters and creating swap directories Squid is redy
for testing. (Note:removing # will enable the squid parameters)
http_port 3128 ( you can put your own desired port in place of 3128)
cache_mem 8 MB (make it 32 MB)
cache_dir ufs /usr/local/squid/cache 500 16 256
(make it 3000 depends on your HDD size allotted for Cache)
http_access deny all (instead of deny put allow)
11. After editing above parameters in Squid.conf file.You will need to creat Swap
Directories
that index stored data.Execute following command,
# squid -z
2. Now add following line to squid.conf file (If it is already there then just remove # and
make it similar line as follows):
authenticate_program /usr/local/squid/bin/ncsa_auth / /
/usr/local/squid/etc/users
Description:
authenticate_program /usr/local/squid/bin/ncsa_auth
Specifies that Authen. Module is installed in /usr/local/squid/bin/ncsa_auth
directory
/usr/local/squid/etc/users
Specifies that users Login names and Passswords are stored in users file.
(Note:Creating users file is explained in next step and be remember to run step 3
command from /usr/local/squid/etc path )
3. You can create user logins and passwords using htpasswd command.
As we have seen in Step 2, that users file is present in
/usr/local/squid/etc/users
Run following command from /usr/local/squid/etc path
$ htpasswd -cmd users username (For help on htpasswd command type htpasswd
--help)
Description:
-c Create a new users file.(This option should be used only at first time of
creating first user)
-m Force MD5 encryption of the password.
-d Force CRYPT encryption of the password (default).
users is the file name which stores all users login and password
>>For Example
$ htpasswd -cmd users vishal
$ Password- ******
$ Re-type - ******
II)
Stop squid
Set a null byte to "swap.state" file using command