Docsity

Configuring Proxy Cache with Squid: Understanding Proxy Servers & Squid Features, Schemes and Mind Maps of Computer Networks

Partial preview of the text

Download Configuring Proxy Cache with Squid: Understanding Proxy Servers & Squid Features and more Schemes and Mind Maps Computer Networks in PDF only on Docsity!

Configure a Proxy Caches (Squid).

 Upon completion of this topic students will able to:

o Configure and use Squid.

o Explain why use Squid.

What do you mean by Proxy Server?

o A Proxy Server refers to physical machine or

Application which acts intermediate between

client and resource provider or server.

o A client seeks for file, page or data from the

proxy server and proxy server manages to get

the requested demand of client fulfilled by

handling all the complexities in between.

What is Squid?

o Squid is an Application software released under

GNU/GPL which acts as a proxy server as well as web

cache Daemon.

o Squid primarily supports Protocol like HTTP and FTP

however other protocols like HTTPS, SSL,TLS, etc are

well supported.

o The feature web cache Daemon makes web surfing faster

by caching web and DNS for frequently visited websites.

o Squid is known to support all major platforms including

Linux, UNIX, Microsoft Windows and Mac.

What is the default port of squid and how to

change its operating port?

o (^) The default port on which squid runs is 3128. o (^) We can change the operating port of squid from default to any custom unused port by editing its configuration file which is located at /etc/squid/squid.conf as suggested below. o (^) Open ‘/etc/squid/squid.conf’ file and with your choice of editor. o (^) # nano /etc/squid/squid.conf o (^) Now change this port to any other unused port. o (^) Save the editor and exit. o (^) http_port 3128 Restart the squid service as shown below.  (^) # service squid restart

What is Media Range Limitation and partial

download in Squid?

o (^) Media Range Limitation is a special feature of squid in which just the required data is requested from the server and not the whole file. o (^) This feature is very well implemented in various videos streaming websites like Youtube and Metacafe where a user can click on the middle of progress bar hence whole video need not be fetched except for the requested part. o (^) The squid’s feature of partial download is implemented well within windows update where downloads are requested in the form of small packets which can be paused. o (^) Because of this feature a update downloading windows machine can be restarted without any fear of data loss. o (^) Squid makes the Media Range Limitation and Partial Download possible only after storing a copy of whole data in it. o (^) Moreover the partial download gets deleted and not cached when user points to another page until Squid is specially configured somehow.

By Yoobsan B 8

What is reverse proxy in squid?

o (^) Answer : Reverse proxy is a feature of Squid which is used to accelerate the web surfing for end user. Say the Real server ‘RS’ contains the resource and ‘PS’ is the proxy Server. The client seek some data which is available at RS. o (^) It will rely on RS for the specified data for the first time and the copy of that specified data gets stored on PS for configurable amount of time. For every request for that data from now PS becomes the real source. This results in Less traffic, Lesser CPU usages, Lesser web resource utilization and hence lesser load to actual server RS. But RS has no statistics for the total traffic since PS acted as actual server and no Client reached RS. ‘X-Forwarded- For HTTP’ can be used to log the client IP although on RS. o (^) Technically it is feasible to use single squid server to act both as normal proxy server and reverse proxy server at the same point of time. 12/30/

A client approaches you, who is working. They want

the web access time be restricted for their children.

How will you achieve this scenario?

o Say the web access allow time be 4’o clock to 7’o clock in
the evening for three hours, sharply form Monday to
Friday.
o a. To restrict web access between 4 to 7 from Monday to
Friday, open the Squid configuration file.
# nano /etc/squid/squid.conf
o b. Add the following lines and save the file and exit.

acl ALLOW_TIME time M T W H F 16:00-19:00 shttp_access allow ALLOW_TIMEc.

o Restart the Squid Service.
# service squid restart

Squid stores data in which file format?

o Data stored by Squid is in ufs format.

o Ufs is the old well-known Squid storage format.