0% found this document useful (0 votes)
9 views

Linux Module5squidConfiguration

This document discusses how proxy servers work and how to configure the Squid proxy server software. Proxy servers act as an intermediary between local networks and the internet, caching frequently accessed web pages to improve access speed and provide security functions. The Squid proxy software implements these caching capabilities, checking its cache for requested pages and retrieving new pages from origin servers as needed. The document provides instructions for configuring Squid through editing its configuration file to specify settings like the proxy name, interface/port, and access controls.

Uploaded by

Maneesha Cm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Linux Module5squidConfiguration

This document discusses how proxy servers work and how to configure the Squid proxy server software. Proxy servers act as an intermediary between local networks and the internet, caching frequently accessed web pages to improve access speed and provide security functions. The Squid proxy software implements these caching capabilities, checking its cache for requested pages and retrieving new pages from origin servers as needed. The document provides instructions for configuring Squid through editing its configuration file to specify settings like the proxy name, interface/port, and access controls.

Uploaded by

Maneesha Cm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 11

• Proxy servers operate as an intermediary

between a local network and the Internet.

• Requests from local clients for web services can be


handled by the proxy server, make transactions very fast.
• Proxy servers maintain current copies of commonly
accessed web pages, thus eliminates the need to access the
original site constantly. They also perform security
functions, protecting servers from unauthorized access.
• Squid is a free, open source, proxy-caching server for web
clients, designed to speed Internet access and provide
security controls for web servers
• It implements a proxy-caching service for web clients that
caches web pages as users make requests. Copies of web
pages accessed by users are kept in the Squid cache, and as
requests are made, Squid checks to see if it has a current copy.
• If Squid does have a current copy, it return s the copy from its
cache instead of querying the original site.
• If it does not have a current copy, it will retrieve one from the
original site. Replacement algorithms periodically replace old
objects in the cache. In this way, web browsers can then use
the local Squid cache as a proxy HTTP server.
• To configure squid proxy server we need to
edit the
/etc/squid/squid.conf file
We can edit the configuration file using vi
editor through command prompt
Edit the squid configuration file
• 1. Provide a name for the proxy server
machine.
• To specify a hostname for the proxy server in
the squid.conf file, locate the variable
visible_hostname and specifiy the hostname
in the format shown below in the example.
• 2. Specifying the interface and port number
on which the proxy server should listen.
• 3. Assigning Access Controls
By default, no user machine is allowed to
connect to the proxy server except the
localhost. To allow the local machines access
your proxy server, locate the acl section in the
squid configuration file starting with acl and at
the end of the last acl line specify your access
control.
4. Allow or Deny based on Access Control.
• After specifying the access control for local LAN, we need to
provide allow permission for the specified LAN using
http_access variable in the squid configuration file.
• Saving the changes and exit the vi Editor
• After making appropriate changes to your
configuration file exit the vi editor window by
pressing Esc followed by :wq!.
• Starting the squid proxy services
• To start the squid proxy services, at the
command prompt type
• /etc/init.d/squid start

You might also like