Sunteți pe pagina 1din 15

Proxy Server: Squid

• Squid - It is the proxy caching server


used in Linux.

• Handles the request from the local


clients for web access.

• It supports all popular internet


protocols including FTP, Gopher ad
HTTP.
Service profile

• Packages - Squid

• Configuration files -

/etc/squid/squid.conf Daemons -

Squid

• Port number - 3128


Squid Configuration

Install the squid


package.

Open the squid


configuration file.
Squid Configuration

This is the default squid


configuration file if we want to
change the defaults then we can
edit the file.
Squid Configuration

3128 is the http


port.
Squid Configuration

Search for the acl access


control list
Squid Configuration
Create another acl named thano1 to
restrict the web access by time. Thus
here the web server can be accessed
during 18:30-19:30 only.

Search for http_access


in command mode. The specified range of IP
address are allowed to access
the web server by assigning
them in acl named thano.
Squid Configuration

This deny other IP addresses


except the IP addresses
mentioned in access lists

To allow the access lists thano


and thano1
Squid Configuration

Now restart the


squid
service.
Squid Configuration

To set the proxy get into


the mozila wizard.
Squid Configuration

Select preferences to
set the proxy server.
Squid Configuration

And select the option


proxies.
Squid Configuration

Enter the IP address of the


proxy server and the port
number.
Squid Configuration

Now the time is in between the


access time given in the acl so
we can access web server.
Squid Configuration

Here you can see that the access


is denied since the we are not
allowed to access the web
server in this time.

S-ar putea să vă placă și